mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
7681895fe0
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>
27 lines
No EOL
572 B
C++
27 lines
No EOL
572 B
C++
#ifndef DIVECOMPUTERMANAGEMENTDIALOG_H
|
|
#define DIVECOMPUTERMANAGEMENTDIALOG_H
|
|
#include <QDialog>
|
|
|
|
class QModelIndex;
|
|
class DiveComputerModel;
|
|
namespace Ui{
|
|
class DiveComputerManagementDialog;
|
|
};
|
|
|
|
class DiveComputerManagementDialog : public QDialog{
|
|
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;
|
|
DiveComputerModel *model;
|
|
};
|
|
|
|
#endif |