[Marble-commits] KDE/kdeedu/marble/src/lib
Torsten Rahn
tackat at kde.org
Thu Jan 6 22:46:50 CET 2011
SVN commit 1212409 by rahn:
Commit Den's planet part of
http://reviewboard.kde.org/r/6223/
Add planet option to map creation wizard
M +20 -0 Planet.cpp
M +5 -0 Planet.h
--- trunk/KDE/kdeedu/marble/src/lib/Planet.cpp #1212408:1212409
@@ -348,6 +348,26 @@
return id;
}
+QStringList Planet::planetList()
+{
+
+ QStringList planets;
+
+ planets << "mercury"
+ << "venus"
+ << "earth"
+ << "mars"
+ << "jupiter"
+ << "saturn"
+ << "uranus"
+ << "neptune"
+ << "pluto"
+ << "sun"
+ << "moon";
+
+ return planets;
+}
+
Planet& Planet::operator=(const Planet& rhs)
{
// PlanetPrivate does not have pointer members, so we can just
--- trunk/KDE/kdeedu/marble/src/lib/Planet.h #1212408:1212409
@@ -12,6 +12,7 @@
#define MARBLE_PLANET_H
#include "marble_export.h"
+#include <QStringList>
namespace Marble
{
@@ -94,6 +95,10 @@
static QString name( const QString& id );
+ static QStringList planetList();
+
+
+
private:
PlanetPrivate * const d;
};
More information about the Marble-commits
mailing list