diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-04-25 19:35:31 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-04-25 19:37:58 +0300 |
commit | 539e15a5231d5be50c1dd7f67029358a5eac8273 (patch) | |
tree | 427de59532679355533c582ddd8f0d37c77798f1 | |
parent | 48f570eda8454b994fcee55841f4ca4b585dc460 (diff) | |
download | kompose-539e15a5231d5be50c1dd7f67029358a5eac8273.tar.gz kompose-539e15a5231d5be50c1dd7f67029358a5eac8273.zip |
Code cleanup
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-rw-r--r-- | src/komposefullscreenwidget.cpp | 20 | ||||
-rw-r--r-- | src/komposetaskcontainerwidget.cpp | 16 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/komposefullscreenwidget.cpp b/src/komposefullscreenwidget.cpp index f54c633..1d0b7e1 100644 --- a/src/komposefullscreenwidget.cpp +++ b/src/komposefullscreenwidget.cpp @@ -33,8 +33,6 @@ #include <kdebug.h> #include <krootpixmap.h> -static bool controlHold = false; // is the control key pressed - KomposeFullscreenWidget::KomposeFullscreenWidget( int displayType, KomposeLayout *l ) : KomposeTaskContainerWidget( -1, 0, l ), type(displayType) @@ -196,7 +194,6 @@ void KomposeFullscreenWidget::keyPressEvent( TQKeyEvent *e ) { if ( e->key() == TQt::Key_Control ) { - controlHold = true; e->accept(); } } @@ -212,7 +209,6 @@ void KomposeFullscreenWidget::keyReleaseEvent ( TQKeyEvent *e ) else if ( e->key() == TQt::Key_Control ) { - controlHold = false; e->accept(); return; } @@ -228,38 +224,22 @@ void KomposeFullscreenWidget::keyReleaseEvent ( TQKeyEvent *e ) switch( e->key() ) { case TQt::Key_Right: - direction = DLAYOUT_RIGHT; - break; case TQt::Key_D: - direction = DLAYOUT_RIGHT; - break; case TQt::Key_L: direction = DLAYOUT_RIGHT; break; case TQt::Key_Left: - direction = DLAYOUT_LEFT; - break; case TQt::Key_A: - direction = DLAYOUT_LEFT; - break; case TQt::Key_H: direction = DLAYOUT_LEFT; break; case TQt::Key_Up: - direction = DLAYOUT_TOP; - break; case TQt::Key_W: - direction = DLAYOUT_TOP; - break; case TQt::Key_K: direction = DLAYOUT_TOP; break; case TQt::Key_Down: - direction = DLAYOUT_BOTTOM; - break; case TQt::Key_S: - direction = DLAYOUT_BOTTOM; - break; case TQt::Key_J: direction = DLAYOUT_BOTTOM; break; diff --git a/src/komposetaskcontainerwidget.cpp b/src/komposetaskcontainerwidget.cpp index d814ccc..ccf3767 100644 --- a/src/komposetaskcontainerwidget.cpp +++ b/src/komposetaskcontainerwidget.cpp @@ -106,38 +106,22 @@ void KomposeTaskContainerWidget::keyReleaseEvent ( TQKeyEvent * e ) switch( e->key() ) { case TQt::Key_Right: - direction = DLAYOUT_RIGHT; - break; case TQt::Key_D: - direction = DLAYOUT_RIGHT; - break; case TQt::Key_L: direction = DLAYOUT_RIGHT; break; case TQt::Key_Left: - direction = DLAYOUT_LEFT; - break; case TQt::Key_A: - direction = DLAYOUT_LEFT; - break; case TQt::Key_H: direction = DLAYOUT_LEFT; break; case TQt::Key_Up: - direction = DLAYOUT_TOP; - break; case TQt::Key_W: - direction = DLAYOUT_TOP; - break; case TQt::Key_K: direction = DLAYOUT_TOP; break; case TQt::Key_Down: - direction = DLAYOUT_BOTTOM; - break; case TQt::Key_S: - direction = DLAYOUT_BOTTOM; - break; case TQt::Key_J: direction = DLAYOUT_BOTTOM; break; |