diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2013-12-30 23:39:10 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2013-12-30 23:39:10 +0100 |
commit | 8cfd0881ac3fcbb45fd42dedcb1caf0be38eacaf (patch) | |
tree | 15c704510fc4f3c783e609dd476add7d033fcf22 /CategorizedView.h | |
parent | e6be883d14a4147ffd58a1c8066bb70879d775fb (diff) | |
download | MultiMC-8cfd0881ac3fcbb45fd42dedcb1caf0be38eacaf.tar MultiMC-8cfd0881ac3fcbb45fd42dedcb1caf0be38eacaf.tar.gz MultiMC-8cfd0881ac3fcbb45fd42dedcb1caf0be38eacaf.tar.lz MultiMC-8cfd0881ac3fcbb45fd42dedcb1caf0be38eacaf.tar.xz MultiMC-8cfd0881ac3fcbb45fd42dedcb1caf0be38eacaf.zip |
Progress indicators
Diffstat (limited to 'CategorizedView.h')
-rw-r--r-- | CategorizedView.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/CategorizedView.h b/CategorizedView.h index 8ab9ce87..08d43be8 100644 --- a/CategorizedView.h +++ b/CategorizedView.h @@ -5,6 +5,16 @@ #include <QLineEdit> #include <QCache> +struct CategorizedViewRoles +{ + enum + { + CategoryRole = Qt::UserRole, + ProgressValueRole, + ProgressMaximumRole + }; +}; + class CategorizedView : public QListView { Q_OBJECT @@ -13,11 +23,6 @@ public: CategorizedView(QWidget *parent = 0); ~CategorizedView(); - enum - { - CategoryRole = Qt::UserRole - }; - virtual QRect visualRect(const QModelIndex &index) const; QModelIndex indexAt(const QPoint &point) const; void setSelection(const QRect &rect, const QItemSelectionModel::SelectionFlags commands) override; |