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>
This commit is contained in:
Tomaz Canabrava 2013-05-19 11:45:01 -03:00
parent 206a148e07
commit 55b998d528
2 changed files with 39 additions and 4 deletions

View file

@ -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();