┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphindetailsview.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2009-12-09 18:38:54 +0000
committerFrank Reininghaus <[email protected]>2009-12-09 18:38:54 +0000
commitf5deeadebbb67b4b20eae13f55e0ef66f4127eea (patch)
tree04255f590e07c6916bb5aad92394ff1512ee076f /src/dolphindetailsview.h
parent72280a5fdcb05c31f216d1d46de3b229deef21f8 (diff)
Rename Dolphin View's nameColumnRect member to visualRect.
This overrides QTreeView::visualRect, such that the "visual rect" matches the area used in indexAt. Fixes the problem that the selection loses items in the Details View when selecting new items with Shift+Keyboard. BUG: 217447 svn path=/trunk/KDE/kdebase/apps/; revision=1060716
Diffstat (limited to 'src/dolphindetailsview.h')
-rw-r--r--src/dolphindetailsview.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h
index f9a795560..30e126cd4 100644
--- a/src/dolphindetailsview.h
+++ b/src/dolphindetailsview.h
@@ -72,6 +72,7 @@ protected:
virtual void currentChanged(const QModelIndex& current, const QModelIndex& previous);
virtual bool eventFilter(QObject* watched, QEvent* event);
virtual QModelIndex indexAt (const QPoint& point) const;
+ virtual QRect visualRect(const QModelIndex& index) const;
virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command);
virtual void scrollTo(const QModelIndex& index, ScrollHint hint = EnsureVisible);
@@ -206,8 +207,6 @@ private:
*/
void resizeColumns();
- QRect nameColumnRect(const QModelIndex& index) const;
-
/**
* Returns true, if \a pos is within the expanding toggle of a tree.
*/