diff --git a/widgets/treeview.cpp b/widgets/treeview.cpp index 7bd44e6fb..067f6c1c8 100644 --- a/widgets/treeview.cpp +++ b/widgets/treeview.cpp @@ -27,6 +27,8 @@ #include "private/style.h" +namespace Plasma +{ class TreeViewPrivate { @@ -47,9 +49,7 @@ TreeView::TreeView(QGraphicsWidget *parent) QTreeView* native = new QTreeView; setWidget(native); native->setAttribute(Qt::WA_NoSystemBackground); - native->viewport()->setAutoFillBackground(false); native->setFrameStyle(QFrame::NoFrame); - native->setIconSize(QSize(KIconLoader::SizeSmallMedium, KIconLoader::SizeSmallMedium)); Plasma::Style *style = new Plasma::Style(); native->verticalScrollBar()->setStyle(style); @@ -86,5 +86,7 @@ QTreeView* TreeView::nativeWidget() const return static_cast(widget()); } +}; + #include diff --git a/widgets/treeview.h b/widgets/treeview.h index 892471e92..5cde9ac69 100644 --- a/widgets/treeview.h +++ b/widgets/treeview.h @@ -23,13 +23,17 @@ #include +#include + class QTreeView; class QAbstractItemModel; +namespace Plasma +{ class TreeViewPrivate; -class TreeView : public QGraphicsProxyWidget +class PLASMA_EXPORT TreeView : public QGraphicsProxyWidget { Q_OBJECT @@ -75,4 +79,5 @@ private: TreeViewPrivate * const d; }; +}; #endif // multiple inclusion guard