[Marble-commits] KDE/kdeedu/marble/src/lib

Ariya Hidayat ariya at kde.org
Thu Jul 30 18:36:12 CEST 2009


SVN commit 1004632 by ariya:

Last fix to build with Qt < 4.5.

Reviewed-by: Torsten Rahn.


 M  +7 -0      LayerManager.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/LayerManager.cpp #1004631:1004632
@@ -107,7 +107,14 @@
     QList<AbstractDataPluginItem *> itemList;
     
     foreach( AbstractDataPlugin *plugin, d->m_dataPlugins ) {
+#if QT_VERSION >= 0x040500
         itemList.append( plugin->whichItemAt( curpos ) );
+#else
+        QList<AbstractDataPluginItem *> subList =  plugin->whichItemAt( curpos );
+        foreach( AbstractDataPluginItem *item, subList ) {
+            itemList.append( item );
+        }
+#endif
     }
     return itemList;
 }


More information about the Marble-commits mailing list