4#ifndef QQUICKCONTROL_P_P_H
5#define QQUICKCONTROL_P_P_H
18#include <QtQuickTemplates2/private/qquickcontrol_p.h>
19#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
20#include <QtQuickTemplates2/private/qquicktheme_p.h>
22#include <QtQuick/private/qquickitem_p.h>
23#include <QtQuick/private/qquickitemchangelistener_p.h>
24#include <QtQml/private/qlazilyallocated_p.h>
26#if QT_CONFIG(accessibility)
27#include <QtGui/qaccessible.h>
30#include <QtCore/qloggingcategory.h>
36class QQuickAccessibleAttached;
39#if QT_CONFIG(accessibility)
40 ,
public QAccessible::ActivationObserver
51 return control->d_func();
56#if QT_CONFIG(quicktemplates2_multitouch)
59 virtual bool handlePress(
const QPointF &point,
ulong timestamp);
60 virtual bool handleMove(
const QPointF &point,
ulong timestamp);
61 virtual bool handleRelease(
const QPointF &point,
ulong timestamp);
62 virtual void handleUngrab();
67 inline qreal getTopPadding()
const {
return extra.isAllocated() && extra->hasTopPadding ? extra->topPadding : getVerticalPadding(); }
68 inline qreal getLeftPadding()
const {
return extra.isAllocated() && extra->hasLeftPadding ? extra->leftPadding : getHorizontalPadding(); }
69 inline qreal getRightPadding()
const {
return extra.isAllocated() && extra->hasRightPadding ? extra->rightPadding : getHorizontalPadding(); }
70 inline qreal getBottomPadding()
const {
return extra.isAllocated() && extra->hasBottomPadding ? extra->bottomPadding : getVerticalPadding(); }
92 virtual void resizeBackground();
93 virtual void resizeContent();
98#if QT_CONFIG(accessibility)
99 void accessibilityActiveChanged(
bool active)
override;
100 QAccessible::Role accessibleRole()
const override;
101 static QQuickAccessibleAttached *accessibleAttached(
const QObject *
object);
104 virtual void resolveFont();
115 void updateLocale(
const QLocale &l,
bool e);
119#if QT_CONFIG(quicktemplates2_hover)
120 void updateHoverEnabled(
bool enabled,
bool xplicit);
127 virtual void cancelContentItem();
128 virtual void executeContentItem(
bool complete =
false);
130 virtual void cancelBackground();
131 virtual void executeBackground(
bool complete =
false);
140 UnhideVisibility visibility = UnhideVisibility::Show);
142 void updateBaselineOffset();
146 void addImplicitSizeListener(
QQuickItem *
item, ChangeTypes changes = ImplicitSizeChanges);
147 void removeImplicitSizeListener(
QQuickItem *
item, ChangeTypes changes = ImplicitSizeChanges);
158 virtual qreal getContentWidth()
const;
159 virtual qreal getContentHeight()
const;
161 void updateImplicitContentWidth();
162 void updateImplicitContentHeight();
163 void updateImplicitContentSize();
168 bool hasTopPadding =
false;
169 bool hasLeftPadding =
false;
170 bool hasRightPadding =
false;
171 bool hasBottomPadding =
false;
172 bool hasBaselineOffset =
false;
173 bool hasTopInset =
false;
174 bool hasLeftInset =
false;
175 bool hasRightInset =
false;
176 bool hasBottomInset =
false;
177 bool hasBackgroundWidth =
false;
178 bool hasBackgroundHeight =
false;
191 bool hasHorizontalPadding =
false;
192 bool hasVerticalPadding =
false;
193 bool hasLocale =
false;
194 bool wheelEnabled =
false;
195#if QT_CONFIG(quicktemplates2_hover)
196 bool hovered =
false;
197 bool explicitHoverEnabled =
false;
199 bool resizingBackground =
false;
The QEventPoint class provides information about a point in a QPointerEvent.
The QPalette class contains color groups for each widget state.
\inmodule QtCore\reentrant
QQuickDeferredPointer< QQuickItem > background
void setFont_helper(const QFont &font)
QQuickDeferredPointer< QQuickItem > contentItem
qreal getLeftPadding() const
qreal getRightInset() const
qreal getLeftInset() const
static const ChangeTypes ImplicitSizeChanges
Abstract base type providing functionality common to all controls.
qreal getTopPadding() const
qreal getBottomInset() const
QLazilyAllocated< ExtraData > extra
qreal getHorizontalPadding() const
QMarginsF getPadding() const
QMarginsF getInset() const
qreal getBottomPadding() const
qreal getVerticalPadding() const
qreal getTopInset() const
static QQuickControlPrivate * get(QQuickControl *control)
qreal getRightPadding() const
virtual void itemGeometryChanged(QQuickItem *, QQuickGeometryChange, const QRectF &)
virtual void itemImplicitWidthChanged(QQuickItem *)
virtual void itemDestroyed(QQuickItem *)
virtual void itemImplicitHeightChanged(QQuickItem *)
virtual void itemFocusChanged(QQuickItem *, Qt::FocusReason)
void init(QQuickItem *parent)
virtual void mirrorChange()
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QPalette defaultPalette() const override
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLenum GLenum GLsizei const GLuint GLboolean enabled