From f5deeadebbb67b4b20eae13f55e0ef66f4127eea Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Wed, 9 Dec 2009 18:38:54 +0000 Subject: 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 --- src/dolphindetailsview.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dolphindetailsview.h') 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. */ -- cgit v1.3