mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop/tabwidgets: replace editMode by boolean
There was only one editMode left (MANUALLY_ADDED_DIVE). Therefore replace by a flag. This makes the code more consistent, because the conditions "editMode != NONE" and "editMode == MANUALLY_ADDED_DIVE) actually meant the same thing. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
3b9913d828
commit
20e7064658
2 changed files with 12 additions and 17 deletions
|
@ -26,11 +26,6 @@ class TabBase;
|
|||
class MainTab : public QTabWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum EditMode {
|
||||
NONE,
|
||||
MANUALLY_ADDED_DIVE
|
||||
};
|
||||
|
||||
MainTab(QWidget *parent = 0);
|
||||
~MainTab();
|
||||
void clearTabs();
|
||||
|
@ -74,7 +69,7 @@ slots:
|
|||
void escDetected(void);
|
||||
private:
|
||||
Ui::MainTab ui;
|
||||
EditMode editMode;
|
||||
bool editMode;
|
||||
bool ignoreInput; // When computionally editing fields, we have to ignore changed-signals
|
||||
BuddyCompletionModel buddyModel;
|
||||
DiveMasterCompletionModel diveMasterModel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue