1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-24 16:51:59 +01:00

Merge pull request #5130 from narunlifescience/master

add dropdown animation to library & internet tree view
This commit is contained in:
John Maguire 2015-11-25 12:03:40 +00:00
commit bcaa9e4a37
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ InternetView::InternetView(QWidget* parent) : AutoExpandingTreeView(parent) {
SetExpandOnReset(false); SetExpandOnReset(false);
setAttribute(Qt::WA_MacShowFocusRect, false); setAttribute(Qt::WA_MacShowFocusRect, false);
setSelectionMode(QAbstractItemView::ExtendedSelection); setSelectionMode(QAbstractItemView::ExtendedSelection);
setAnimated(true);
} }
void InternetView::contextMenuEvent(QContextMenuEvent* e) { void InternetView::contextMenuEvent(QContextMenuEvent* e) {

View File

@ -185,6 +185,7 @@ LibraryView::LibraryView(QWidget* parent)
setSelectionMode(QAbstractItemView::ExtendedSelection); setSelectionMode(QAbstractItemView::ExtendedSelection);
setStyleSheet("QTreeView::item{padding-top:1px;}"); setStyleSheet("QTreeView::item{padding-top:1px;}");
setAnimated(true);
} }
LibraryView::~LibraryView() {} LibraryView::~LibraryView() {}