[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [marble] src/lib: reuse QStringList rather than QStandardItemModel object
From: Bernhard Beschow <bbeschow () cs ! tu-berlin ! de>
Date: 2013-08-31 16:26:51
Message-ID: E1VFo0h-0003py-IX () scm ! kde ! org
[Download RAW message or body]
Git commit db521a07374525d0029c0af55d467f3c89139cff by Bernhard Beschow.
Committed on 31/08/2013 at 15:48.
Pushed by beschow into branch 'master'.
reuse QStringList rather than QStandardItemModel object
M +2 -2 src/lib/MapThemeManager.cpp
http://commits.kde.org/marble/db521a07374525d0029c0af55d467f3c89139cff
diff --git a/src/lib/MapThemeManager.cpp b/src/lib/MapThemeManager.cpp
index 4971263..4fec79c 100644
--- a/src/lib/MapThemeManager.cpp
+++ b/src/lib/MapThemeManager.cpp
@@ -407,8 +407,8 @@ void MapThemeManager::Private::updateMapThemeModel()
}
}
- for ( int i = 0; i < m_mapThemeModel.rowCount(); ++i ) {
- QString celestialBodyId = ( m_mapThemeModel.data( m_mapThemeModel.index( i, \
0 ), Qt::UserRole + 1 ).toString() ).section( '/', 0, 0 ); + foreach ( const \
QString &mapThemeId, stringlist ) { + QString celestialBodyId = \
mapThemeId.section( '/', 0, 0 ); QString celestialBodyName = Planet::name( \
celestialBodyId );
QList<QStandardItem*> matchingItems = m_celestialList.findItems( \
celestialBodyId, Qt::MatchExactly, 1 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic