author | zecke <zecke> | 2004-10-13 19:50:45 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-13 19:50:45 (UTC) |
commit | 2e51b60e861912fa525597f6b9de6b83c9cedf94 (patch) (unidiff) | |
tree | c212077850c4cdf9570f7d47bb2805fe33d6bfe6 | |
parent | 43fdc7bdf61f0e16be759c4083bd340afcf826f8 (diff) | |
download | opie-2e51b60e861912fa525597f6b9de6b83c9cedf94.zip opie-2e51b60e861912fa525597f6b9de6b83c9cedf94.tar.gz opie-2e51b60e861912fa525597f6b9de6b83c9cedf94.tar.bz2 |
Remove odebug/owarn
-rw-r--r-- | noncore/apps/opie-console/widget.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/widget.cpp b/noncore/apps/opie-console/widget.cpp index c51983f..4a578be 100644 --- a/noncore/apps/opie-console/widget.cpp +++ b/noncore/apps/opie-console/widget.cpp | |||
@@ -986,25 +986,24 @@ bool Widget::eventFilter( QObject *obj, QEvent *e ) | |||
986 | static_cast<QKeyEvent *>( e )->ignore(); | 986 | static_cast<QKeyEvent *>( e )->ignore(); |
987 | return true; | 987 | return true; |
988 | } | 988 | } |
989 | if ( obj != this /* when embedded */ && obj != parent() /* when standalone */ ) | 989 | if ( obj != this /* when embedded */ && obj != parent() /* when standalone */ ) |
990 | return FALSE; // not us | 990 | return FALSE; // not us |
991 | if ( e->type() == QEvent::Wheel) { | 991 | if ( e->type() == QEvent::Wheel) { |
992 | QApplication::sendEvent(scrollbar, e); | 992 | QApplication::sendEvent(scrollbar, e); |
993 | } | 993 | } |
994 | 994 | ||
995 | #ifdef FAKE_CTRL_AND_ALT | 995 | #ifdef FAKE_CTRL_AND_ALT |
996 | static bool control = FALSE; | 996 | static bool control = FALSE; |
997 | static bool alt = FALSE; | 997 | static bool alt = FALSE; |
998 | // odebug << " Has a keyboard with no CTRL and ALT keys, but we fake it:" << oendl; | ||
999 | bool dele=FALSE; | 998 | bool dele=FALSE; |
1000 | if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) { | 999 | if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) { |
1001 | QKeyEvent* ke = (QKeyEvent*)e; | 1000 | QKeyEvent* ke = (QKeyEvent*)e; |
1002 | bool keydown = e->type() == QEvent::KeyPress || ke->isAutoRepeat(); | 1001 | bool keydown = e->type() == QEvent::KeyPress || ke->isAutoRepeat(); |
1003 | switch (ke->key()) { | 1002 | switch (ke->key()) { |
1004 | case Key_F9: // let this be "Control" | 1003 | case Key_F9: // let this be "Control" |
1005 | control = keydown; | 1004 | control = keydown; |
1006 | e = new QKeyEvent(QEvent::KeyPress, Key_Control, 0, ke->state()); | 1005 | e = new QKeyEvent(QEvent::KeyPress, Key_Control, 0, ke->state()); |
1007 | dele=TRUE; | 1006 | dele=TRUE; |
1008 | break; | 1007 | break; |
1009 | case Key_F13: // let this be "Alt" | 1008 | case Key_F13: // let this be "Alt" |
1010 | alt = keydown; | 1009 | alt = keydown; |
@@ -1025,29 +1024,25 @@ bool Widget::eventFilter( QObject *obj, QEvent *e ) | |||
1025 | ke->ascii(), ke->state()|AltButton, ke->text()); | 1024 | ke->ascii(), ke->state()|AltButton, ke->text()); |
1026 | dele=TRUE; | 1025 | dele=TRUE; |
1027 | } | 1026 | } |
1028 | } | 1027 | } |
1029 | } | 1028 | } |
1030 | #endif | 1029 | #endif |
1031 | 1030 | ||
1032 | if ( e->type() == QEvent::KeyPress ) { | 1031 | if ( e->type() == QEvent::KeyPress ) { |
1033 | QKeyEvent* ke = (QKeyEvent*)e; | 1032 | QKeyEvent* ke = (QKeyEvent*)e; |
1034 | actSel=0; // Key stroke implies a screen update, so Widget won't | 1033 | actSel=0; // Key stroke implies a screen update, so Widget won't |
1035 | // know where the current selection is. | 1034 | // know where the current selection is. |
1036 | 1035 | ||
1037 | // odebug << "key pressed is 0x" << ke->key() << "" << oendl; | ||
1038 | |||
1039 | if( ke->state() == ShiftButton && ke->key() == Key_Tab) { //lets hardcode this sucker | 1036 | if( ke->state() == ShiftButton && ke->key() == Key_Tab) { //lets hardcode this sucker |
1040 | |||
1041 | // odebug << "key pressed 2 is 0x" << ke->key() << "" << oendl; | ||
1042 | emitText("\\"); // expose | 1037 | emitText("\\"); // expose |
1043 | } else | 1038 | } else |
1044 | emit keyPressedSignal(ke); // expose | 1039 | emit keyPressedSignal(ke); // expose |
1045 | ke->accept(); | 1040 | ke->accept(); |
1046 | #ifdef FAKE_CTRL_AND_ALT | 1041 | #ifdef FAKE_CTRL_AND_ALT |
1047 | if ( dele ) delete e; | 1042 | if ( dele ) delete e; |
1048 | #endif | 1043 | #endif |
1049 | return true; // stop the event | 1044 | return true; // stop the event |
1050 | } | 1045 | } |
1051 | if ( e->type() == QEvent::Enter ) { | 1046 | if ( e->type() == QEvent::Enter ) { |
1052 | QObject::disconnect( (QObject*)cb, SIGNAL(dataChanged()), | 1047 | QObject::disconnect( (QObject*)cb, SIGNAL(dataChanged()), |
1053 | this, SLOT(onClearSelection()) ); | 1048 | this, SLOT(onClearSelection()) ); |