summaryrefslogtreecommitdiffstats
path: root/qt-ui/modeldelegates.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-15 13:45:24 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-15 09:49:12 -0700
commit34f2a5ecc7c7bef15e3f29f1dc5def8a1d2e9965 (patch)
treea41190c6366b542ae4fead842f7b2f647ab30f8f /qt-ui/modeldelegates.h
parent6ccb541f1dc22295e61195aeac532f9f46cb0253 (diff)
downloadsubsurface-34f2a5ecc7c7bef15e3f29f1dc5def8a1d2e9965.tar.gz
Fixed the Tab behavior on the QCombobox Delegate
This Patch fixes the tab behavior on the QComboBox delegate. For a QComboBox, tab was being treated as 'cancel' action on edit, but since it will send a editingFinished() signal, and the Qt::Key_Return will also send a editingFinished() signal, I couldn't use that method and had to do a little hack around it. The code is mostly clean and works. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r--qt-ui/modeldelegates.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h
index eb9a0aa04..1aedf1bbf 100644
--- a/qt-ui/modeldelegates.h
+++ b/qt-ui/modeldelegates.h
@@ -27,6 +27,7 @@ public slots:
void testActivation(const QString& currString = QString());
//HACK: try to get rid of this in the future.
void fakeActivation();
+ void fixTabBehavior();
virtual void revertModelData(QWidget* widget, QAbstractItemDelegate::EndEditHint hint) = 0;
protected:
QAbstractItemModel *model;