mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
79f90effe9
commit
25f1bc488f
4 changed files with 16 additions and 29 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue