temporary disable the ScrollPerPixel feature until a Qt-patch is supplied which fixes a possible crash

(see http://lists.kde.org/?l=kde-core-devel&m=119077433611662&w=2)

svn path=/trunk/KDE/kdebase/apps/; revision=717132
This commit is contained in:
Peter Penz 2007-09-26 06:08:51 +00:00
parent 7923d297f1
commit c364f1b47a
2 changed files with 10 additions and 4 deletions

View file

@ -52,8 +52,11 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent, DolphinController* contr
setDragDropMode(QAbstractItemView::DragDrop); setDragDropMode(QAbstractItemView::DragDrop);
setDropIndicatorShown(false); setDropIndicatorShown(false);
setAlternatingRowColors(true); setAlternatingRowColors(true);
setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); // TODO: enable ScrollPerPixel again as soon as a Qt-patch
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); // 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); setMouseTracking(true);
viewport()->setAttribute(Qt::WA_Hover); viewport()->setAttribute(Qt::WA_Hover);

View file

@ -40,8 +40,11 @@ SidebarTreeView::SidebarTreeView(QWidget* parent) :
setDragDropMode(QAbstractItemView::DragDrop); setDragDropMode(QAbstractItemView::DragDrop);
setDropIndicatorShown(false); setDropIndicatorShown(false);
setAutoExpandDelay(300); setAutoExpandDelay(300);
setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel); // TODO: enable ScrollPerPixel again as soon as a Qt-patch
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); // 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);
viewport()->setAttribute(Qt::WA_Hover); viewport()->setAttribute(Qt::WA_Hover);