aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2020-01-31 13:37:30 +0100
committerMitch Curtis <mitch.curtis@qt.io>2020-03-23 14:01:37 +0100
commit67792feba0bc39cd79d789a45978436b09fd4adf (patch)
tree5945ae9ce2b7f36b00e729a1e81d44b4ae1be66f /src/imports/controls/imagine
parentf37bb43758bc19604743ac1d5fdf8d85236b6470 (diff)
Fix Qt 6 to-do comments in QML files
Remove what appears to be code for backwards compatibility in the sizing of certain controls. Removing the code shows no discernible difference in the appearance of those controls. [ChangeLog][Controls][Tumbler] implicitWidth and implicitHeight must now be provided for Tumbler's contentItem, as with all other controls. Change-Id: Id858b6d13bfd81d8f30be57290fb260404652a4c Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/imports/controls/imagine')
-rw-r--r--src/imports/controls/imagine/Tumbler.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/imagine/Tumbler.qml b/src/imports/controls/imagine/Tumbler.qml
index 12025cc5..b53b6265 100644
--- a/src/imports/controls/imagine/Tumbler.qml
+++ b/src/imports/controls/imagine/Tumbler.qml
@@ -45,9 +45,9 @@ T.Tumbler {
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 60 // ### remove 60 in Qt 6
+ implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 200 // ### remove 200 in Qt 6
+ implicitContentHeight + topPadding + bottomPadding)
topInset: background ? -background.topInset || 0 : 0
leftInset: background ? -background.leftInset || 0 : 0