summaryrefslogtreecommitdiff
path: root/src/viewmarkingscrollbar.h
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-07-14 21:22:44 +0200
committerTannin <devnull@localhost>2014-07-14 21:22:44 +0200
commit84c66727bff954fd0820fc9f33833848496e9531 (patch)
treeca3497150eb9f124d7a124cc48c8d6d1330b7243 /src/viewmarkingscrollbar.h
parentaf8973312188c3d90b8e3f8e2f8036d35e3f21ea (diff)
- when highlighting a mod the overwritten and overwriting mods are now highlighted in the list
- when starting an external application MO now wraps the process in a job and waits on that instead. This way MO is not unlocked early when skyrim is started through skse - mod info dialog no longer offers the esp tab for foreign mods because that caused confusion - updated translation files - download directory and mod directory are now created if necessary - bugfix: staging script created unnecessary copies of translation files - bugfix: potential invalid array access when trying to determine best mod order - bugfix: deleter file wasn't removed after esp hiding was disabled - bugfix: potential access to to un-initialized login reply - bugfix: changed the initialization order to allow more ui controls to be localized
Diffstat (limited to 'src/viewmarkingscrollbar.h')
-rw-r--r--src/viewmarkingscrollbar.h22
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