1
0
tuanchris 3 сар өмнө
parent
commit
3126fa9147

+ 4 - 3
dune-weaver-touch/qml/main.qml

@@ -213,13 +213,16 @@ ApplicationWindow {
         }
         }
     }
     }
 
 
+    } // Close rotatedContent Item
+
+    // Dialogs and overlays (outside rotated content to keep them right-side up)
     MessageDialog {
     MessageDialog {
         id: errorDialog
         id: errorDialog
         title: "Error"
         title: "Error"
         buttons: MessageDialog.Ok
         buttons: MessageDialog.Ok
     }
     }
 
 
-    // Virtual Keyboard Support
+    // Virtual Keyboard Support (outside rotated content to keep it right-side up)
     InputPanel {
     InputPanel {
         id: inputPanel
         id: inputPanel
         z: 99999
         z: 99999
@@ -250,6 +253,4 @@ ApplicationWindow {
             }
             }
         }
         }
     }
     }
-
-    } // Close rotatedContent Item
 }
 }

+ 8 - 1
dune-weaver-touch/qml/pages/TableControlPage.qml

@@ -184,7 +184,14 @@ Page {
                                 Menu {
                                 Menu {
                                     id: portMenu
                                     id: portMenu
                                     y: parent.height
                                     y: parent.height
-                                    
+
+                                    // Counter-rotate menu to compensate for parent's 180° rotation
+                                    transform: Rotation {
+                                        origin.x: portMenu.width / 2
+                                        origin.y: 0
+                                        angle: 180
+                                    }
+
                                     Repeater {
                                     Repeater {
                                         model: serialPorts
                                         model: serialPorts
                                         MenuItem {
                                         MenuItem {