From ce21b61ab021e85b7b621990958576e77879bf1e Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 20 Aug 2008 18:14:20 +0000 Subject: [PATCH] whoops, PLASMA_EXPORT and remove some settings that belongs more to the applet that uses it svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=850051 --- widgets/treeview.cpp | 6 ++++-- widgets/treeview.h | 7 ++++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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