┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-10-04 05:59:46 +0000
committerPeter Penz <[email protected]>2007-10-04 05:59:46 +0000
commit7bbb858a041d4b31bf3e79d6d7af9d067ffbd018 (patch)
treefe879a6934dc992ff7d21439ae05434a0bc9457a /src/dolphindetailsview.cpp
parenta24c1fce8234dc0ad0116aecc06c7151bcdd1cee (diff)
coding style nit-picking
svn path=/trunk/KDE/kdebase/apps/; revision=720955
Diffstat (limited to 'src/dolphindetailsview.cpp')
-rw-r--r--src/dolphindetailsview.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp
index 590e3c7d8..d5b14783b 100644
--- a/src/dolphindetailsview.cpp
+++ b/src/dolphindetailsview.cpp
@@ -157,9 +157,10 @@ bool DolphinDetailsView::event(QEvent* event)
hideColumn(DolphinModel::Tags);
}
else if (event->type() == QEvent::UpdateRequest) {
- // A wheel movement will scroll 4 items
- if (model()->rowCount())
+ // a wheel movement will scroll 4 items
+ if (model()->rowCount() > 0) {
verticalScrollBar()->setSingleStep((sizeHintForRow(0) / 3) * 4);
+ }
}
return QTreeView::event(event);