mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
use a transparent background to let the users eye focus on the folder content (e. g. like in http://www.kde-look.org/content/preview.php?preview=1&id=60475&file1=60475-1.jpg&file2=&file3=&name=Crystal+Project)
svn path=/trunk/KDE/kdebase/apps/; revision=676274
This commit is contained in:
parent
8096f7ccc0
commit
c1aed6c033
1 changed files with 4 additions and 0 deletions
|
@ -43,6 +43,10 @@ SidebarTreeView::SidebarTreeView(QWidget* parent) :
|
|||
|
||||
viewport()->setAttribute(Qt::WA_Hover);
|
||||
|
||||
QPalette palette = viewport()->palette();
|
||||
palette.setColor(viewport()->backgroundRole(), Qt::transparent);
|
||||
viewport()->setPalette(palette);
|
||||
|
||||
KFileItemDelegate* delegate = new KFileItemDelegate(this);
|
||||
setItemDelegate(delegate);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue