summaryrefslogtreecommitdiff
path: root/src/viewmarkingscrollbar.h
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2023-07-09 17:36:03 +0200
committerGitHub <noreply@github.com>2023-07-09 17:36:03 +0200
commitef94aee28464039672b277243a0181ae93550d6c (patch)
tree0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/viewmarkingscrollbar.h
parent7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff)
parent3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff)
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
Diffstat (limited to 'src/viewmarkingscrollbar.h')
-rw-r--r--src/viewmarkingscrollbar.h50
1 files changed, 24 insertions, 26 deletions
diff --git a/src/viewmarkingscrollbar.h b/src/viewmarkingscrollbar.h
index 01b5a8c0..8fff05e9 100644
--- a/src/viewmarkingscrollbar.h
+++ b/src/viewmarkingscrollbar.h
@@ -1,26 +1,24 @@
-#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;
-
- // 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
+#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