diff options
| author | Tannin <devnull@localhost> | 2015-03-09 12:34:34 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-03-09 12:34:34 +0100 |
| commit | 7a1ae9b0f1560c9eda32e032796fbb3fd56ff236 (patch) | |
| tree | dea71435ac1042cb008fcd9f7b1ec57e6ea91227 /src/viewmarkingscrollbar.h | |
| parent | d45ebf134819e1559718681becca9c4139fb7151 (diff) | |
| parent | db2954e8eb41da715b9e7d79a72e225797401413 (diff) | |
Merge with branch1.2
Diffstat (limited to 'src/viewmarkingscrollbar.h')
| -rw-r--r-- | src/viewmarkingscrollbar.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/viewmarkingscrollbar.h b/src/viewmarkingscrollbar.h new file mode 100644 index 00000000..12a297d1 --- /dev/null +++ b/src/viewmarkingscrollbar.h @@ -0,0 +1,22 @@ +#ifndef VIEWMARKINGSCROLLBAR_H
+#define VIEWMARKINGSCROLLBAR_H
+
+#include <QScrollBar>
+#include <QAbstractItemModel>
+
+
+class ViewMarkingScrollBar : public QScrollBar
+{
+public:
+ static const int DEFAULT_ROLE = Qt::UserRole + 42;
+public:
+ ViewMarkingScrollBar(QAbstractItemModel *model, QWidget *parent = 0, int role = DEFAULT_ROLE);
+protected:
+ virtual void paintEvent(QPaintEvent *event);
+private:
+ QAbstractItemModel *m_Model;
+ int m_Role;
+};
+
+
+#endif // VIEWMARKINGSCROLLBAR_H
|
