4#ifndef QQUICKTEXTINPUT_P_H
5#define QQUICKTEXTINPUT_P_H
20#include <QtGui/qtextoption.h>
21#if QT_CONFIG(validator)
22#include <QtGui/qvalidator.h>
36 Q_PROPERTY(
QColor selectionColor READ selectionColor WRITE setSelectionColor NOTIFY selectionColorChanged FINAL)
37 Q_PROPERTY(
QColor selectedTextColor READ selectedTextColor WRITE setSelectedTextColor NOTIFY selectedTextColorChanged FINAL)
39 Q_PROPERTY(
HAlignment horizontalAlignment READ hAlign WRITE setHAlign RESET resetHAlign NOTIFY horizontalAlignmentChanged FINAL)
40 Q_PROPERTY(
HAlignment effectiveHorizontalAlignment READ effectiveHAlign NOTIFY effectiveHorizontalAlignmentChanged FINAL)
41 Q_PROPERTY(
VAlignment verticalAlignment READ vAlign WRITE setVAlign NOTIFY verticalAlignmentChanged FINAL)
42 Q_PROPERTY(
WrapMode wrapMode READ wrapMode WRITE setWrapMode NOTIFY wrapModeChanged FINAL)
44 Q_PROPERTY(
bool readOnly READ isReadOnly WRITE setReadOnly NOTIFY readOnlyChanged FINAL)
45 Q_PROPERTY(
bool cursorVisible READ isCursorVisible WRITE setCursorVisible NOTIFY cursorVisibleChanged FINAL)
46 Q_PROPERTY(
int cursorPosition READ cursorPosition WRITE setCursorPosition NOTIFY cursorPositionChanged FINAL)
47 Q_PROPERTY(
QRectF cursorRectangle READ cursorRectangle NOTIFY cursorRectangleChanged FINAL)
48 Q_PROPERTY(
QQmlComponent *cursorDelegate READ cursorDelegate WRITE setCursorDelegate NOTIFY cursorDelegateChanged FINAL)
49 Q_PROPERTY(
bool overwriteMode READ overwriteMode WRITE setOverwriteMode NOTIFY overwriteModeChanged FINAL)
50 Q_PROPERTY(
int selectionStart READ selectionStart NOTIFY selectionStartChanged FINAL)
51 Q_PROPERTY(
int selectionEnd READ selectionEnd NOTIFY selectionEndChanged FINAL)
52 Q_PROPERTY(
QString selectedText READ selectedText NOTIFY selectedTextChanged FINAL)
54 Q_PROPERTY(
int maximumLength READ
maxLength WRITE setMaxLength NOTIFY maximumLengthChanged FINAL)
55#if QT_CONFIG(validator)
56 Q_PROPERTY(
QValidator* validator READ validator WRITE setValidator NOTIFY validatorChanged FINAL)
58 Q_PROPERTY(
QString inputMask READ inputMask WRITE setInputMask NOTIFY inputMaskChanged FINAL)
59 Q_PROPERTY(Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints NOTIFY inputMethodHintsChanged FINAL)
61 Q_PROPERTY(
bool acceptableInput READ hasAcceptableInput NOTIFY acceptableInputChanged FINAL)
62 Q_PROPERTY(
EchoMode echoMode READ echoMode WRITE setEchoMode NOTIFY echoModeChanged FINAL)
63 Q_PROPERTY(
bool activeFocusOnPress READ focusOnPress WRITE setFocusOnPress NOTIFY activeFocusOnPressChanged FINAL)
64 Q_PROPERTY(
QString passwordCharacter READ passwordCharacter WRITE setPasswordCharacter NOTIFY passwordCharacterChanged FINAL)
65 Q_PROPERTY(
int passwordMaskDelay READ passwordMaskDelay WRITE setPasswordMaskDelay RESET resetPasswordMaskDelay NOTIFY passwordMaskDelayChanged REVISION(2, 4) FINAL)
67 Q_PROPERTY(
QString preeditText READ preeditText NOTIFY preeditTextChanged REVISION(2, 7) FINAL)
68 Q_PROPERTY(
bool autoScroll READ autoScroll WRITE setAutoScroll NOTIFY autoScrollChanged FINAL)
69 Q_PROPERTY(
bool selectByMouse READ selectByMouse WRITE setSelectByMouse NOTIFY selectByMouseChanged FINAL)
70 Q_PROPERTY(
SelectionMode mouseSelectionMode READ mouseSelectionMode WRITE setMouseSelectionMode NOTIFY mouseSelectionModeChanged FINAL)
71 Q_PROPERTY(
bool persistentSelection READ persistentSelection WRITE setPersistentSelection NOTIFY persistentSelectionChanged FINAL)
72 Q_PROPERTY(
bool canPaste READ canPaste NOTIFY canPasteChanged FINAL)
73 Q_PROPERTY(
bool canUndo READ canUndo NOTIFY canUndoChanged FINAL)
74 Q_PROPERTY(
bool canRedo READ canRedo NOTIFY canRedoChanged FINAL)
75 Q_PROPERTY(
bool inputMethodComposing READ isInputMethodComposing NOTIFY inputMethodComposingChanged FINAL)
76 Q_PROPERTY(
qreal contentWidth READ contentWidth NOTIFY contentSizeChanged FINAL)
77 Q_PROPERTY(
qreal contentHeight READ contentHeight NOTIFY contentSizeChanged FINAL)
78 Q_PROPERTY(
RenderType renderType READ renderType WRITE setRenderType NOTIFY renderTypeChanged FINAL)
80 Q_PROPERTY(
qreal padding READ padding WRITE setPadding RESET resetPadding NOTIFY paddingChanged REVISION(2, 6) FINAL)
81 Q_PROPERTY(
qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding NOTIFY topPaddingChanged REVISION(2, 6) FINAL)
82 Q_PROPERTY(
qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding NOTIFY leftPaddingChanged REVISION(2, 6) FINAL)
83 Q_PROPERTY(
qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding NOTIFY rightPaddingChanged REVISION(2, 6) FINAL)
84 Q_PROPERTY(
qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding NOTIFY bottomPaddingChanged REVISION(2, 6) FINAL)
87#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
151 RenderType renderType()
const;
152 void setRenderType(RenderType renderType);
165 QColor selectionColor()
const;
166 void setSelectionColor(
const QColor &
c);
168 QColor selectedTextColor()
const;
169 void setSelectedTextColor(
const QColor &
c);
171 HAlignment hAlign()
const;
172 void setHAlign(HAlignment align);
174 HAlignment effectiveHAlign()
const;
176 VAlignment vAlign()
const;
177 void setVAlign(VAlignment align);
179 WrapMode wrapMode()
const;
180 void setWrapMode(WrapMode
w);
182 bool isReadOnly()
const;
183 void setReadOnly(
bool);
185 bool isCursorVisible()
const;
186 void setCursorVisible(
bool on);
188 int cursorPosition()
const;
189 void setCursorPosition(
int cp);
191 QRectF cursorRectangle()
const;
193 int selectionStart()
const;
194 int selectionEnd()
const;
199 void setMaxLength(
int ml);
201#if QT_CONFIG(validator)
207 void setInputMask(
const QString &im);
209 EchoMode echoMode()
const;
210 void setEchoMode(EchoMode echo);
212 QString passwordCharacter()
const;
213 void setPasswordCharacter(
const QString &
str);
215 int passwordMaskDelay()
const;
216 void setPasswordMaskDelay(
int delay);
217 void resetPasswordMaskDelay();
225 bool overwriteMode() const;
226 void setOverwriteMode(
bool overwrite);
228 bool focusOnPress() const;
229 void setFocusOnPress(
bool);
231 bool autoScroll() const;
232 void setAutoScroll(
bool);
234 bool selectByMouse() const;
235 void setSelectByMouse(
bool);
240 bool persistentSelection() const;
241 void setPersistentSelection(
bool persist);
243 bool hasAcceptableInput() const;
253 bool canPaste()
const;
255 bool canUndo()
const;
256 bool canRedo()
const;
258 bool isInputMethodComposing()
const;
260 Qt::InputMethodHints inputMethodHints()
const;
261 void setInputMethodHints(Qt::InputMethodHints hints);
265 qreal contentWidth()
const;
266 qreal contentHeight()
const;
268 qreal padding()
const;
269 void setPadding(
qreal padding);
272 qreal topPadding()
const;
273 void setTopPadding(
qreal padding);
274 void resetTopPadding();
276 qreal leftPadding()
const;
277 void setLeftPadding(
qreal padding);
278 void resetLeftPadding();
280 qreal rightPadding()
const;
281 void setRightPadding(
qreal padding);
282 void resetRightPadding();
284 qreal bottomPadding()
const;
285 void setBottomPadding(
qreal padding);
286 void resetBottomPadding();
302 void selectionColorChanged();
303 void selectedTextColorChanged();
307 void wrapModeChanged();
308 void readOnlyChanged(
bool isReadOnly);
309 void cursorVisibleChanged(
bool isCursorVisible);
310 void cursorDelegateChanged();
311 void overwriteModeChanged(
bool overwriteMode);
312 void maximumLengthChanged(
int maximumLength);
313#if QT_CONFIG(validator)
314 void validatorChanged();
320 void displayTextChanged();
322 void activeFocusOnPressChanged(
bool activeFocusOnPress);
323 void autoScrollChanged(
bool autoScroll);
324 void selectByMouseChanged(
bool selectByMouse);
326 void persistentSelectionChanged();
327 void canPasteChanged();
328 void canUndoChanged();
329 void canRedoChanged();
330 void inputMethodComposingChanged();
331 void effectiveHorizontalAlignmentChanged();
332 void contentSizeChanged();
333 void inputMethodHintsChanged();
334 void renderTypeChanged();
342 void invalidateFontCaches();
343 void ensureActiveFocus(
Qt::FocusReason reason);
347#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
348 void setOldSelectionDefault();
374 bool isRightToLeft(
int start,
int end);
375#if QT_CONFIG(clipboard)
388 void selectionChanged();
390 void updateCursorRectangle(
bool scroll = true);
391 void q_canPasteChanged();
392 void q_updateAlignment();
393 void triggerPreprocess();
395#if QT_CONFIG(validator)
396 void q_validatorChanged();
405#if QT_VERSION < QT_VERSION_CHECK(7, 0, 0)
The QColor class provides colors based on RGB, HSV or CMYK values.
The QFocusEvent class contains event parameters for widget focus events.
The QKeyEvent class describes a key event.
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
The QQmlComponent class encapsulates a QML component definition.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
virtual void focusOutEvent(QFocusEvent *)
This event handler can be reimplemented in a subclass to receive focus-out events for an item.
virtual void mouseReleaseEvent(QMouseEvent *event)
This event handler can be reimplemented in a subclass to receive mouse release events for an item.
virtual QSGNode * updatePaintNode(QSGNode *, UpdatePaintNodeData *)
Called on the render thread when it is time to sync the state of the item with the scene graph.
virtual void mouseDoubleClickEvent(QMouseEvent *event)
This event handler can be reimplemented in a subclass to receive mouse double-click events for an ite...
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
virtual void mouseUngrabEvent()
This event handler can be reimplemented in a subclass to be notified when a mouse ungrab event has oc...
virtual void keyPressEvent(QKeyEvent *event)
This event handler can be reimplemented in a subclass to receive key press events for an item.
void componentComplete() override
\reimp Derived classes should call the base class method before adding their own actions to perform a...
virtual QRectF boundingRect() const
Returns the extents of the item in its own coordinate system: a rectangle from {0,...
virtual void mousePressEvent(QMouseEvent *event)
This event handler can be reimplemented in a subclass to receive mouse press events for an item.
Q_REVISION(2, 1) void activeFocusOnTabChanged(bool)
virtual void updatePolish()
This function should perform any layout as required for this item.
virtual QRectF clipRect() const
Returns the rectangular area within this item that is currently visible in \l viewportItem(),...
virtual void focusInEvent(QFocusEvent *)
This event handler can be reimplemented in a subclass to receive focus-in events for an item.
virtual void mouseMoveEvent(QMouseEvent *event)
This event handler can be reimplemented in a subclass to receive mouse move events for an item.
void cursorPositionChanged()
Q_REVISION(2, 4) void passwordMaskDelayChanged(int delay)
void passwordCharacterChanged()
Q_REVISION(2, 7) QString preeditText() const
void selectedTextChanged()
void echoModeChanged(QQuickTextInput::EchoMode echoMode)
void cursorRectangleChanged()
Q_REVISION(2, 2) void editingFinished()
Q_REVISION(2, 4) void ensureVisible(int position)
void acceptableInputChanged()
void inputMaskChanged(const QString &inputMask)
@ CursorBetweenCharacters
void selectionEndChanged()
void selectionStartChanged()
virtual void invalidate()=0
\inmodule QtCore\reentrant
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
\macro QT_RESTRICTED_CAST_FROM_ASCII
@ WrapAtWordBoundaryOrAnywhere
The QValidator class provides validation of input text.
void textChanged(const QString &newText)
cache insert(employee->id(), employee)
Combined button and popup list for selecting options.
static jboolean cut(JNIEnv *, jobject)
static jboolean copy(JNIEnv *, jobject)
static jboolean paste(JNIEnv *, jobject)
static jboolean selectAll(JNIEnv *, jobject)
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
GLsizei const GLfloat * v
[13]
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLenum GLsizei length
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QML_DECLARE_TYPE(TYPE)
#define QML_NAMED_ELEMENT(NAME)
#define QML_REMOVED_IN_VERSION(MAJOR, MINOR)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
static qreal positionAt(const QQuickRangeSlider *slider, QQuickItem *handle, const QPointF &point)
static void getText(QString &text, QTextDocumentPrivate *priv, const QString &docText, int pos, int end)
settings remove("monkey")
myFilter setColor(QColor(128, 0, 0))
selection select(topLeft, bottomRight)
insertRed setText("insert red text")
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent