[Marble-commits] KDE/kdeedu/marble/src/plugins/render/geodata
Bastian Holst
bastianholst at gmx.de
Fri Jul 9 18:49:20 CEST 2010
SVN commit 1148067 by bholst:
Break long lines.
M +8 -3 GeoRendererView.cpp
--- trunk/KDE/kdeedu/marble/src/plugins/render/geodata/GeoRendererView.cpp #1148066:1148067
@@ -102,8 +102,12 @@
* then call the real render function. For the rest iterate through the
* children and recurse.
*/
- GeoDataObject* indexObject = model()->data( rootIndex(), Qt::UserRole + 11 ).value<Marble::GeoDataObject*>();
- if( !( dynamic_cast<GeoDataFeature*>( indexObject ) && dynamic_cast<GeoDataFeature*>( indexObject )->isVisible() ) ) return;
+ QVariant indexObjectVariant = model()->data( rootIndex(), Qt::UserRole + 11 );
+ GeoDataObject* indexObject = indexObjectVariant.value<Marble::GeoDataObject*>();
+ if( !( dynamic_cast<GeoDataFeature*>( indexObject )
+ && dynamic_cast<GeoDataFeature*>( indexObject )->isVisible() ) ) {
+ return;
+ }
int rowCount = model()->rowCount( index );
@@ -111,7 +115,8 @@
{
QModelIndex childIndex = model()->index( row, 0, index );
QString output = model()->data( childIndex ).toString();
- GeoDataObject* object = model()->data( childIndex, Qt::UserRole + 11 ).value<Marble::GeoDataObject*>();
+ QVariant objectVariant = model()->data( childIndex, Qt::UserRole + 11 );
+ GeoDataObject* object = objectVariant.value<Marble::GeoDataObject*>();
if( dynamic_cast<GeoDataGeometry*>( object ) ) {
if( static_cast<GeoDataGeometry*>( object )->geometryId() != GeoDataMultiGeometryId ) {
More information about the Marble-commits
mailing list