4#ifndef QQUICKTEXTUTIL_P_H
5#define QQUICKTEXTUTIL_P_H
18#include <QtQml/qqml.h>
19#include <QtQml/qqmlincubator.h>
20#include <QtQuick/qquickitem.h>
21#include <QtQuick/qquickwindow.h>
22#include <QtCore/private/qglobal_p.h>
31 template <
typename Private>
static void createCursor(Private *
d);
33 template <
typename T>
static typename T::RenderType
textRenderType();
42 const QRectF &cursorRectangle,
47template <
typename Private>
50 if (
d->cursorComponent == delegate)
53 typename Private::Public *
parent =
d->q_func();
55 if (
d->cursorComponent) {
62 d->cursorPending =
true;
64 d->cursorComponent = delegate;
66 if (
parent->isCursorVisible() &&
parent->isComponentComplete())
72template <
typename Private>
75 if (!
d->cursorPending)
78 d->cursorPending =
false;
80 typename Private::Public *
parent =
d->q_func();
81 if (
d->cursorComponent) {
86 Private::Public::staticMetaObject.className());
89 d->setNativeCursorEnabled(!
d->cursorItem);
90 d->updateType = Private::UpdatePaintNode;
97 switch (QQuickWindow::textRenderType()) {
98 case QQuickWindow::QtTextRendering:
99 return T::QtRendering;
100 case QQuickWindow::NativeTextRendering:
101 return T::NativeRendering;
104 Q_UNREACHABLE_RETURN(T::QtRendering);
QObject * parent() const
Returns a pointer to the parent object.
The QQmlComponent class encapsulates a QML component definition.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
static qreal alignedX(qreal textWidth, qreal itemWidth, int alignment)
static void createCursor(Private *d)
static qreal alignedY(qreal textHeight, qreal itemHeight, int alignment)
static T::RenderType textRenderType()
static void setCursorDelegate(Private *d, QQmlComponent *delegate)
\inmodule QtCore\reentrant
void statusChanged(QDeclarativeComponent::Status status)
[1]
Combined button and popup list for selecting options.
static qreal component(const QPointF &point, unsigned int i)
const char className[16]
[1]
myObject disconnect()
[26]