QmlDesigner: Fix __modelIndex for Qt 6.4.3

Since this is a throw away branch we can hardcode the fix
for Qt 6.4.3.

See 0c7ae672a2 for the proper fix.

Task-number: QDS-9560
Change-Id: Ic519541e2f6ed3efa5e38c9dbeb71390632b8b58
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2023-03-28 11:02:13 +02:00
committed by Tim Jenssen
parent b33b25c936
commit 31d6daf209

View File

@@ -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 {