diff options
| author | Peter Penz <[email protected]> | 2008-12-30 14:29:58 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-12-30 14:29:58 +0000 |
| commit | 46483d7c082bf6ec0044b08469757de8a0c08360 (patch) | |
| tree | bda41ea8c1357adcb0e190a214cb1d03ad078aeb | |
| parent | 8536030ea50957de4cdef243dc1b6d8a7a41b9ee (diff) | |
SVN_SILENT: minor coding style cleanups
svn path=/trunk/KDE/kdebase/apps/; revision=903414
| -rw-r--r-- | src/dolphindetailsview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 1b651456a..9ccb75b8e 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -210,7 +210,6 @@ void DolphinDetailsView::mousePressEvent(QMouseEvent* event) setState(QAbstractItemView::DraggingState); } else { m_expandingTogglePressed = true; - kDebug() << "m_expandingTogglePressed " << m_expandingTogglePressed; } } @@ -466,7 +465,6 @@ void DolphinDetailsView::setSelection(const QRect &rect, QItemSelectionModel::Se QTreeView::setSelection(rect, command); m_useDefaultIndexAt = false; } else { - // Use our own elastic band selection algorithm updateElasticBandSelection(); } @@ -474,9 +472,9 @@ void DolphinDetailsView::setSelection(const QRect &rect, QItemSelectionModel::Se void DolphinDetailsView::scrollTo(const QModelIndex & index, ScrollHint hint) { - if (m_ignoreScrollTo) - return; - QTreeView::scrollTo(index, hint); + if (!m_ignoreScrollTo) { + QTreeView::scrollTo(index, hint); + } } void DolphinDetailsView::setSortIndicatorSection(DolphinView::Sorting sorting) @@ -518,10 +516,12 @@ void DolphinDetailsView::updateElasticBand() m_band.destination = viewport()->mapFromGlobal(QCursor::pos()) + scrollPos; // Going above the (logical) top-left of the view causes complications during selection; // we may as well prevent it. - if (m_band.destination.y() < 0) + if (m_band.destination.y() < 0) { m_band.destination.setY(0); - if (m_band.destination.x() < 0) + } + if (m_band.destination.x() < 0) { m_band.destination.setX(0); + } dirtyRegion = dirtyRegion.united(elasticBandRect()); setDirtyRegion(dirtyRegion); |
