aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-06-29 14:27:54 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-08-09 15:25:39 +0000
commit3a07d1b2e102826f13c80361fe5491ec44c173a6 (patch)
treec9fa599ca1aadf169708f9663086c0db7f10e57e /src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml
parent45de496a54202b41c0c2f7b519cebc0788b82df0 (diff)
Restructure the docs to separate the experimental labs QML types
Including the experimental Qt Labs Calendar docs to qqc2.qdocconf leads to Qt Creator's help contents being mixed with QML types from both modules. Move the Qt Labs Calendar to its own .qdocconf the same way it's done for Qt Labs Platform, and just link to both from the index page. This also ensures that the index-search offers "Calendar" from "Qt Quick Controls (1)" and "Qt Labs Calendar" instead of "Qt Quick Controls 2". Change-Id: Iaf5e7df6d3013657c774d65bf76fb7bc2f80aa71 Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
Diffstat (limited to 'src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml')
-rw-r--r--src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml b/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml
new file mode 100644
index 00000000..ce41d224
--- /dev/null
+++ b/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml
@@ -0,0 +1,47 @@
+/****************************************************************************
+**
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the documentation of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Free Documentation License Usage
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file. Please review the following information to ensure
+** the GNU Free Documentation License version 1.3 requirements
+** will be met: http://www.gnu.org/copyleft/fdl.html.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import QtQuick 2.0
+import QtQuick.Layouts 1.0
+import Qt.labs.calendar 1.0
+
+//! [1]
+ColumnLayout {
+ DayOfWeekRow {
+ locale: grid.locale
+ Layout.fillWidth: true
+ }
+
+ MonthGrid {
+ id: grid
+ month: Calendar.December
+ year: 2015
+ locale: Qt.locale("en_US")
+ Layout.fillWidth: true
+ }
+}
+//! [1]