[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/plugins/forms/widgets
From: Jaroslaw Staniek <js () iidea ! pl>
Date: 2006-11-14 14:51:42
Message-ID: 1163515902.449509.22709.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 604909 by staniek:
Forms
- fixed handling Ctrl+Delete key for "Delete current row" action
2.0: merged
M +7 -2 kexidbform.cpp
--- trunk/koffice/kexi/plugins/forms/widgets/kexidbform.cpp #604908:604909
@@ -444,13 +444,18 @@
ke->accept();
return true;
}
+ if (key == Qt::Key_Delete && ke->state()==Qt::ControlButton) {
+//! @todo remove hardcoded shortcuts: can be reconfigured...
+ d->dataAwareObject->deleteCurrentRow();
+ return true;
+ }
// allow the editor widget to grab the key press event
while (true) {
if (!o || o == dynamic_cast<QObject*>(d->dataAwareObject))
break;
if (dynamic_cast<KexiFormDataItemInterface*>(o)) {
- realWidget = dynamic_cast<QWidget*>(o); //will beused below (for tab/backtab handling)
- if (realWidget == this) //we have ancountered 'this' form surface, give up
+ realWidget = dynamic_cast<QWidget*>(o); //will be used below (for tab/backtab handling)
+ if (realWidget == this) //we have encountered 'this' form surface, give up
return false;
if (dynamic_cast<KexiFormDataItemInterface*>(o)->keyPressed(ke))
return false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic