diff options
| author | Tannin <devnull@localhost> | 2015-01-03 15:58:52 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-01-03 15:58:52 +0100 |
| commit | a16e25380f088dc310fbed24d2dcef603357e99a (patch) | |
| tree | 40fc3b5254f2797eb20bfac1d54a22652d469fa2 /src/modlistview.cpp | |
| parent | 459816ab71ae6b350847cc93f1e03e49ecf75ade (diff) | |
| parent | f2f9e11fdd876821107cff0c1c5b9d8ecf66691f (diff) | |
Merge with branch1.2
Diffstat (limited to 'src/modlistview.cpp')
| -rw-r--r-- | src/modlistview.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modlistview.cpp b/src/modlistview.cpp index 1a4f6266..50a13a8c 100644 --- a/src/modlistview.cpp +++ b/src/modlistview.cpp @@ -36,8 +36,9 @@ void ModListViewStyle::drawPrimitive(PrimitiveElement element, const QStyleOptio ModListView::ModListView(QWidget *parent)
: QTreeView(parent)
+ , m_Scrollbar(new ViewMarkingScrollBar(this->model(), this))
{
-// setStyle(new ModListViewStyle(style(), indentation()));
+ setVerticalScrollBar(m_Scrollbar);
}
void ModListView::dragEnterEvent(QDragEnterEvent *event)
@@ -46,3 +47,9 @@ void ModListView::dragEnterEvent(QDragEnterEvent *event) QTreeView::dragEnterEvent(event);
}
+
+void ModListView::setModel(QAbstractItemModel *model)
+{
+ QTreeView::setModel(model);
+ setVerticalScrollBar(new ViewMarkingScrollBar(model, this));
+}
|
