]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/sidebartreeview.cpp
reactivate ScrollPerPixel again, as the Qt-patch for "divide by zero" has been applie...
[dolphin.git] / src / sidebartreeview.cpp
index 7bbddfdf256f3863b80f8ad034ebc0bb1d9aa963..caf1314c688ba5bfaf7c248189d022c9f086ef32 100644 (file)
@@ -40,6 +40,8 @@ SidebarTreeView::SidebarTreeView(QWidget* parent) :
     setDragDropMode(QAbstractItemView::DragDrop);
     setDropIndicatorShown(false);
     setAutoExpandDelay(300);
+    setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
+    setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
 
     viewport()->setAttribute(Qt::WA_Hover);
 
@@ -65,6 +67,8 @@ bool SidebarTreeView::event(QEvent* event)
         hideColumn(DolphinModel::Owner);
         hideColumn(DolphinModel::Group);
         hideColumn(DolphinModel::Type);
+        hideColumn(DolphinModel::Rating);
+        hideColumn(DolphinModel::Tags);
         header()->hide();
     }