]> cloud.milkyroute.net Git - dolphin.git/commitdiff
SVN_SILENT: minor coding style cleanups
authorPeter Penz <peter.penz19@gmail.com>
Sun, 4 Jan 2009 18:14:26 +0000 (18:14 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 4 Jan 2009 18:14:26 +0000 (18:14 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=905620

src/dolphindetailsview.cpp

index dc9f1095625a4b34c2d1cf2c774c3d5ab116a1a9..5e7b7ae0791db66b05338adca9ed017cadfdcf82 100644 (file)
@@ -455,7 +455,7 @@ QModelIndex DolphinDetailsView::indexAt(const QPoint& point) const
     return isAboveEmptySpace ? QModelIndex() : index;
 }
 
-void DolphinDetailsView::setSelection(const QRect &rect, QItemSelectionModel::SelectionFlags command)
+void DolphinDetailsView::setSelection(const QRectrect, QItemSelectionModel::SelectionFlags command)
 {
     // We must override setSelection() as Qt calls it internally and when this happens
     // we must ensure that the default indexAt() is used.
@@ -478,14 +478,12 @@ void DolphinDetailsView::scrollTo(const QModelIndex & index, ScrollHint hint)
 
 void DolphinDetailsView::setSortIndicatorSection(DolphinView::Sorting sorting)
 {
-    QHeaderView* headerView = header();
-    headerView->setSortIndicator(sorting, headerView->sortIndicatorOrder());
+    header()->setSortIndicator(sorting, header()->sortIndicatorOrder());
 }
 
 void DolphinDetailsView::setSortIndicatorOrder(Qt::SortOrder sortOrder)
 {
-    QHeaderView* headerView = header();
-    headerView->setSortIndicator(headerView->sortIndicatorSection(), sortOrder);
+    header()->setSortIndicator(header()->sortIndicatorSection(), sortOrder);
 }
 
 void DolphinDetailsView::synchronizeSortingState(int column)