cleanup: remove CleanerTableModel::warningMessage signal

Nobody was ever listening to this signal(?) and the last sender
was removed in ac52034778.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-02-23 12:17:48 +01:00 committed by Dirk Hohndel
parent ee553e059d
commit dedf8858fb
2 changed files with 1 additions and 8 deletions

View file

@ -26,11 +26,6 @@ public:
protected: protected:
void setHeaderDataStrings(const QStringList &headers); 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: private:
QStringList headers; QStringList headers;

View file

@ -26,9 +26,7 @@ CylindersModel *DivePlannerPointsModel::cylindersModel()
return &cylinders; return &cylinders;
} }
/* TODO: Port this to CleanerTableModel to remove a bit of boilerplate and /* TODO: Port this to CleanerTableModel to remove a bit of boilerplate. */
* use the signal warningMessage() to communicate errors to the MainWindow.
*/
void DivePlannerPointsModel::removeSelectedPoints(const QVector<int> &rows) void DivePlannerPointsModel::removeSelectedPoints(const QVector<int> &rows)
{ {
if (!rows.count()) if (!rows.count())