mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: un-singletonify SetpointDialog
We have too many global objects. There is no reason why this dialog should be a persistent global object. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
33fb6461fb
commit
806cfcee21
3 changed files with 6 additions and 20 deletions
|
@ -65,14 +65,12 @@ private:
|
|||
class SetpointDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
static SetpointDialog *instance();
|
||||
void setpointData(struct divecomputer *divecomputer, int time);
|
||||
SetpointDialog(struct divecomputer *divecomputer, int time);
|
||||
private
|
||||
slots:
|
||||
void buttonClicked(QAbstractButton *button);
|
||||
|
||||
private:
|
||||
explicit SetpointDialog(QWidget *parent);
|
||||
Ui::SetpointDialog ui;
|
||||
struct divecomputer *dc;
|
||||
int time;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue