[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/annotation/lib/gui
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2011-02-25 8:23:28
Message-ID: 20110225082328.3CA0AAC8C0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1222681 by trueg:
Always keep the selection on the first item if the user did not navigate yet.
M +1 -1 annotationwidget.cpp
--- trunk/playground/base/nepomuk-kde/annotation/lib/gui/annotationwidget.cpp \
#1222680:1222681 @@ -85,10 +85,10 @@
void Nepomuk::AnnotationWidget::Private::_k_slotAnnotationsChanged()
{
+ m_sortModel->sort(0, Qt::DescendingOrder);
if ( !navigationPerformed )
m_annotationsView->selectionModel()->select( m_sortModel->index( 0, 0 ),
\
QItemSelectionModel::Clear|QItemSelectionModel::SelectCurrent );
- m_sortModel->sort(0, Qt::DescendingOrder);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic