]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphindetailsview.cpp
Revert last patch which should fix the "name column can get too small issue" - turnin...
[dolphin.git] / src / dolphindetailsview.cpp
index 6fe4709ff1805c35e6b44324f2366ec2c339f8c3..2eca0860cc90c3601661c677eab2d1cf0969c9dc 100644 (file)
@@ -52,8 +52,11 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent, DolphinController* contr
     setDragDropMode(QAbstractItemView::DragDrop);
     setDropIndicatorShown(false);
     setAlternatingRowColors(true);
-    setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
-    setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
+    // TODO: enable ScrollPerPixel again as soon as a Qt-patch
+    // is supplied which fixes a possible crash
+    // (see http://lists.kde.org/?l=kde-core-devel&m=119077433611662&w=2)
+    //setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
+    //setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
 
     setMouseTracking(true);
     viewport()->setAttribute(Qt::WA_Hover);
@@ -141,6 +144,9 @@ bool DolphinDetailsView::event(QEvent* event)
         if (!settings->showType()) {
             hideColumn(DolphinModel::Type);
         }
+
+        hideColumn(DolphinModel::Rating);
+        hideColumn(DolphinModel::Tags);
     }
 
     return QTreeView::event(event);