Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2015-06-15 15:16:21 +0300
committerOlivier Goffart <ogoffart@woboq.com>2015-06-15 15:16:21 +0300
commita3c543a627bf2f624a08561d82d4c034918322fb (patch)
tree47f2d06e28d326787e842c0eb2ea748962fb8ebf /src/gui/folderstatusmodel.h
parent8bcd0261dc77084e7e892c68820f97e0f33756f4 (diff)
Move FolderStatusDelegate to its own file
Diffstat (limited to 'src/gui/folderstatusmodel.h')
-rw-r--r--src/gui/folderstatusmodel.h35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/gui/folderstatusmodel.h b/src/gui/folderstatusmodel.h
index cb9a8658e..0f3be4ced 100644
--- a/src/gui/folderstatusmodel.h
+++ b/src/gui/folderstatusmodel.h
@@ -15,9 +15,8 @@
#ifndef FOLDERSTATUSMODEL_H
#define FOLDERSTATUSMODEL_H
-#include <QStyledItemDelegate>
-#include <QStandardItemModel>
#include <accountfwd.h>
+#include <QAbstractItemModel>
class QNetworkReply;
namespace OCC {
@@ -105,38 +104,6 @@ signals:
void dirtyChanged();
};
-class FolderStatusDelegate : public QStyledItemDelegate
-{
- Q_OBJECT
- public:
- FolderStatusDelegate();
- virtual ~FolderStatusDelegate();
-
- enum datarole { FolderAliasRole = Qt::UserRole + 100,
- FolderPathRole,
- FolderSecondPathRole,
- FolderRemotePath,
- FolderStatus,
- FolderErrorMsg,
- FolderSyncPaused,
- FolderStatusIconRole,
- FolderAccountConnected,
-
- SyncProgressOverallPercent,
- SyncProgressOverallString,
- SyncProgressItemString,
- AddProgressSpace,
- WarningCount,
- SyncRunning,
-
- AddButton
- };
- void paint( QPainter*, const QStyleOptionViewItem&, const QModelIndex& ) const Q_DECL_OVERRIDE;
- QSize sizeHint( const QStyleOptionViewItem&, const QModelIndex& ) const Q_DECL_OVERRIDE;
- bool editorEvent( QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option,
- const QModelIndex& index ) Q_DECL_OVERRIDE;
-};
-
} // namespace OCC
#endif // FOLDERSTATUSMODEL_H