┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-11-22 21:07:20 +0000
committerPeter Penz <[email protected]>2008-11-22 21:07:20 +0000
commit55ec5ac2add143a2d15576856f3a3b9c3d010fd6 (patch)
tree7777902e3f38a7b6816f0b319e73df7ced9a50d4 /src
parent02ea8b08a464af22bc2d9d322294a5108324f939 (diff)
The opening/closing animation of subtrees flickers in combination with the sidebar when using the Oxygen style. As workaround the animation is turned off.
svn path=/trunk/KDE/kdebase/apps/; revision=887781
Diffstat (limited to 'src')
-rw-r--r--src/sidebartreeview.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/sidebartreeview.cpp b/src/sidebartreeview.cpp
index 3b1b13bb1..a876ee6c3 100644
--- a/src/sidebartreeview.cpp
+++ b/src/sidebartreeview.cpp
@@ -66,7 +66,8 @@ SidebarTreeView::~SidebarTreeView()
bool SidebarTreeView::event(QEvent* event)
{
- if (event->type() == QEvent::Polish) {
+ switch (event->type()) {
+ case QEvent::Polish:
// hide all columns except of the 'Name' column
hideColumn(DolphinModel::Size);
hideColumn(DolphinModel::ModifiedTime);
@@ -77,12 +78,23 @@ bool SidebarTreeView::event(QEvent* event)
hideColumn(DolphinModel::Rating);
hideColumn(DolphinModel::Tags);
header()->hide();
- }
- else if (event->type() == QEvent::UpdateRequest) {
+ break;
+
+ case QEvent::Show:
+ // TODO: The opening/closing animation of subtrees flickers in combination with the
+ // sidebar when using the Oxygen style. As workaround the animation is turned off:
+ setAnimated(false);
+ break;
+
+ case QEvent::UpdateRequest:
// a wheel movement will scroll 1 item
if (model()->rowCount() > 0) {
verticalScrollBar()->setSingleStep(sizeHintForRow(0) / 3);
}
+ break;
+
+ default:
+ break;
}
return KTreeView::event(event);