Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickmonthgrid_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKMONTHGRID_P_H
5#define QQUICKMONTHGRID_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuickTemplates2/private/qquickcontrol_p.h>
19
21
22class QQmlComponent;
24
26{
28 Q_PROPERTY(int month READ month WRITE setMonth NOTIFY monthChanged FINAL)
29 Q_PROPERTY(int year READ year WRITE setYear NOTIFY yearChanged FINAL)
33 QML_NAMED_ELEMENT(AbstractMonthGrid)
35
36public:
38
39 int month() const;
40 void setMonth(int month);
41
42 int year() const;
43 void setYear(int year);
44
47
50
53
60
65
66protected:
67 void componentComplete() override;
68 void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
69 void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
70 void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override;
71 void updatePolish() override;
72
73 void timerEvent(QTimerEvent *event) override;
74
76 Q_DISABLE_COPY(QQuickMonthGrid)
77 Q_DECLARE_PRIVATE(QQuickMonthGrid)
78};
79
81
82#endif // QQUICKMONTHGRID_P_H
\inmodule QtCore \reentrant
Definition qdatetime.h:29
\inmodule QtCore
Definition qmargins.h:270
The QQmlComponent class encapsulates a QML component definition.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
qreal y const
Definition qquickitem.h:347
QQuickItem * parent
\qmlproperty Item QtQuick::Item::parent This property holds the visual parent of the item.
Definition qquickitem.h:67
A grid of days for a calendar month.
void pressAndHold(QDate date)
void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override
void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override
void pressed(QDate date)
QQmlComponent * delegate
void released(QDate date)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void clicked(QDate date)
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void setTitle(const QString &title)
void timerEvent(QTimerEvent *event) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
void setSource(const QVariant &source)
void setDelegate(QQmlComponent *delegate)
void delegateChanged()
void setMonth(int month)
void updatePolish() override
This function should perform any layout as required for this item.
void sourceChanged()
void setYear(int year)
\inmodule QtCore\reentrant
Definition qrect.h:484
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qcoreevent.h:366
\inmodule QtCore
Definition qvariant.h:65
QDate date
[1]
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source
struct _cl_event * event
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
#define explicit