summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-07-21 03:50:04 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-07-21 05:30:25 (GMT)
commit019df53b4e5aed978f686bda588c8383e71b950a (patch)
tree2b9f8346df676cbed05cecbaa5eaee6350f95e38
parent2d27a6eac09f5eaf5dfdabe6d82819b1d424fbce (diff)
QList<QImage> -> QVector<QImage>
-rw-r--r--src/plugins/render/annotate/GroundOverlayFrame.cpp2
-rw-r--r--src/plugins/render/annotate/GroundOverlayFrame.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/render/annotate/GroundOverlayFrame.cpp b/src/plugins/render/annotate/GroundOverlayFrame.cpp
index feec522..02181d1 100644
--- a/src/plugins/render/annotate/GroundOverlayFrame.cpp
+++ b/src/plugins/render/annotate/GroundOverlayFrame.cpp
@@ -39,6 +39,7 @@ GroundOverlayFrame::GroundOverlayFrame( GeoDataPlacemark *placemark,
m_previousRotation( 0.0 ),
m_viewport( 0 )
{
+ m_resizeIcons.reserve(16);
// NorthWest
m_resizeIcons.append( QImage( MarbleDirs::systemPath() + "/bitmaps/editarrows/arrow-diagonal-topleft.png" ) );
m_resizeIcons.append( QImage( MarbleDirs::systemPath() + "/bitmaps/editarrows/arrow-diagonal-topleft-active.png" ) );
@@ -65,6 +66,7 @@ GroundOverlayFrame::GroundOverlayFrame( GeoDataPlacemark *placemark,
m_resizeIcons.append( QImage( MarbleDirs::systemPath() + "/bitmaps/editarrows/arrow-horizontal-active.png" ) );
+ m_rotateIcons.reserve(16);
// NorthWest
m_rotateIcons.append( QImage( MarbleDirs::systemPath() + "/bitmaps/editarrows/arrow-rotation-topleft.png" ) );
m_rotateIcons.append( QImage( MarbleDirs::systemPath() + "/bitmaps/editarrows/arrow-rotation-topleft-active.png" ) );
diff --git a/src/plugins/render/annotate/GroundOverlayFrame.h b/src/plugins/render/annotate/GroundOverlayFrame.h
index 1f2fa90..a9fa4e8 100644
--- a/src/plugins/render/annotate/GroundOverlayFrame.h
+++ b/src/plugins/render/annotate/GroundOverlayFrame.h
@@ -74,8 +74,8 @@ private:
bool m_editStatusChangeNeeded;
qreal m_previousRotation;
- QList<QImage> m_resizeIcons;
- QList<QImage> m_rotateIcons;
+ QVector<QImage> m_resizeIcons;
+ QVector<QImage> m_rotateIcons;
const ViewportParams *m_viewport;
};