Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickweeknumbercolumn_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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKWEEKNUMBERCOLUMN_P_H
6#define QQUICKWEEKNUMBERCOLUMN_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuickTemplates2/private/qquickcontrol_p.h>
20
21QT_BEGIN_NAMESPACE
22
23class QQmlComponent;
25
27{
28 Q_OBJECT
29 Q_PROPERTY(int month READ month WRITE setMonth NOTIFY monthChanged FINAL)
35
36public:
37 explicit QQuickWeekNumberColumn(QQuickItem *parent = nullptr);
38
39 int month() const;
40 void setMonth(int month);
41
42 int year() const;
43 void setYear(int year);
44
45 QVariant source() const;
46 void setSource(const QVariant &source);
47
48 QQmlComponent *delegate() const;
49 void setDelegate(QQmlComponent *delegate);
50
56
57protected:
59 void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
60 void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
61 void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override;
62
63private:
66};
67
68QT_END_NAMESPACE
69
70#endif // QQUICKWEEKNUMBERCOLUMN_P_H
int year() const
\qmlproperty int QtQuick.Controls::WeekNumberColumn::year
void setSource(const QVariant &source)
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
int month() const
\qmlproperty int QtQuick.Controls::WeekNumberColumn::month
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override
void setDelegate(QQmlComponent *delegate)
void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override
QQmlComponent * delegate() const
\qmlproperty Component QtQuick.Controls::WeekNumberColumn::delegate