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;
|
||||
}
|
||||
|
||||
m_simpleData.contentWidgets.resize(optIndex);
|
||||
m_advancedData.contentWidgets.resize(optIndex);
|
||||
m_labelToControlWidgetMaps.resize(optIndex);
|
||||
// Resize lists in loop for Qt5 compatibility
|
||||
for (int i = 0; i < optIndex; ++i) {
|
||||
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
|
||||
QMap<QString, int> tabMap; // QMap used for alphabetical order
|
||||
|
||||
Reference in New Issue
Block a user