6#include <QtGui/qstylehints.h>
7#include <QtGui/qguiapplication.h>
8#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
9#include <QtQml/qqmlinfo.h>
116 item->setSize(itemSize);
220 return d->model->month() - 1;
226 if (month < 0 || month > 11) {
230 d->model->setMonth(
month + 1);
244 return d->model->year();
250 if (year < -271820 || year > 275759) {
251 qmlWarning(
this) <<
"year " <<
year <<
" is out of range [-271820...275759]";
254 d->model->setYear(
year);
291 if (
d->title.isNull())
292 return d->model->title();
361 d->model->setLocale(newLocale);
382 if (
event->timerId() ==
d->pressTimer) {
383 if (
d->pressedDate.isValid())
391#include "moc_qquickmonthgrid_p.cpp"
\inmodule QtCore \reentrant
constexpr bool isValid() const
Returns true if this date is valid; otherwise returns false.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
void killTimer(int id)
Kills the timer with timer identifier, id.
\inmodule QtCore\reentrant
The QQmlComponent class encapsulates a QML component definition.
virtual bool handlePress(const QPointF &point, ulong timestamp)
QQuickDeferredPointer< QQuickItem > contentItem
virtual void handleUngrab()
virtual bool handleRelease(const QPointF &point, ulong timestamp)
virtual bool handleMove(const QPointF &point, ulong timestamp)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
virtual void localeChange(const QLocale &newLocale, const QLocale &oldLocale)
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
virtual void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
static QQuickItemPrivate * get(QQuickItem *item)
bool isTransparentForPositioner() const
QList< QQuickItem * > childItems
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QList< QQuickItem * > childItems() const
Returns the children of this item.
void setFlag(Flag flag, bool enabled=true)
Enables the specified flag for this item if enabled is true; if enabled is false, the flag is disable...
Q_INVOKABLE QQuickItem * childAt(qreal x, qreal y) const
\qmlmethod QtQuick::Item::childAt(real x, real y)
void setAcceptedMouseButtons(Qt::MouseButtons buttons)
Sets the mouse buttons accepted by this item to buttons.
qreal width
This property holds the width of this item.
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
qreal height
This property holds the height of this item.
virtual void updatePolish()
This function should perform any layout as required for this item.
void setActiveFocusOnTab(bool)
A grid of days for a calendar month.
bool handleRelease(const QPointF &point, ulong timestamp) override
bool handlePress(const QPointF &point, ulong timestamp) override
QQuickItem * cellAt(const QPointF &pos) const
void handleUngrab() override
QDate dateOf(QQuickItem *cell) const
bool handleMove(const QPointF &point, ulong timestamp) override
void clearPress(bool clicked)
void updatePress(const QPointF &pos)
void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override
void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override
void pressAndHold(const QDate &date)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void setTitle(const QString &title)
QQuickMonthGrid(QQuickItem *parent=nullptr)
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 updatePolish() override
This function should perform any layout as required for this item.
Q_INVOKABLE QDate dateAt(int index) const
\inmodule QtCore\reentrant
constexpr void setHeight(qreal h) noexcept
Sets the height to the given finite height.
constexpr void setWidth(qreal w) noexcept
Sets the width to the given finite width.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
GLsizei GLsizei GLchar * source
GLdouble GLdouble GLdouble GLdouble q
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
item setCursor(Qt::IBeamCursor)
[1]
qsizetype indexOf(const AT &t, qsizetype from=0) const noexcept
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent