Make "AutoExpandingTreeView" animated by default
This adds dropdown animation to views which are derived from "AutoExpandingTreeView" (internet, library, global search etc.)
This commit is contained in:
parent
b85d09cd9c
commit
780a34c0bc
|
@ -32,7 +32,6 @@ InternetView::InternetView(QWidget* parent) : AutoExpandingTreeView(parent) {
|
|||
SetExpandOnReset(false);
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
setAnimated(true);
|
||||
}
|
||||
|
||||
void InternetView::contextMenuEvent(QContextMenuEvent* e) {
|
||||
|
|
|
@ -185,7 +185,6 @@ LibraryView::LibraryView(QWidget* parent)
|
|||
setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
|
||||
setStyleSheet("QTreeView::item{padding-top:1px;}");
|
||||
setAnimated(true);
|
||||
}
|
||||
|
||||
LibraryView::~LibraryView() {}
|
||||
|
|
|
@ -30,6 +30,7 @@ AutoExpandingTreeView::AutoExpandingTreeView(QWidget* parent)
|
|||
add_on_double_click_(true),
|
||||
ignore_next_click_(false) {
|
||||
setExpandsOnDoubleClick(false);
|
||||
setAnimated(true);
|
||||
|
||||
connect(this, SIGNAL(expanded(QModelIndex)), SLOT(ItemExpanded(QModelIndex)));
|
||||
connect(this, SIGNAL(clicked(QModelIndex)), SLOT(ItemClicked(QModelIndex)));
|
||||
|
|
Loading…
Reference in New Issue