[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/office/skrooge
From: Stephane Mankowski <stephane () mankowski ! fr>
Date: 2010-01-29 21:25:41
Message-ID: 1264800341.888236.16919.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1082164 by smankowski:
BUG: 224676: keyboard shortcut for modify and add operation
M +1 -0 CHANGELOG
M +15 -0 skrooge_operation/skgoperationpluginwidget.cpp
--- trunk/extragear/office/skrooge/CHANGELOG #1082163:1082164
@@ -12,6 +12,7 @@
*Correction bug 222339: CVS import: problem with decimal point and comma
*Correction wis 220663: Selected operations must still visible after a sort \
modification
*Correction wis 223848: make libofx an optional dependency
+ *Correction wis 224676: keyboard shortcut for modify and add operation
*Possible to define favorite account
*Possible to define favorite search
*New gui for search and process
--- trunk/extragear/office/skrooge/skrooge_operation/skgoperationpluginwidget.cpp \
#1082163:1082164 @@ -168,6 +168,9 @@
ui.kOperationBtn->setChecked ( true );
modeTemplate=false;
+ //Set Event filters to catch CTRL+ENTER or SHIFT+ENTER
+ this->installEventFilter ( this );
+
//Set Event filters for locking widgets
ui.kTypeEdit->lineEdit()->installEventFilter ( this );
ui.kTypeEdit->installEventFilter ( this );
@@ -283,6 +286,18 @@
}
}
}
+ else if ( event && event->type() == QEvent::KeyPress )
+ {
+ QKeyEvent *keyEvent = ( QKeyEvent * ) event;
+ if ( keyEvent->key() == Qt::Key_Return && QApplication::keyboardModifiers() \
&Qt::ControlModifier && ui.kAddOperationBtn->isEnabled()) + {
+ ui.kAddOperationBtn->click();
+ }
+ else if ( keyEvent->key() == Qt::Key_Return && \
QApplication::keyboardModifiers() &Qt::ShiftModifier && \
ui.kModifyOperationBtn->isEnabled()) + {
+ ui.kModifyOperationBtn->click();
+ }
+ }
return false;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic