forked from qt-creator/qt-creator
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:
committed by
Tim Jenssen
parent
b33b25c936
commit
31d6daf209
@@ -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 {
|
||||
|
Reference in New Issue
Block a user