blob: 8fff05e91ecee1938a8e2151514656c12abaa098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef VIEWMARKINGSCROLLBAR_H
#define VIEWMARKINGSCROLLBAR_H
#include <QScrollBar>
#include <QTreeView>
class ViewMarkingScrollBar : public QScrollBar
{
public:
ViewMarkingScrollBar(QTreeView* view, int role);
protected:
void paintEvent(QPaintEvent* event) override;
// retrieve the color of the marker for the given index
//
virtual QColor color(const QModelIndex& index) const;
private:
QTreeView* m_view;
int m_role;
};
#endif // VIEWMARKINGSCROLLBAR_H
|