diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2023-02-06 14:14:28 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2023-02-06 13:51:23 +0000 |
commit | e534c3224d1738a03232a5e9654679adee6c3cff (patch) | |
tree | d1160fbb4534e420ffe26f3487b7aeb1afa8ce82 /share/qtcreator/qmldesigner/itemLibraryQmlSources | |
parent | 6016ef8bd80a411ac92fef753c28dfcc26465a22 (diff) | |
download | qt-creator-e534c3224d1738a03232a5e9654679adee6c3cff.tar.gz |
QmlDesigner: Fix Qt version check in Assets view
The order of arguments in modelIndex call is only swapped for Qt 6.4.
Fixes: QDS-9044
Change-Id: I826ef8136d4669796645e8bbeed5ff53bb77275e
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Diffstat (limited to 'share/qtcreator/qmldesigner/itemLibraryQmlSources')
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml | 2 | ||||
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml index 766bc7aca6..44346b0499 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/Assets.qml @@ -15,7 +15,7 @@ Item { // Array of supported externally dropped files that trigger custom import process property var dropComplexExtFiles: [] - readonly property int qtVersionAtLeast6_4: rootView.qtVersionIsAtLeast6_4() + readonly property int qtVersion6_4: rootView.qtVersionIs6_4() property bool __searchBoxEmpty: true AssetsContextMenu { diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml index 04a190cb2f..23d45ba176 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml @@ -305,7 +305,7 @@ TreeView { // The modelIndex() function exists since 6.3. In Qt 6.3, this modelIndex() function was a // member of the TreeView, while in Qt6.4 it was moved to TableView. In Qt6.4, the order of // the arguments was changed. - if (assetsRoot.qtVersionAtLeast6_4) + if (assetsRoot.qtVersion6_4) return root.modelIndex(0, row) else return root.modelIndex(row, 0) |