QTfrontend/themesmodel.cpp
branchhedgeroid
changeset 5375 ec4006837feb
parent 5332 b29d60c7cac7
--- a/QTfrontend/themesmodel.cpp	Tue Jun 28 17:56:25 2011 +0200
+++ b/QTfrontend/themesmodel.cpp	Tue Jun 28 17:57:54 2011 +0200
@@ -4,7 +4,9 @@
 ThemesModel::ThemesModel(QStringList themes, QObject *parent) :
     QAbstractListModel(parent)
 {
+#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
     m_data.reserve(themes.size());
+#endif
 
     foreach(QString theme, themes)
     {