Browse Source

Add mousearea to prevent clicking through the printSetupSelector

CURA-6478
Jaime van Kessel 5 years ago
parent
commit
db1a5ec8c0

+ 1 - 1
resources/qml/Cura.qml

@@ -391,7 +391,7 @@ UM.MainWindow
         PrintSetupTooltip
         PrintSetupTooltip
         {
         {
             id: tooltip
             id: tooltip
-            sourceWidth: UM.Theme.getSize("print_setup_widget").width 
+            sourceWidth: UM.Theme.getSize("print_setup_widget").width
         }
         }
     }
     }
 
 

+ 7 - 0
resources/qml/PrintSetupSelector/PrintSetupSelectorContents.qml

@@ -25,6 +25,13 @@ Item
         Custom = 1
         Custom = 1
     }
     }
 
 
+    // Catch all mouse events
+    MouseArea
+    {
+        anchors.fill: parent
+        hoverEnabled: true
+    }
+
     // Set the current mode index to the value that is stored in the preferences or Recommended mode otherwise.
     // Set the current mode index to the value that is stored in the preferences or Recommended mode otherwise.
     property int currentModeIndex:
     property int currentModeIndex:
     {
     {