Skip to content

Commit

Permalink
fix layouting for QT6
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Feb 29, 2024
1 parent d3ce14e commit 4180acb
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 16 deletions.
25 changes: 12 additions & 13 deletions qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,6 @@ ApplicationWindow {
}
}

// TODO QT 6
ColorPicker {
id: colorPicker
height: 264
width: 380
z: 15.0
anchors.centerIn: parent
}

// UI areas

HUDOverlayGrid {
id: hudOverlayGrid
anchors.fill: parent
Expand All @@ -117,12 +106,22 @@ ApplicationWindow {
layer.enabled: false
}


ConfigPopup {
id: settings_panel
visible: false
}

// TODO QT 6
ColorPicker {
id: colorPicker
height: 264
width: 380
z: 15.0
anchors.centerIn: parent
}
//ColorDialoque{
//}

WorkaroundMessageBox{
id: workaroundmessagebox
}
Expand All @@ -149,7 +148,7 @@ ApplicationWindow {
}
}
AnyParamBusyIndicator{
z: 10
z: 10
}

Component.onCompleted: {
Expand Down
1 change: 1 addition & 0 deletions qml/qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,6 @@
<file>ui/elements/NewSlider.qml</file>
<file>ui/sidebar/InfoElement2.qml</file>
<file>ui/elements/ErrorMessageBox.qml</file>
<file>ui/elements/ColorDialoque.qml</file>
</qresource>
</RCC>
6 changes: 3 additions & 3 deletions qml/ui/configpopup/dev/AppDeveloperStatsPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Rectangle {
property int rowHeight: 64
property int text_minHeight: 20

color: "green"//"#eaeaea"
color: "#eaeaea"

function yes_or_no_as_string(yes){
if(yes) return "Y"
Expand Down Expand Up @@ -104,7 +104,7 @@ Rectangle {
}
}
Row {
//width: parent.width
spacing: 5
visible: _qopenhd.is_linux()
Button {
text: "Start openhd"
Expand Down Expand Up @@ -132,7 +132,7 @@ Rectangle {
}
}
Row {
//width: parent.width
spacing: 5
Button {
font.capitalization: Font.MixedCase
text: qsTr("Restart QOpenHD")
Expand Down
15 changes: 15 additions & 0 deletions qml/ui/elements/ColorDialoque.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import QtQuick 2.12
import QtQuick.Dialogs 1.3

ColorDialog {
id: colorDialog
//selectedColor: settings.color_text

Component.onCompleted: visible = true


function custom_open(current_color){

}
}

0 comments on commit 4180acb

Please sign in to comment.