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
qquickdayofweekrow_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 QQUICKDAYOFWEEKROW_P_H
6#define QQUICKDAYOFWEEKROW_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(QVariant source READ source WRITE setSource NOTIFY sourceChanged FINAL)
33
34public:
35 explicit QQuickDayOfWeekRow(QQuickItem *parent = nullptr);
36
37 QVariant source() const;
38 void setSource(const QVariant &source);
39
40 QQmlComponent *delegate() const;
41 void setDelegate(QQmlComponent *delegate);
42
46
47protected:
49 void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
50 void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
51 void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override;
52
53private:
56};
57
58QT_END_NAMESPACE
59
60#endif // QQUICKDAYOFWEEKROW_P_H
A row of names for the days in a week.
QQuickDayOfWeekModel * model
QQmlComponent * delegate() const
\qmlproperty Component QtQuick.Controls::DayOfWeekRow::delegate
void setDelegate(QQmlComponent *delegate)
void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void setSource(const QVariant &source)
QVariant source() const
void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override