diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-02-23 12:17:48 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-02-23 06:57:18 -0800 |
commit | dedf8858fbd42b960a48dcc6758be400bd21bbf2 (patch) | |
tree | 8884f2701cec033394887e6677caf510d7ec9d69 /qt-models | |
parent | ee553e059d55f3376a7026a217e879f579b90e17 (diff) | |
download | subsurface-dedf8858fbd42b960a48dcc6758be400bd21bbf2.tar.gz |
cleanup: remove CleanerTableModel::warningMessage signal
Nobody was ever listening to this signal(?) and the last sender
was removed in ac52034778bc5c82bb6c689d765b337b6d75b24a.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/cleanertablemodel.h | 5 | ||||
-rw-r--r-- | qt-models/diveplannermodel.cpp | 4 |
2 files changed, 1 insertions, 8 deletions
diff --git a/qt-models/cleanertablemodel.h b/qt-models/cleanertablemodel.h index 0657b2099..4299e9002 100644 --- a/qt-models/cleanertablemodel.h +++ b/qt-models/cleanertablemodel.h @@ -26,11 +26,6 @@ public: protected: void setHeaderDataStrings(const QStringList &headers); -signals: - - /* instead of using QMessageBox directly, wire a QWidget to this signal and display the result. - * This is because the QModels will be used from the Mobile version and the desktop version. */ - void warningMessage(const QString& title, const QString& message); private: QStringList headers; diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 26d78bcb6..df7affe8b 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -26,9 +26,7 @@ CylindersModel *DivePlannerPointsModel::cylindersModel() return &cylinders; } -/* TODO: Port this to CleanerTableModel to remove a bit of boilerplate and - * use the signal warningMessage() to communicate errors to the MainWindow. - */ +/* TODO: Port this to CleanerTableModel to remove a bit of boilerplate. */ void DivePlannerPointsModel::removeSelectedPoints(const QVector<int> &rows) { if (!rows.count()) |