subsurface/qt-ui/divecomputermanagementdialog.h
Tomaz Canabrava 7681895fe0 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>
2013-06-07 15:34:27 -03:00

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