diff options
Diffstat (limited to 'tests/auto/snippets/data/calendarview/qtquickcalendar2-calendarview-layout.qml')
-rw-r--r-- | tests/auto/snippets/data/calendarview/qtquickcalendar2-calendarview-layout.qml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/auto/snippets/data/calendarview/qtquickcalendar2-calendarview-layout.qml b/tests/auto/snippets/data/calendarview/qtquickcalendar2-calendarview-layout.qml new file mode 100644 index 00000000..8aba4e02 --- /dev/null +++ b/tests/auto/snippets/data/calendarview/qtquickcalendar2-calendarview-layout.qml @@ -0,0 +1,34 @@ +import QtQuick 2.0 +import QtQuick.Layouts 1.0 +import QtQuick.Calendar 2.0 + +//! [1] +GridLayout { + columns: 2 + + DayOfWeekRow { + locale: view.locale + + Layout.column: 1 + Layout.fillWidth: true + } + + WeekNumberColumn { + month: view.month + year: view.year + locale: view.locale + + Layout.fillHeight: true + } + + CalendarView { + id: view + month: 12 + year: 2015 + locale: Qt.locale("en_US") + + Layout.fillWidth: true + Layout.fillHeight: true + } +} +//! [1] |