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
qquicktextarea_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QQUICKTEXTAREA_P_P_H
5#define QQUICKTEXTAREA_P_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 <QtQml/private/qlazilyallocated_p.h>
19#include <QtQuick/private/qquicktextedit_p_p.h>
20#include <QtQuick/private/qquickitemchangelistener_p.h>
21#include <QtQuickTemplates2/private/qquickpresshandler_p_p.h>
22#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
23#include <QtQuickTemplates2/private/qquicktheme_p.h>
24
25#include <QtQuickTemplates2/private/qquicktextarea_p.h>
26
28
29class QQuickFlickable;
30
32{
33public:
34 Q_DECLARE_PUBLIC(QQuickTextArea)
35
38
43
45 inline qreal getTopInset() const { return extra.isAllocated() ? extra->topInset : 0; }
46 inline qreal getLeftInset() const { return extra.isAllocated() ? extra->leftInset : 0; }
47 inline qreal getRightInset() const { return extra.isAllocated() ? extra->rightInset : 0; }
48 inline qreal getBottomInset() const { return extra.isAllocated() ? extra->bottomInset : 0; }
49
50 void setTopInset(qreal value, bool reset = false);
51 void setLeftInset(qreal value, bool reset = false);
52 void setRightInset(qreal value, bool reset = false);
53 void setBottomInset(qreal value, bool reset = false);
54
55 void resizeBackground();
56
57 void resolveFont();
58 void inheritFont(const QFont &font);
59 void updateFont(const QFont &font);
60 inline void setFont_helper(const QFont &font) {
62 return;
64 }
65
66#if QT_CONFIG(quicktemplates2_hover)
67 void updateHoverEnabled(bool h, bool e);
68#endif
69
71 void detachFlickable();
75
76 void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
77
78 qreal getImplicitWidth() const override;
79 qreal getImplicitHeight() const override;
80
81 void implicitWidthChanged() override;
82 void implicitHeightChanged() override;
83
84 void readOnlyChanged(bool isReadOnly);
85
86#if QT_CONFIG(accessibility)
87 void accessibilityActiveChanged(bool active) override;
88#endif
89
90 void cancelBackground();
91 void executeBackground(bool complete = false);
92
95 void itemDestroyed(QQuickItem *item) override;
96
97 QPalette defaultPalette() const override;
98
99#if QT_CONFIG(quicktemplates2_hover)
100 bool hovered = false;
101 bool explicitHoverEnabled = false;
102#endif
103
118 QLazilyAllocated<ExtraData> extra;
119
120 bool resizingBackground = false;
122 QQuickDeferredPointer<QQuickItem> background;
127};
128
130
131#endif // QQUICKTEXTAREA_P_P_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\reentrant
Definition qfont.h:22
uint resolveMask() const
Definition qfont.h:312
\inmodule QtCore
Definition qmargins.h:270
static QObjectPrivate * get(QObject *o)
Definition qobject_p.h:150
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
void readOnlyChanged(bool isReadOnly)
void implicitWidthChanged() override
qreal getImplicitWidth() const override
void setFont_helper(const QFont &font)
QQuickFlickable * flickable
QQuickDeferredPointer< QQuickItem > background
void setTopInset(qreal value, bool reset=false)
void setLeftInset(qreal value, bool reset=false)
void setRightInset(qreal value, bool reset=false)
void executeBackground(bool complete=false)
QLazilyAllocated< ExtraData > extra
void updateFont(const QFont &font)
void setBottomInset(qreal value, bool reset=false)
void itemDestroyed(QQuickItem *item) override
void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override
void itemImplicitWidthChanged(QQuickItem *item) override
void attachFlickable(QQuickFlickable *flickable)
void inheritFont(const QFont &font)
qreal getImplicitHeight() const override
QQuickPressHandler pressHandler
void itemImplicitHeightChanged(QQuickItem *item) override
QMarginsF getInset() const
static QQuickTextAreaPrivate * get(QQuickTextArea *item)
QPalette defaultPalette() const override
void implicitHeightChanged() override
QQuickTextAreaPrivate()
Multi-line text input area.
\inmodule QtCore\reentrant
Definition qrect.h:484
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLfloat GLfloat GLfloat GLfloat h
GLboolean reset
double qreal
Definition qtypes.h:187
QGraphicsItem * item