forked from qt-creator/qt-creator
QmlDesigner: Fix build with Qt5
Amends ca5efe7880.
Change-Id: Idea65116baca345c2dff0777b6dbe285bfc4bbe4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -207,9 +207,12 @@ ItemLibraryAssetImportDialog::ItemLibraryAssetImportDialog(
|
|||||||
++optIndex;
|
++optIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_simpleData.contentWidgets.resize(optIndex);
|
// Resize lists in loop for Qt5 compatibility
|
||||||
m_advancedData.contentWidgets.resize(optIndex);
|
for (int i = 0; i < optIndex; ++i) {
|
||||||
m_labelToControlWidgetMaps.resize(optIndex);
|
m_simpleData.contentWidgets.append({});
|
||||||
|
m_advancedData.contentWidgets.append({});
|
||||||
|
m_labelToControlWidgetMaps.append(QHash<QString, QWidget *>());
|
||||||
|
}
|
||||||
|
|
||||||
// Create tab for each supported extension group that also has files included in the import
|
// Create tab for each supported extension group that also has files included in the import
|
||||||
QMap<QString, int> tabMap; // QMap used for alphabetical order
|
QMap<QString, int> tabMap; // QMap used for alphabetical order
|
||||||
|
|||||||
Reference in New Issue
Block a user