[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/koffice/1.6/koffice/kexi/plugins/forms/widgets
From: Jaroslaw Staniek <js () iidea ! pl>
Date: 2006-11-14 14:51:33
Message-ID: 1163515893.979933.22645.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 604908 by staniek:
Forms
- fixed handling Ctrl+Delete key for "Delete current row" action
2.0: merged
CCMAIL:cberger@cberger.net
M +7 -2 kexidbform.cpp
--- branches/koffice/1.6/koffice/kexi/plugins/forms/widgets/kexidbform.cpp #604907:604908
@@ -435,13 +435,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