Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

cgotoline.cpp

Go to the documentation of this file.
00001 #include "cgotoline.h"
00002 #include <qspinbox.h>
00003 // copyright 2003 Craig Graham <cgraham@accessdevices.co.uk>
00004 
00005 CGotoLine::CGotoLine(int l) : CGotoBase(0,0,true)
00006 {
00007   mLine->setValue(l+1);
00008 }
00009 
00010 int CGotoLine::line()
00011 {
00012   return mLine->value()-1;
00013 }
00014 
00015 void CGotoLine::keyPressEvent(QKeyEvent *e)
00016 {
00017   if((e->key()==Key_Return)||(e->key()==Key_Enter))
00018   {
00019     accept();
00020   }else{
00021     QDialog::keyPressEvent(e);
00022   }
00023 }

Generated on Sat Nov 5 16:17:14 2005 for OPIE by  doxygen 1.4.2