Skip to content

Commit

Permalink
Debug changes - do not merge
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMcInnes committed Jul 8, 2024
1 parent 647b1ef commit f3ef1b1
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/controls/SpinBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ CT.SpinBox {
text: root.textFromValue(root.value, root.locale)
color: root.enabled ? Theme.color_font_primary : Theme.color_background_disabled
font.pixelSize: root.secondaryText.length > 0 ? Theme.font_size_h2 : Theme.font_size_h3
property int temp: font.pixelSize
onTempChanged: console.log("SpinBox: font.pixelSize:", temp)
onWidthChanged: console.log("SpinBox: primaryLabel: width:", width)

horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
}
Expand Down
7 changes: 7 additions & 0 deletions components/dialogs/NumberSelectorDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ModalDialog {
function _multiplier() {
return Math.pow(10, decimals)
}
onWidthChanged: console.log("NumberSelectorDIalog: width:", width, "scale:", scale)

onAboutToShow: {

Expand All @@ -40,6 +41,7 @@ ModalDialog {
}

contentItem: Item {
onWidthChanged: console.log("NumberSelectorDIalog: contentItem: width:", width)
Column {
anchors {
verticalCenter: parent.verticalCenter
Expand All @@ -55,6 +57,11 @@ ModalDialog {

anchors.horizontalCenter: parent.horizontalCenter
width: parent.width - 2*Theme.geometry_modalDialog_content_horizontalMargin


onWidthChanged: console.log("NumberSelectorDIalog: spinBox: width:", width)


height: Theme.geometry_timeSelector_spinBox_height
indicatorImplicitWidth: root.decimals > 0
? Theme.geometry_spinBox_indicator_minimumWidth
Expand Down
1 change: 1 addition & 0 deletions components/listitems/ListSpinBox.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ListButton {

button.text: value === undefined ? "--" : Units.formatNumber(value, decimals) + root.suffix
enabled: dataItem.uid === "" || dataItem.isValid
onWidthChanged: console.log("ListSpinBox: width:", width)

onClicked: Global.dialogLayer.open(numberSelectorComponent, {value: value})

Expand Down
2 changes: 2 additions & 0 deletions pages/settings/DvccCommonSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Column {
ListSwitch {
id: maxChargeCurrentSwitch

onScaleChanged: console.log("DvccCommonSettings: scale:", scale)
onWidthChanged: console.log("DvccCommonSettings: width:", width)
//% "Limit charge current"
text: qsTrId("settings_dvcc_limit_charge_current")
updateOnClick: false
Expand Down
13 changes: 13 additions & 0 deletions pages/settings/PageSettingsDvcc.qml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ import QtQuick.Controls as C
Page {
id: root

onScaleChanged: console.log("PageSettingsDvcc:", scale)
onWidthChanged: console.log("PageSettingsDvcc: width:", width)
Timer {
interval: 5000
running: true
repeat: true
onTriggered: {
console.log("PageSettingsDvcc:", root.scale)
console.log("PageSettingsDvcc: width:", root.width)

}
}

GradientListView {
id: dvccSettings

Expand Down

0 comments on commit f3ef1b1

Please sign in to comment.