diff options
-rw-r--r-- | share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml b/share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml index dffef33620..c933683072 100644 --- a/share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml +++ b/share/qtcreator/qmldesigner/itemLibraryQmlSources/AssetsView.qml @@ -302,13 +302,9 @@ TreeView { function __modelIndex(row) { - // 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.qtVersion6_4) - return root.modelIndex(0, row) - else - return root.modelIndex(row, 0) + + return root.index(row, 0) + } DropArea { |