[Marble-commits] KDE/kdeedu/marble/src/lib
Patrick Spendrin
ps_ml at gmx.de
Fri Jul 10 00:00:45 CEST 2009
SVN commit 994011 by sengels:
make marble display placemarks correctly after new ones got added
M +3 -2 MarblePlacemarkModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarblePlacemarkModel.cpp #994010:994011
@@ -213,13 +213,14 @@
endRemoveRows();
}
- beginInsertRows( QModelIndex(), 0, placemarks.count() - 1 );
+ const int length = d->m_placemarkContainer.count();
+ beginInsertRows( QModelIndex(), length, length + placemarks.count() - 1 );
createFilterProperties( placemarks );
d->m_placemarkContainer << placemarks;
endInsertRows();
- emit dataChanged( index( 0, 0 ), index( placemarks.count() - 1, 0 ) );
+ emit dataChanged( index( length, 0 ), index( length + placemarks.count() - 1, 0 ) );
}
void MarblePlacemarkModel::removePlacemarks( const QString &containerName,
More information about the Marble-commits
mailing list