diff --git a/components/controls/SpinBox.qml b/components/controls/SpinBox.qml index 838b25613..c0cf82ab3 100644 --- a/components/controls/SpinBox.qml +++ b/components/controls/SpinBox.qml @@ -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 } diff --git a/components/dialogs/NumberSelectorDialog.qml b/components/dialogs/NumberSelectorDialog.qml index 6d95774b0..afdf3fbf0 100644 --- a/components/dialogs/NumberSelectorDialog.qml +++ b/components/dialogs/NumberSelectorDialog.qml @@ -24,6 +24,7 @@ ModalDialog { function _multiplier() { return Math.pow(10, decimals) } + onWidthChanged: console.log("NumberSelectorDIalog: width:", width, "scale:", scale) onAboutToShow: { @@ -40,6 +41,7 @@ ModalDialog { } contentItem: Item { + onWidthChanged: console.log("NumberSelectorDIalog: contentItem: width:", width) Column { anchors { verticalCenter: parent.verticalCenter @@ -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 diff --git a/components/listitems/ListSpinBox.qml b/components/listitems/ListSpinBox.qml index 35d20917b..a2afe76fb 100644 --- a/components/listitems/ListSpinBox.qml +++ b/components/listitems/ListSpinBox.qml @@ -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}) diff --git a/pages/settings/DvccCommonSettings.qml b/pages/settings/DvccCommonSettings.qml index 2a3ad49d8..b1f230e69 100644 --- a/pages/settings/DvccCommonSettings.qml +++ b/pages/settings/DvccCommonSettings.qml @@ -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 diff --git a/pages/settings/PageSettingsDvcc.qml b/pages/settings/PageSettingsDvcc.qml index 3911b4d42..a6620207e 100644 --- a/pages/settings/PageSettingsDvcc.qml +++ b/pages/settings/PageSettingsDvcc.qml @@ -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