mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
ee553e059d
commit
dedf8858fb
2 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||||
|
|
|
@ -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())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue