[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/akonadi
From: Volker Krause <vkrause () kde ! org>
Date: 2010-12-23 17:35:12
Message-ID: 20101223173512.993343E1F1 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1208928 by vkrause:
Ensure the selected collection is visible, with e.g. favorites it was
possible to select collapsed or scrolled out collections.
M +6 -0 entitytreeview.cpp
--- trunk/KDE/kdepimlibs/akonadi/entitytreeview.cpp #1208927:1208928
@@ -124,7 +124,13 @@
mParent->model()->fetchMore( index.sibling( row, column ) );
}
}
+
+ if ( selected.size() == 1 ) {
+ const QItemSelectionRange &range = selected.first();
+ if ( range.topLeft().row() == range.bottomRight().row() )
+ mParent->scrollTo( range.topLeft(), QTreeView::EnsureVisible );
}
+}
void EntityTreeView::Private::itemClicked( const QModelIndex &index )
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic