author | mickeyl <mickeyl> | 2004-05-23 11:26:00 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-05-23 11:26:00 (UTC) |
commit | 163a07abb5fbf5346585bce5edf5e48d015b442a (patch) (unidiff) | |
tree | 0ae95b1f32ded0e1766b240ccfcfec856dafea09 /noncore/apps/tinykate/mainwindow/cgotoline.cpp | |
parent | 6cd90404121a78f3181a35acc056d7feca3d6aeb (diff) | |
download | opie-163a07abb5fbf5346585bce5edf5e48d015b442a.zip opie-163a07abb5fbf5346585bce5edf5e48d015b442a.tar.gz opie-163a07abb5fbf5346585bce5edf5e48d015b442a.tar.bz2 |
CLEANUP: sanitize tinykate's build structure
Diffstat (limited to 'noncore/apps/tinykate/mainwindow/cgotoline.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/mainwindow/cgotoline.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/mainwindow/cgotoline.cpp b/noncore/apps/tinykate/mainwindow/cgotoline.cpp new file mode 100644 index 0000000..97f2ea5 --- a/dev/null +++ b/noncore/apps/tinykate/mainwindow/cgotoline.cpp | |||
@@ -0,0 +1,23 @@ | |||
1 | #include "cgotoline.h" | ||
2 | #include <qspinbox.h> | ||
3 | // copyright 2003 Craig Graham <cgraham@accessdevices.co.uk> | ||
4 | |||
5 | CGotoLine::CGotoLine(int l) : CGotoBase(0,0,true) | ||
6 | { | ||
7 | mLine->setValue(l+1); | ||
8 | } | ||
9 | |||
10 | int CGotoLine::line() | ||
11 | { | ||
12 | return mLine->value()-1; | ||
13 | } | ||
14 | |||
15 | void CGotoLine::keyPressEvent(QKeyEvent *e) | ||
16 | { | ||
17 | if((e->key()==Key_Return)||(e->key()==Key_Enter)) | ||
18 | { | ||
19 | accept(); | ||
20 | }else{ | ||
21 | QDialog::keyPressEvent(e); | ||
22 | } | ||
23 | } | ||