forked from qt-creator/qt-creator
QmlDesigner: Allow texture download only via left mouse button
Previously, the user would have downloaded the real texture even when
clicking with the right mouse button.
(cherry picked from commit bf61be5cc0
)
Task-number: QDS-9226
Change-Id: I4040cda4a8c541edc12b4bfe821a09c76eb7efc4
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
8f17625ef5
commit
2333ed54cd
@@ -165,7 +165,10 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: {
|
onClicked: (mouse) => {
|
||||||
|
if (mouse.button !== Qt.LeftButton)
|
||||||
|
return
|
||||||
|
|
||||||
if (root.downloadState !== "" && root.downloadState !== "failed")
|
if (root.downloadState !== "" && root.downloadState !== "failed")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user