4#ifndef QQUICKTEXTEDIT_P_P_H
5#define QQUICKTEXTEDIT_P_P_H
22#include <QtQml/qqml.h>
23#include <QtCore/qlist.h>
24#include <private/qlazilyallocated_p.h>
43 explicit Node(
int startPos = std::numeric_limits<int>::max(),
45 : m_startPos(startPos), m_node(node), m_dirty(
false) { }
50 bool dirty()
const {
return m_dirty; }
57#ifndef QT_NO_DEBUG_STREAM
81 :
color(
QRgb(0xFF000000)), selectionColor(
QRgb(0xFF000080)), selectedTextColor(
QRgb(0xFFFFFFFF))
82 , textMargin(0.0), xoff(0), yoff(0)
84 , quickDocument(
nullptr), lastSelectionStart(0), lastSelectionEnd(0), lineCount(0)
88 , contentDirection(
Qt::LayoutDirectionAuto)
91 , inputMethodHints(
Qt::ImhNone)
93 , updateType(UpdatePaintNode)
95 , focusOnPress(true), persistentSelection(
false), requireImplicitWidth(
false)
96 , selectByMouse(true), canPaste(
false), canPasteValid(
false), hAlignImplicit(true)
97 , textCached(true), inLayout(
false), selectByKeyboard(
false), selectByKeyboardSet(
false)
107 void resetInputMethod();
108 void updateDefaultTextOption();
110 bool determineHorizontalAlignment();
116 bool isLinkHoveredConnected();
119 void updateMouseCursorShape();
128 Qt::InputMethodHints effectiveInputMethodHints()
const;
137 bool isImplicitResizeEnabled()
const;
138 void setImplicitResizeEnabled(
bool enabled);
165 int firstBlockInViewport = -1;
166 int firstBlockPastViewport = -1;
184 Qt::InputMethodHints inputMethodHints;
210#ifndef QT_NO_DEBUG_STREAM
The QColor class provides colors based on RGB, HSV or CMYK values.
The QFocusEvent class contains event parameters for widget focus events.
static QObjectPrivate * get(QObject *o)
The QQmlComponent class encapsulates a QML component definition.
void init(QQuickItem *parent)
virtual bool transformChanged(QQuickItem *transformedItem)
virtual void mirrorChange()
virtual qreal getImplicitWidth() const
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
The QQuickTextDocument class provides access to the QTextDocument of QQuickTextEdit....
QList< Node >::iterator TextNodeIterator
QQuickTextEdit::HAlignment hAlign
QList< Node > textNodeMap
QQuickTextEdit::SelectionMode mouseSelectionMode
QQuickTextEdit::TextFormat format
QLazilyAllocated< ExtraData > extra
Qt::LayoutDirection contentDirection
static const int largeTextSizeThreshold
QQuickTextControl * control
QQuickTextDocumentWithImageResources * document
QQuickTextDocument * quickDocument
QQuickTextEdit::WrapMode wrapMode
QQuickTextEdit::VAlignment vAlign
QQuickTextEdit::RenderType renderType
void setNativeCursorEnabled(bool)
bool requireImplicitWidth
QQmlComponent * cursorComponent
static QQuickTextEditPrivate * get(QQuickTextEdit *item)
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLint GLsizei GLsizei GLenum format
QDebug Q_QUICK_PRIVATE_EXPORT operator<<(QDebug debug, const QQuickTextEditPrivate::Node &)
QT_BEGIN_NAMESPACE typedef unsigned int QRgb
static QSvgNode * createTextNode(QSvgNode *parent, const QXmlStreamAttributes &attributes, QSvgHandler *handler)
#define QT_CONFIG(feature)
if(qFloatDistance(a, b)<(1<< 7))
[0]
Node(int startPos=std::numeric_limits< int >::max(), QQuickTextNode *node=nullptr)
QQuickTextNode * textNode() const
void moveStartPos(int delta)