[Marble-commits] KDE/kdeedu/marble/src/lib
Thibaut Gridel
tgridel at free.fr
Sat Jul 17 11:00:31 CEST 2010
SVN commit 1150964 by tgridel:
GeoDataTreeModel: remove parenting hack now that
placemark and multigeometry use pointer to set geometry
M +0 -10 GeoDataTreeModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/GeoDataTreeModel.cpp #1150963:1150964
@@ -208,22 +208,12 @@
GeoDataPlacemark *placemark = dynamic_cast<GeoDataPlacemark*>( parentItem );
if ( placemark ) {
childItem = placemark->geometry();
- // TODO: this parenting is needed because the parser doesn't use
- // the pointer-based API. This should happen there.
- if (childItem->parent() != placemark) {
- childItem->setParent(placemark);
}
- }
GeoDataMultiGeometry *geometry = dynamic_cast<GeoDataMultiGeometry*>( parentItem );
if ( geometry ) {
childItem = geometry->child( row );
- // TODO: this parenting is needed because the parser doesn't use
- // the pointer-based API. This should happen there.
- if (childItem->parent() != geometry) {
- childItem->setParent(geometry);
}
- }
if ( childItem ) {
More information about the Marble-commits
mailing list