fix QML mouse parameter deprecation warning
onClicked needs explicit function(mouse) parameter instead of implicit injection.
This commit is contained in:
parent
3d4e50a386
commit
0706a052f4
|
|
@ -535,7 +535,7 @@ ApplicationWindow {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
hoverEnabled: false
|
hoverEnabled: false
|
||||||
onClicked: {
|
onClicked: function(mouse) {
|
||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
if (type === "session") {
|
if (type === "session") {
|
||||||
sessionCtxMenu.popup()
|
sessionCtxMenu.popup()
|
||||||
|
|
|
||||||
Reference in New Issue