Skip to content

Commit

Permalink
Fix menu alias break (#119)
Browse files Browse the repository at this point in the history
Signed-off-by: jparisu <[email protected]>
  • Loading branch information
jparisu authored Sep 9, 2021
1 parent 561aca8 commit f97e2d8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qml/EntityList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Rectangle {

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton

onDoubleClicked: {
if(endpointList.height === endpointList.collapseHeightFlag) {
endpointList.height = 0;
Expand Down Expand Up @@ -160,6 +162,8 @@ Rectangle {

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton

onDoubleClicked: {
if(locatorList.height === locatorList.collapseHeightFlag) {
locatorList.height = 0;
Expand Down Expand Up @@ -243,6 +247,8 @@ Rectangle {

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton

onClicked: {
if(mouse.button & Qt.RightButton) {
openEntitiesMenu(id, name, kind)
Expand Down
4 changes: 4 additions & 0 deletions qml/LogicalView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ Rectangle {

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton

onDoubleClicked: {
if(topicList.height === topicList.collapseHeightFlag) {
topicList.height = 0;
Expand Down Expand Up @@ -166,6 +168,8 @@ Rectangle {

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton

onClicked: {
if(mouse.button & Qt.RightButton) {
openEntitiesMenu(id, name, kind)
Expand Down
6 changes: 6 additions & 0 deletions qml/PhysicalView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ Rectangle {

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton

onDoubleClicked: {
if(userList.height === userList.collapseHeightFlag) {
userList.height = 0;
Expand Down Expand Up @@ -161,6 +163,8 @@ Rectangle {

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton

onDoubleClicked: {
if(processList.height === processList.collapseHeightFlag) {
processList.height = 0;
Expand Down Expand Up @@ -244,6 +248,8 @@ Rectangle {

MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton

onClicked: {
if(mouse.button & Qt.RightButton) {
openEntitiesMenu(id, name, kind)
Expand Down

0 comments on commit f97e2d8

Please sign in to comment.