aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/calendar/qquickcalendarmodel.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-30 17:06:27 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-10-01 09:03:34 +0000
commit98e7b3cca484df43838fe834dcaf1f97f45c659f (patch)
treee82c39559cd26e98382964d18651b5f62cfdfae7 /src/imports/calendar/qquickcalendarmodel.cpp
parent542dd7b77a236fef03e5569e44669fad6db0485d (diff)
Rename QtQuick.Calendar 2.0 to Qt.labs.calendar 1.0
Change-Id: Ief7e28f6c595cb60f15a4960dada24a6c2f5ca3e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/imports/calendar/qquickcalendarmodel.cpp')
-rw-r--r--src/imports/calendar/qquickcalendarmodel.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/imports/calendar/qquickcalendarmodel.cpp b/src/imports/calendar/qquickcalendarmodel.cpp
index 39e0c118..cfbfd25c 100644
--- a/src/imports/calendar/qquickcalendarmodel.cpp
+++ b/src/imports/calendar/qquickcalendarmodel.cpp
@@ -3,7 +3,7 @@
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
-** This file is part of the Qt Quick Calendar module of the Qt Toolkit.
+** This file is part of the Qt Labs Calendar module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
@@ -44,14 +44,14 @@ QT_BEGIN_NAMESPACE
\qmltype CalendarModel
\inherits QAbstractListModel
\instantiates QQuickCalendarModel
- \inqmlmodule QtQuick.Calendar
+ \inqmlmodule Qt.labs.calendar
\brief A calendar model.
CalendarModel provides a way of creating a range of CalendarView
instances. It is typically used as a model for a ListView that uses
CalendarView as a delegate.
- \snippet calendarmodel/qtquickcalendar2-calendarmodel.qml 1
+ \snippet calendarmodel/qtlabscalendar-calendarmodel.qml 1
In addition to the \c index property, a list of model data roles
are available in the context of each delegate:
@@ -116,7 +116,7 @@ QQuickCalendarModel::QQuickCalendarModel(QObject *parent) :
}
/*!
- \qmlproperty date QtQuick.Calendar::CalendarModel::from
+ \qmlproperty date Qt.labs.calendar::CalendarModel::from
This property holds the start date.
*/
@@ -138,7 +138,7 @@ void QQuickCalendarModel::setFrom(const QDate &from)
}
/*!
- \qmlproperty date QtQuick.Calendar::CalendarModel::to
+ \qmlproperty date Qt.labs.calendar::CalendarModel::to
This property holds the end date.
*/
@@ -160,7 +160,7 @@ void QQuickCalendarModel::setTo(const QDate &to)
}
/*!
- \qmlmethod int QtQuick.Calendar::CalendarModel::monthAt(int index)
+ \qmlmethod int Qt.labs.calendar::CalendarModel::monthAt(int index)
Returns the month number at the specified model \a index.
*/
@@ -171,7 +171,7 @@ int QQuickCalendarModel::monthAt(int index) const
}
/*!
- \qmlmethod int QtQuick.Calendar::CalendarModel::yearAt(int index)
+ \qmlmethod int Qt.labs.calendar::CalendarModel::yearAt(int index)
Returns the year number at the specified model \a index.
*/
@@ -182,7 +182,7 @@ int QQuickCalendarModel::yearAt(int index) const
}
/*!
- \qmlmethod int QtQuick.Calendar::CalendarModel::indexOf(Date date)
+ \qmlmethod int Qt.labs.calendar::CalendarModel::indexOf(Date date)
Returns the model index of the specified \a date.
*/
@@ -192,7 +192,7 @@ int QQuickCalendarModel::indexOf(const QDate &date) const
}
/*!
- \qmlmethod int QtQuick.Calendar::CalendarModel::indexOf(int year, int month)
+ \qmlmethod int Qt.labs.calendar::CalendarModel::indexOf(int year, int month)
Returns the model index of the specified \a year and \a month.
*/