Commit 2623ed08 authored by Aurélien Gâteau's avatar Aurélien Gâteau
Browse files

Use sidebar background color (like Dolphin)

svn path=/trunk/KDE/kdegraphics/gwenview/; revision=955577
parent 89c0f9d6
......@@ -49,6 +49,15 @@ struct FolderViewContextManagerItemPrivate {
mView = new QTreeView;
mView->setEditTriggers(QAbstractItemView::NoEditTriggers);
mView->setHeaderHidden(true);
mView->setFrameStyle(QFrame::NoFrame);
QPalette p = mView->palette();
p.setColor(QPalette::Active, QPalette::Text, p.color(QPalette::Active, QPalette::WindowText));
p.setColor(QPalette::Inactive, QPalette::Text, p.color(QPalette::Inactive, QPalette::WindowText));
p.setColor(QPalette::Disabled, QPalette::Text, p.color(QPalette::Disabled, QPalette::WindowText));
mView->setPalette(p);
mView->viewport()->setAutoFillBackground(false);
q->setWidget(mView);
QObject::connect(mView, SIGNAL(activated(const QModelIndex&)),
q, SLOT(slotActivated(const QModelIndex&)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment