#include "cgotoline.h" #include // copyright 2003 Craig Graham CGotoLine::CGotoLine(int l) : CGotoBase(0,0,true) { mLine->setValue(l+1); } int CGotoLine::line() { return mLine->value()-1; } void CGotoLine::keyPressEvent(QKeyEvent *e) { if((e->key()==Key_Return)||(e->key()==Key_Enter)) { accept(); }else{ QDialog::keyPressEvent(e); } }