summaryrefslogtreecommitdiffstats
path: root/qt-models/cleanertablemodel.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/cleanertablemodel.h')
-rw-r--r--qt-models/cleanertablemodel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/qt-models/cleanertablemodel.h b/qt-models/cleanertablemodel.h
index a717d7032..a492685a6 100644
--- a/qt-models/cleanertablemodel.h
+++ b/qt-models/cleanertablemodel.h
@@ -19,9 +19,18 @@ 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;
};
+/* Has the string value changed */
+#define CHANGED() \
+ (vString = value.toString()) != data(index, role).toString()
+
#endif