diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/controls/Calendar.qml | 3 | ||||
| -rw-r--r-- | src/controls/Styles/Base/CalendarStyle.qml | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/controls/Calendar.qml b/src/controls/Calendar.qml index 5b56dc761..11b20b379 100644 --- a/src/controls/Calendar.qml +++ b/src/controls/Calendar.qml @@ -74,9 +74,6 @@ import QtQuick.Controls.Private 1.0 Control { id: calendar - implicitWidth: 250 - implicitHeight: 250 - /*! \qmlproperty date Calendar::selectedDate diff --git a/src/controls/Styles/Base/CalendarStyle.qml b/src/controls/Styles/Base/CalendarStyle.qml index 8d4b0783a..e30f84179 100644 --- a/src/controls/Styles/Base/CalendarStyle.qml +++ b/src/controls/Styles/Base/CalendarStyle.qml @@ -161,9 +161,13 @@ Style { /*! The background of the calendar. + + The implicit size of the calendar is calculated based on the implicit size of the background delegate. */ property Component background: Rectangle { color: "#fff" + implicitWidth: 250 + implicitHeight: 250 } /*! @@ -305,8 +309,8 @@ Style { property Component panel: Item { id: panelItem - implicitWidth: 200 - implicitHeight: 200 + implicitWidth: backgroundLoader.implicitWidth + implicitHeight: backgroundLoader.implicitHeight property alias navigationBarItem: navigationBarLoader.item |
