summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divecomputermanagementdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/divecomputermanagementdialog.h')
-rw-r--r--desktop-widgets/divecomputermanagementdialog.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop-widgets/divecomputermanagementdialog.h b/desktop-widgets/divecomputermanagementdialog.h
index 806ec8073..d80f8f9d3 100644
--- a/desktop-widgets/divecomputermanagementdialog.h
+++ b/desktop-widgets/divecomputermanagementdialog.h
@@ -1,9 +1,11 @@
// SPDX-License-Identifier: GPL-2.0
#ifndef DIVECOMPUTERMANAGEMENTDIALOG_H
#define DIVECOMPUTERMANAGEMENTDIALOG_H
-#include <QDialog>
+
#include "ui_divecomputermanagementdialog.h"
#include "qt-models/divecomputermodel.h"
+#include <QDialog>
+#include <memory>
class QModelIndex;
@@ -23,7 +25,8 @@ slots:
private:
explicit DiveComputerManagementDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
Ui::DiveComputerManagementDialog ui;
- QScopedPointer<DiveComputerModel> model;
+ std::unique_ptr<DiveComputerModel> model;
+ DiveComputerSortedModel proxyModel;
};
#endif // DIVECOMPUTERMANAGEMENTDIALOG_H