summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/simplewidgets.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-27 14:00:47 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-27 09:47:35 -0700
commit25f1bc488f68395390a3a87328b31dfa7deac11c (patch)
tree7ed5f8806a5b6ba38607b17d441ca4f90ef7e7e6 /desktop-widgets/simplewidgets.h
parent79f90effe97daf1a619941dec50eddebcddc6fa6 (diff)
downloadsubsurface-25f1bc488f68395390a3a87328b31dfa7deac11c.tar.gz
cleanup: un-singletonize RenumberDialog
There is no reason that this dialog is a singleton. Since it is modal, it can be created on demand. This simplifies code, because the mode (selected-only or all-dives) can be set in the constructor. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/simplewidgets.h')
-rw-r--r--desktop-widgets/simplewidgets.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop-widgets/simplewidgets.h b/desktop-widgets/simplewidgets.h
index 421695815..ce8c636f7 100644
--- a/desktop-widgets/simplewidgets.h
+++ b/desktop-widgets/simplewidgets.h
@@ -50,14 +50,12 @@ public:
class RenumberDialog : public QDialog {
Q_OBJECT
public:
- static RenumberDialog *instance();
- void renumberOnlySelected(bool selected = true);
+ explicit RenumberDialog(bool selectedOnly, QWidget *parent);
private
slots:
void buttonClicked(QAbstractButton *button);
private:
- explicit RenumberDialog(QWidget *parent);
Ui::RenumberDialog ui;
bool selectedOnly;
};