diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-07 15:34:27 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-07 15:34:27 -0300 |
commit | 7681895fe09aa81c83143c6a58459e354a4234b1 (patch) | |
tree | ed3718f1410cb1c79c31f42cd9caf75508ec5578 /qt-ui/divecomputermanagementdialog.h | |
parent | 54128aa52fe5c765ce6ced8bd05611e202195d6b (diff) | |
download | subsurface-7681895fe09aa81c83143c6a58459e354a4234b1.tar.gz |
Remove the dive computer clicking on the trash icon.
This code removes the dive computer clicking on the trash icon,
the result is not saved on the XML, this will need a bit of
hacking from some of the older guys. :)
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/divecomputermanagementdialog.h')
-rw-r--r-- | qt-ui/divecomputermanagementdialog.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/divecomputermanagementdialog.h b/qt-ui/divecomputermanagementdialog.h index 27a1408ab..e10a96db2 100644 --- a/qt-ui/divecomputermanagementdialog.h +++ b/qt-ui/divecomputermanagementdialog.h @@ -2,6 +2,7 @@ #define DIVECOMPUTERMANAGEMENTDIALOG_H #include <QDialog> +class QModelIndex; class DiveComputerModel; namespace Ui{ class DiveComputerManagementDialog; @@ -13,6 +14,10 @@ Q_OBJECT public: static DiveComputerManagementDialog *instance(); void update(); + +public slots: + void tryRemove(const QModelIndex& index); + private: explicit DiveComputerManagementDialog(QWidget* parent = 0, Qt::WindowFlags f = 0); Ui::DiveComputerManagementDialog *ui; |