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
This commit is contained in:
parent
7fb9508d80
commit
ce21b61ab0
@ -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<QTreeView*>(widget());
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#include <treeview.moc>
|
||||
|
||||
|
@ -23,13 +23,17 @@
|
||||
|
||||
#include <QtGui/QGraphicsProxyWidget>
|
||||
|
||||
#include <plasma/plasma_export.h>
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user