aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickdialogs/quickdialogsquickimpl/qml
diff options
context:
space:
mode:
authorFabio Falsini <falsinsoft@gmail.com>2023-05-17 22:17:10 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-05-22 23:34:46 +0000
commit3b590385d545fd1cf4ad1bc5e47b57843e6ec0f1 (patch)
treed357730acf1f427049496027b988f8f99b1664da /src/quickdialogs/quickdialogsquickimpl/qml
parentbbc83b521eb3a3852e09c4c3d745e1b23125c32b (diff)
ColorDialog don't resize correctly on small screens
The SaturationLightnessPicker control is set to always have a square shape but in this way when the screen height is not sufficient (as in the case of smartphones) the dialog does not fit going beyond the edges of the screen and became unusable Change-Id: I9b04286dd744c70ba0f4d27d85b0ef398f685b43 Fixes: QTBUG-113673 Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> (cherry picked from commit 959f42e11fd4e75a6661bea6fe273f3d6adaff4f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quickdialogs/quickdialogsquickimpl/qml')
-rw-r--r--src/quickdialogs/quickdialogsquickimpl/qml/+Fusion/ColorDialog.qml2
-rw-r--r--src/quickdialogs/quickdialogsquickimpl/qml/+Imagine/ColorDialog.qml2
-rw-r--r--src/quickdialogs/quickdialogsquickimpl/qml/+Material/ColorDialog.qml2
-rw-r--r--src/quickdialogs/quickdialogsquickimpl/qml/+Universal/ColorDialog.qml2
-rw-r--r--src/quickdialogs/quickdialogsquickimpl/qml/ColorDialog.qml2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/quickdialogs/quickdialogsquickimpl/qml/+Fusion/ColorDialog.qml b/src/quickdialogs/quickdialogsquickimpl/qml/+Fusion/ColorDialog.qml
index 591ac46a84..edf5b11bc9 100644
--- a/src/quickdialogs/quickdialogsquickimpl/qml/+Fusion/ColorDialog.qml
+++ b/src/quickdialogs/quickdialogsquickimpl/qml/+Fusion/ColorDialog.qml
@@ -85,10 +85,10 @@ ColorDialogImpl {
SaturationLightnessPicker {
id: colorPicker
objectName: "colorPicker"
- implicitHeight: width
color: control.color
Layout.fillWidth: true
+ Layout.fillHeight: true
}
Slider {
diff --git a/src/quickdialogs/quickdialogsquickimpl/qml/+Imagine/ColorDialog.qml b/src/quickdialogs/quickdialogsquickimpl/qml/+Imagine/ColorDialog.qml
index 641453bca5..fb2bfd259e 100644
--- a/src/quickdialogs/quickdialogsquickimpl/qml/+Imagine/ColorDialog.qml
+++ b/src/quickdialogs/quickdialogsquickimpl/qml/+Imagine/ColorDialog.qml
@@ -86,10 +86,10 @@ ColorDialogImpl {
SaturationLightnessPicker {
id: colorPicker
objectName: "colorPicker"
- implicitHeight: width
color: control.color
Layout.fillWidth: true
+ Layout.fillHeight: true
}
Slider {
diff --git a/src/quickdialogs/quickdialogsquickimpl/qml/+Material/ColorDialog.qml b/src/quickdialogs/quickdialogsquickimpl/qml/+Material/ColorDialog.qml
index 313e8645b4..7fff2702b0 100644
--- a/src/quickdialogs/quickdialogsquickimpl/qml/+Material/ColorDialog.qml
+++ b/src/quickdialogs/quickdialogsquickimpl/qml/+Material/ColorDialog.qml
@@ -80,10 +80,10 @@ ColorDialogImpl {
SaturationLightnessPicker {
id: colorPicker
objectName: "colorPicker"
- implicitHeight: width
color: control.color
Layout.fillWidth: true
+ Layout.fillHeight: true
}
Slider {
diff --git a/src/quickdialogs/quickdialogsquickimpl/qml/+Universal/ColorDialog.qml b/src/quickdialogs/quickdialogsquickimpl/qml/+Universal/ColorDialog.qml
index d13b751652..fff97131f5 100644
--- a/src/quickdialogs/quickdialogsquickimpl/qml/+Universal/ColorDialog.qml
+++ b/src/quickdialogs/quickdialogsquickimpl/qml/+Universal/ColorDialog.qml
@@ -83,10 +83,10 @@ ColorDialogImpl {
SaturationLightnessPicker {
id: colorPicker
objectName: "colorPicker"
- implicitHeight: width
color: control.color
Layout.fillWidth: true
+ Layout.fillHeight: true
}
Slider {
diff --git a/src/quickdialogs/quickdialogsquickimpl/qml/ColorDialog.qml b/src/quickdialogs/quickdialogsquickimpl/qml/ColorDialog.qml
index c8395bacd0..4a3cf955b8 100644
--- a/src/quickdialogs/quickdialogsquickimpl/qml/ColorDialog.qml
+++ b/src/quickdialogs/quickdialogsquickimpl/qml/ColorDialog.qml
@@ -81,10 +81,10 @@ ColorDialogImpl {
SaturationLightnessPicker {
id: colorPicker
objectName: "colorPicker"
- implicitHeight: width
color: control.color
Layout.fillWidth: true
+ Layout.fillHeight: true
}
Slider {