summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-07-21 05:28:09 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-07-21 05:31:37 (GMT)
commite22fc53e26db49788dde4f74ced3ffd851a6080a (patch)
treeeb37d9a0d3e1f2952c5f06d322ceffd9acb023bf
parent357c2f923f5ba694e4f25c2da13db3ecb60bb19f (diff)
QList<AxisTick> -> QVector<AxisTick>
-rw-r--r--src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h b/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h
index bee258c..2403df9 100644
--- a/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h
+++ b/src/plugins/render/elevationprofilefloatitem/ElevationProfilePlotAxis.h
@@ -12,7 +12,7 @@
#define ELEVATIONPROFILEPLOTAXIS_H
#include <QObject>
-#include <QList>
+#include <QVector>
#include <QString>
namespace Marble
@@ -21,14 +21,19 @@ namespace Marble
struct AxisTick {
int position;
qreal value;
- AxisTick( const int &position_, const qreal &value_ ) :
+ AxisTick() :
+ position(0),
+ value(0.0)
+ {
+ }
+ AxisTick(int position_, qreal value_) :
position( position_ ),
value( value_ )
{
// nothing to do
}
};
-typedef QList<AxisTick> AxisTickList;
+typedef QVector<AxisTick> AxisTickList;
/**
* @short A helper class handling a plot axis for the Elevation Profile
@@ -65,4 +70,7 @@ class ElevationProfilePlotAxis : public QObject
};
}
+
+Q_DECLARE_TYPEINFO(Marble::AxisTick, Q_PRIMITIVE_TYPE);
+
#endif // ELEVATIONPROFILEPLOTAXIS_H