summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-07-21 02:27:37 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-07-21 05:30:24 (GMT)
commit90621c451d55463d0b516f0340b3fabad8438008 (patch)
tree804eebcf86c9ab526d128b8d4ee307de20e71304
parent096107254f80e56a7442716ca42ec6164fb5d0f9 (diff)
QList<QSize> -> QVector<QSize>
-rw-r--r--src/lib/marble/PluginItemDelegate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/marble/PluginItemDelegate.cpp b/src/lib/marble/PluginItemDelegate.cpp
index 481c367..2db7f15 100644
--- a/src/lib/marble/PluginItemDelegate.cpp
+++ b/src/lib/marble/PluginItemDelegate.cpp
@@ -124,7 +124,8 @@ QSize PluginItemDelegate::sizeHint( const QStyleOptionViewItem& option,
QStyleOptionViewItem opt = option;
opt.rect = QRect( 0, 0, 0, 0 );
- QList<QSize> elementSize;
+ QVector<QSize> elementSize;
+ elementSize.reserve(4);
QStyleOptionButton checkBox = checkboxOption( opt, index );
elementSize.append( checkBox.rect.size() );
QStyleOptionButton aboutButton = buttonOption( opt, index, PluginItemDelegate::About );