[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim/akregator_port] akregator2/src: When deleting an item, select the next one
From: Frank Osterfeld <osterfeld () kde ! org>
Date: 2013-03-03 11:48:42
Message-ID: 20130303114842.1E48BA604F () git ! kde ! org
[Download RAW message or body]
Git commit 67ea96e21ce918744d7f507a29dd77b94c9f8248 by Frank Osterfeld.
Committed on 03/03/2013 at 12:47.
Pushed by osterfeld into branch 'akregator_port'.
When deleting an item, select the next one
CCBUG: 304055
M +6 -0 akregator2/src/mainwidget.cpp
http://commits.kde.org/kdepim/67ea96e21ce918744d7f507a29dd77b94c9f8248
diff --git a/akregator2/src/mainwidget.cpp b/akregator2/src/mainwidget.cpp
index b4ad012..7ed7ba1 100644
--- a/akregator2/src/mainwidget.cpp
+++ b/akregator2/src/mainwidget.cpp
@@ -985,6 +985,12 @@ void Akregator2::MainWidget::slotArticleDelete()
job->start();
}
+ //Select the next item
+ const QModelIndexList indexes = \
m_articleListView->selectionModel()->selectedRows(); + if ( indexes.size() == 1 ) \
{ + const QModelIndex nextItem = indexes[0].sibling( indexes[0].row()+1, 0 );
+ m_articleListView->selectionModel()->select( nextItem, \
QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Rows ); + }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic