42 #ifndef QDECLARATIVETEXTINPUT_H 43 #define QDECLARATIVETEXTINPUT_H 45 #include "private/qdeclarativetext_p.h" 46 #include "private/qdeclarativeimplicitsizeitem_p.h" 48 #include <QGraphicsSceneMouseEvent> 49 #include <QIntValidator> 51 #ifndef QT_NO_LINEEDIT 84 #ifndef QT_NO_VALIDATOR 142 void setFont(const
QFont &font);
145 void setColor(const
QColor &
c);
147 QColor selectionColor() const;
148 void setSelectionColor(const
QColor &c);
150 QColor selectedTextColor() const;
151 void setSelectedTextColor(const
QColor &c);
158 bool isReadOnly() const;
159 void setReadOnly(
bool);
161 bool isCursorVisible() const;
162 void setCursorVisible(
bool on);
164 int cursorPosition() const;
165 void setCursorPosition(
int cp);
167 QRect cursorRectangle() const;
169 int selectionStart() const;
170 int selectionEnd() const;
172 QString selectedText() const;
174 int maxLength() const;
175 void setMaxLength(
int ml);
177 #ifndef QT_NO_VALIDATOR 181 QString inputMask()
const;
182 void setInputMask(
const QString &im);
187 QString passwordCharacter()
const;
188 void setPasswordCharacter(
const QString &str);
190 QString displayText()
const;
195 bool focusOnPress()
const;
196 void setFocusOnPress(
bool);
198 bool autoScroll()
const;
199 void setAutoScroll(
bool);
201 bool selectByMouse()
const;
202 void setSelectByMouse(
bool);
207 bool hasAcceptableInput()
const;
213 bool canPaste()
const;
215 bool isInputMethodComposing()
const;
217 Qt::InputMethodHints imHints()
const;
218 void setIMHints(Qt::InputMethodHints hints);
222 void cursorPositionChanged();
223 void cursorRectangleChanged();
224 void selectionStartChanged();
225 void selectionEndChanged();
226 void selectedTextChanged();
228 void acceptableInputChanged();
229 void colorChanged(
const QColor &color);
230 void selectionColorChanged(
const QColor &color);
231 void selectedTextColorChanged(
const QColor &color);
232 void fontChanged(
const QFont &font);
233 void horizontalAlignmentChanged(
HAlignment alignment);
234 void readOnlyChanged(
bool isReadOnly);
235 void cursorVisibleChanged(
bool isCursorVisible);
236 void cursorDelegateChanged();
237 void maximumLengthChanged(
int maximumLength);
238 void validatorChanged();
239 void inputMaskChanged(
const QString &inputMask);
240 void echoModeChanged(
EchoMode echoMode);
241 void passwordCharacterChanged();
242 void displayTextChanged();
243 void activeFocusOnPressChanged(
bool activeFocusOnPress);
244 void autoScrollChanged(
bool autoScroll);
245 void selectByMouseChanged(
bool selectByMouse);
246 Q_REVISION(1) void mouseSelectionModeChanged(
SelectionMode mode);
247 Q_REVISION(1)
void canPasteChanged();
248 Q_REVISION(1)
void inputMethodComposingChanged();
251 virtual
void geometryChanged(const
QRectF &newGeometry,
252 const
QRectF &oldGeometry);
258 bool sceneEvent(
QEvent *event);
268 Q_REVISION(1)
void deselect();
269 Q_REVISION(1)
bool isRightToLeft(
int start,
int end);
270 #ifndef QT_NO_CLIPBOARD 277 void updateSize(
bool needsRedraw =
true);
278 void q_textChanged();
279 void selectionChanged();
281 void cursorPosChanged();
282 void updateCursorRectangle();
284 void q_canPasteChanged();
293 #ifndef QT_NO_VALIDATOR 302 #endif // QT_NO_LINEEDIT 304 #endif // QDECLARATIVETEXTINPUT_H The QVariant class acts like a union for the most common Qt data types.
The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
The QRegExpValidator class is used to check a string against a regular expression.
The QKeyEvent class describes a key event.
#define QT_END_NAMESPACE
This macro expands to.
QScopedPointer< QGraphicsItemPrivate > d_ptr
#define QML_DECLARE_TYPE(TYPE)
The QGraphicsSceneMouseEvent class provides mouse events in the graphics view framework.
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
int select(int, fd_set *, fd_set *, fd_set *, struct timeval *)
QRectF boundingRect() const
The QString class provides a Unicode character string.
The QIntValidator class provides a validator that ensures a string contains a valid integer within a ...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QValidator class provides validation of input text.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QDeclarativeComponent class encapsulates a QML component definition.
The QDeclarativeItem class provides the most basic of all visual items in QML.
QVariant data(int key) const
Returns this item's custom data for the key key as a QVariant.
SelectionMode mouseSelectionMode
bool inputMethodComposing
Qt::InputMethodHints inputMethodHints
#define Q_DECLARE_PRIVATE_D(Dptr, Class)
virtual void drawContents(QPainter *, const QRect &)
This function is called when the cache needs to be refreshed.
The QFont class specifies a font used for drawing text.
The QRect class defines a rectangle in the plane using integer precision.
#define Q_AUTOTEST_EXPORT
QString passwordCharacter
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const
static const KeyPair *const end
The QEvent class is the base class of all event classes.
The QFocusEvent class contains event parameters for widget focus events.
The QDoubleValidator class provides range checking of floating-point numbers.