summaryrefslogtreecommitdiff
path: root/src/viewmarkingscrollbar.h
blob: 6947a018b915dca41a73dab5bc54aff318f91a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef VIEWMARKINGSCROLLBAR_H
#define VIEWMARKINGSCROLLBAR_H

#include <QTreeView>
#include <QScrollBar>


class ViewMarkingScrollBar : public QScrollBar
{
public:
  ViewMarkingScrollBar(QTreeView* view, int role);

protected:
  void paintEvent(QPaintEvent *event) override;

private:
  QTreeView* m_view;
  int m_role;
};


#endif // VIEWMARKINGSCROLLBAR_H