diff options
| author | Tannin <devnull@localhost> | 2014-07-15 20:45:29 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-07-15 20:45:29 +0200 |
| commit | 0a152ceadfc90650359b15dc448751f702e1070c (patch) | |
| tree | 02e468fb58330d25fd765974e48ab681bf360cab /src/modlistview.cpp | |
| parent | d412060d59b1597ae1d11d793662610e90863fc9 (diff) | |
| parent | 5718af351034c1936a91a3782651733dfecdc4e5 (diff) | |
Merge
Diffstat (limited to 'src/modlistview.cpp')
| -rw-r--r-- | src/modlistview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modlistview.cpp b/src/modlistview.cpp index 1a4f6266..2789afe1 100644 --- a/src/modlistview.cpp +++ b/src/modlistview.cpp @@ -36,8 +36,10 @@ 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 +48,9 @@ void ModListView::dragEnterEvent(QDragEnterEvent *event) QTreeView::dragEnterEvent(event);
}
+
+void ModListView::setModel(QAbstractItemModel *model)
+{
+ QTreeView::setModel(model);
+ setVerticalScrollBar(new ViewMarkingScrollBar(model, this));
+}
|
