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