author | zecke <zecke> | 2004-10-13 19:45:10 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-10-13 19:45:10 (UTC) |
commit | 43fdc7bdf61f0e16be759c4083bd340afcf826f8 (patch) (unidiff) | |
tree | d157f940edfdab1032b575b52e581338e8ac0e7b | |
parent | 72065f1f1aa12882ae63f8b063312e96dd683156 (diff) | |
download | opie-43fdc7bdf61f0e16be759c4083bd340afcf826f8.zip opie-43fdc7bdf61f0e16be759c4083bd340afcf826f8.tar.gz opie-43fdc7bdf61f0e16be759c4083bd340afcf826f8.tar.bz2 |
Remove odebug/owarn
-rw-r--r-- | noncore/apps/opie-console/widget_layer.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/widget_layer.cpp b/noncore/apps/opie-console/widget_layer.cpp index ab25919..afded92 100644 --- a/noncore/apps/opie-console/widget_layer.cpp +++ b/noncore/apps/opie-console/widget_layer.cpp | |||
@@ -72,13 +72,12 @@ bool WidgetLayer::eventFilter( QObject *obj, QEvent *e ) | |||
72 | if ( obj != this /* when embedded */ && obj != parent() /* when standalone */ ) | 72 | if ( obj != this /* when embedded */ && obj != parent() /* when standalone */ ) |
73 | return false; // not us | 73 | return false; // not us |
74 | 74 | ||
75 | #ifdef FAKE_CTRL_AND_ALT | 75 | #ifdef FAKE_CTRL_AND_ALT |
76 | static bool control = false; | 76 | static bool control = false; |
77 | static bool alt = false; | 77 | static bool alt = false; |
78 | // odebug << " Has a keyboard with no CTRL and ALT keys, but we fake it:" << oendl; | ||
79 | bool dele = false; | 78 | bool dele = false; |
80 | if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) { | 79 | if ( e->type() == QEvent::KeyPress || e->type() == QEvent::KeyRelease ) { |
81 | QKeyEvent* ke = (QKeyEvent*)e; | 80 | QKeyEvent* ke = (QKeyEvent*)e; |
82 | bool keydown = e->type() == QEvent::KeyPress || ke->isAutoRepeat(); | 81 | bool keydown = e->type() == QEvent::KeyPress || ke->isAutoRepeat(); |
83 | switch (ke->key()) { | 82 | switch (ke->key()) { |
84 | case Key_F9: // let this be "Control" | 83 | case Key_F9: // let this be "Control" |
@@ -112,14 +111,12 @@ QChar(a,0)); | |||
112 | 111 | ||
113 | if ( e->type() == QEvent::KeyPress ) { | 112 | if ( e->type() == QEvent::KeyPress ) { |
114 | QKeyEvent* ke = (QKeyEvent*)e; | 113 | QKeyEvent* ke = (QKeyEvent*)e; |
115 | //actSel=0; // Key stroke implies a screen update, so Widget won't | 114 | //actSel=0; // Key stroke implies a screen update, so Widget won't |
116 | // know where the current selection is. | 115 | // know where the current selection is. |
117 | 116 | ||
118 | // odebug << "key pressed is 0x" << ke->key() << "" << oendl; | ||
119 | |||
120 | if( ke->state() == ShiftButton && ke->key() == Key_Tab) { //lets hardcode this sucker | 117 | if( ke->state() == ShiftButton && ke->key() == Key_Tab) { //lets hardcode this sucker |
121 | insertText("\\"); // expose | 118 | insertText("\\"); // expose |
122 | } else | 119 | } else |
123 | emit keyPressed( ke ); // expose | 120 | emit keyPressed( ke ); // expose |
124 | ke->accept(); | 121 | ke->accept(); |
125 | #ifdef FAKE_CTRL_AND_ALT | 122 | #ifdef FAKE_CTRL_AND_ALT |