diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-19 11:45:01 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-19 11:45:01 -0300 |
commit | 55b998d528f53f5023b52bc674477b00668b400b (patch) | |
tree | 1be531e8993cb466c9be2a4fc7526c2aac8db7ca /qt-ui/maintab.h | |
parent | 206a148e0783188396566b7b40fa810ab7966f1d (diff) | |
download | subsurface-55b998d528f53f5023b52bc674477b00668b400b.tar.gz |
Improve the Dirk edit mode.
The dirk edit mode will be triggered as soon as the user
clicks on the field that he wants to edit. then he can
edit all fields, till he press ok / reset.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.h')
-rw-r--r-- | qt-ui/maintab.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 98da412ef..afd06b529 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -26,6 +26,10 @@ struct NotesBackup{ QString divemaster; }; +#define DIRK_EDIT_STYLE 0 +#define TEST_EDIT_STYLE 1 +#define EDIT_STYLE DIRK_EDIT_STYLE + class MainTab : public QTabWidget { Q_OBJECT @@ -36,6 +40,8 @@ public: void clearEquipment(); void reload(); + bool eventFilter(QObject* , QEvent*); + public Q_SLOTS: void on_addCylinder_clicked(); void on_editCylinder_clicked(); |