Progress indicators

This commit is contained in:
Jan Dalheimer
2013-12-30 23:39:10 +01:00
parent e6be883d14
commit 8cfd0881ac
7 changed files with 111 additions and 16 deletions

View File

@@ -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;