mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
reactivate ScrollPerPixel again, as the Qt-patch for "divide by zero" has been applied to qt-copy now
svn path=/trunk/KDE/kdebase/apps/; revision=717366
This commit is contained in:
parent
d4a9bc6a3f
commit
093efca22d
3 changed files with 10 additions and 17 deletions
|
@ -118,9 +118,7 @@ ColumnWidget::ColumnWidget(QWidget* parent,
|
|||
viewport()->setAttribute(Qt::WA_Hover);
|
||||
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||
// TODO: enable ScrollPerPixel again as soon as a Qt-patch
|
||||
// is supplied which fixes a possible crash
|
||||
//setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||
setSelectionBehavior(SelectItems);
|
||||
setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
setDragDropMode(QAbstractItemView::DragDrop);
|
||||
|
@ -807,13 +805,14 @@ void DolphinColumnView::triggerUpdateColumns(const QModelIndex& index)
|
|||
|
||||
void DolphinColumnView::updateColumns()
|
||||
{
|
||||
KDirLister* dirLister = m_dolphinModel->dirLister();
|
||||
foreach (ColumnWidget* column, m_columns) {
|
||||
dirLister->updateDirectory(column->url());
|
||||
}
|
||||
|
||||
const int end = m_columns.count() - 2; // next to last column
|
||||
for (int i = 0; i <= end; ++i) {
|
||||
ColumnWidget* nextColumn = m_columns[i + 1];
|
||||
|
||||
KDirLister* dirLister = m_dolphinModel->dirLister();
|
||||
dirLister->updateDirectory(nextColumn->url());
|
||||
|
||||
const QModelIndex rootIndex = nextColumn->rootIndex();
|
||||
if (rootIndex.isValid()) {
|
||||
nextColumn->show();
|
||||
|
|
|
@ -52,11 +52,8 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent, DolphinController* contr
|
|||
setDragDropMode(QAbstractItemView::DragDrop);
|
||||
setDropIndicatorShown(false);
|
||||
setAlternatingRowColors(true);
|
||||
// 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);
|
||||
setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||
|
||||
setMouseTracking(true);
|
||||
viewport()->setAttribute(Qt::WA_Hover);
|
||||
|
|
|
@ -40,11 +40,8 @@ SidebarTreeView::SidebarTreeView(QWidget* parent) :
|
|||
setDragDropMode(QAbstractItemView::DragDrop);
|
||||
setDropIndicatorShown(false);
|
||||
setAutoExpandDelay(300);
|
||||
// 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);
|
||||
setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||
setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
|
||||
|
||||
viewport()->setAttribute(Qt::WA_Hover);
|
||||
|
||||
|
|
Loading…
Reference in a new issue