[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [marble] src/lib/geodata/data: Bring back (deprecated) setCoordinate(GeoDataPoint) in placemark.
From: Dennis_Nienhüser <earthwings () gentoo ! org>
Date: 2013-01-01 10:06:05
Message-ID: 20130101100605.85C73A60C6 () git ! kde ! org
[Download RAW message or body]
Git commit 9f18e43d5b79c3c6bd632353e396593a3897119b by Dennis Nienhüser.
Committed on 01/01/2013 at 11:01.
Pushed by nienhueser into branch 'master'.
Bring back (deprecated) setCoordinate(GeoDataPoint) in placemark.
Should ease API adjustments in external libraries.
M +5 -0 src/lib/geodata/data/GeoDataPlacemark.cpp
M +3 -1 src/lib/geodata/data/GeoDataPlacemark.h
http://commits.kde.org/marble/9f18e43d5b79c3c6bd632353e396593a3897119b
diff --git a/src/lib/geodata/data/GeoDataPlacemark.cpp b/src/lib/geodata/data/GeoDataPlacemark.cpp
index 05775bd..423f29f 100644
--- a/src/lib/geodata/data/GeoDataPlacemark.cpp
+++ b/src/lib/geodata/data/GeoDataPlacemark.cpp
@@ -130,6 +130,11 @@ void GeoDataPlacemark::setCoordinate( const GeoDataCoordinates &point )
setGeometry ( new GeoDataPoint( point ) );
}
+void GeoDataPlacemark::setCoordinate( const GeoDataPoint &point )
+{
+ setGeometry ( new GeoDataPoint( point ) );
+}
+
void GeoDataPlacemark::setGeometry( GeoDataGeometry *entry )
{
detach();
diff --git a/src/lib/geodata/data/GeoDataPlacemark.h b/src/lib/geodata/data/GeoDataPlacemark.h
index b30d4e1..5dcfe6a 100644
--- a/src/lib/geodata/data/GeoDataPlacemark.h
+++ b/src/lib/geodata/data/GeoDataPlacemark.h
@@ -118,7 +118,9 @@ class GEODATA_EXPORT GeoDataPlacemark: public GeoDataFeature
/**
* Set the coordinate of the placemark with an @p GeoDataPoint.
*/
- void setCoordinate( const GeoDataCoordinates &point );
+ void setCoordinate( const GeoDataCoordinates &coordinate );
+
+ MARBLE_DEPRECATED( void setCoordinate( const GeoDataPoint &point ) );
/**
* Sets the current Geometry of this Placemark. @see geometry() and the class
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic