diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2015-06-02 20:57:41 +0300 |
---|---|---|
committer | Olivier Goffart <ogoffart@woboq.com> | 2015-06-02 20:57:41 +0300 |
commit | e587c8e2dc897a9f092b47cb06cbb6597e4aee32 (patch) | |
tree | 5345a47207e6d0d70db821e0d24718b6e98c9b84 /src/gui/folderstatusmodel.h | |
parent | 984434c7289ad2382092dc00ce293525286ff26e (diff) |
multi-account: compile with Qt4
Diffstat (limited to 'src/gui/folderstatusmodel.h')
-rw-r--r-- | src/gui/folderstatusmodel.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/folderstatusmodel.h b/src/gui/folderstatusmodel.h index 650a4aa5e..2d8f713c4 100644 --- a/src/gui/folderstatusmodel.h +++ b/src/gui/folderstatusmodel.h @@ -19,10 +19,6 @@ #include <QStandardItemModel> #include <accountfwd.h> -#ifndef Q_DECL_OVERRIDE -#define Q_DECL_OVERRIDE -#endif - namespace OCC { class Folder; @@ -96,6 +92,12 @@ private: AccountPtr _account; bool _dirty = false; // If the selective sync checkboxes were changed +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + //the roles argument was added in Qt5 + void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles = QVector<int>()) + { emit QAbstractItemModel::dataChanged(topLeft,bottomRight); } +#endif + signals: void dirtyChanged(); }; |