mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Remove frame and margin around tree view sidebar.
svn path=/trunk/KDE/kdebase/apps/; revision=642531
This commit is contained in:
parent
cd4b064fb2
commit
ffcd3ed514
|
@ -36,6 +36,7 @@ SidebarTreeView::SidebarTreeView(DolphinMainWindow* mainWindow,
|
||||||
setSelectionMode(QAbstractItemView::SingleSelection);
|
setSelectionMode(QAbstractItemView::SingleSelection);
|
||||||
setEditTriggers(QAbstractItemView::NoEditTriggers);
|
setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||||
setSortingEnabled(true);
|
setSortingEnabled(true);
|
||||||
|
setFrameStyle(QFrame::NoFrame);
|
||||||
|
|
||||||
viewport()->setAttribute(Qt::WA_Hover);
|
viewport()->setAttribute(Qt::WA_Hover);
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,7 @@ TreeViewSidebarPage::TreeViewSidebarPage(DolphinMainWindow* mainWindow,
|
||||||
this, SLOT(dropUrls(const KUrl::List&, const QModelIndex&)));
|
this, SLOT(dropUrls(const KUrl::List&, const QModelIndex&)));
|
||||||
|
|
||||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||||
|
layout->setMargin(0);
|
||||||
layout->addWidget(m_treeView);
|
layout->addWidget(m_treeView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue