mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6ccb541f1d
commit
34f2a5ecc7
2 changed files with 18 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue