45 #ifndef QT_NO_LINEEDIT 49 #ifndef QT_NO_ACCESSIBILITY 82 #ifndef QT_NO_COMPLETER 92 q->setText(text.
left(c) + newText.
mid(c));
98 #endif // QT_NO_COMPLETER 110 emit q->textEdited(text);
111 #ifndef QT_NO_COMPLETER 122 emit q->cursorPositionChanged(from, to);
125 #ifdef QT_KEYPAD_NAVIGATION 126 void QLineEditPrivate::_q_editFocusChange(
bool e)
138 q->initStyleOption(&opt);
145 emit q->selectionChanged();
146 #ifndef QT_NO_ACCESSIBILITY 171 q,
SIGNAL(returnPressed()));
174 #ifdef QT_KEYPAD_NAVIGATION 176 q,
SLOT(_q_editFocusChange(
bool)));
195 q->initStyleOption(&opt);
207 q->setMouseTracking(
true);
208 q->setAcceptDrops(
true);
217 q->initStyleOption(&opt);
252 #if !defined QT_NO_IM 278 #ifndef QT_NO_DRAGANDDROP 292 #endif // QT_NO_DRAGANDDROP
static void updateAccessibility(QObject *, int who, Event reason)
Notifies accessibility clients about a change in object's accessibility information.
void _q_completionHighlighted(QString)
void setBottom(int pos)
Sets the bottom edge of the rectangle to the given y coordinate.
#define QT_END_NAMESPACE
This macro expands to.
The QDrag class provides support for MIME-based drag and drop data transfer.
void setMimeData(QMimeData *data)
Sets the data to be sent to the given MIME data.
void _q_selectionChanged()
int length() const
Returns the number of characters in this string.
QCompleter * completer() const
QRect translated(int dx, int dy) const
Returns a copy of the rectangle that is translated dx along the x axis and dy along the y axis...
void setY(int y)
Sets the top edge of the rectangle to the given y coordinate.
int bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
The QString class provides a Unicode character string.
void updatePasswordEchoEditing(bool)
CompletionMode completionMode
how the completions are provided to the user
QString preeditAreaText() const
QRect adjustedControlRect(const QRect &) const
const QPoint & pos() const
Returns the position of the mouse cursor, relative to the widget that received the event...
void setParent(QObject *)
Makes the object a child of parent.
void setCursorVisible(bool visible)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString left(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n leftmost characters of the string.
int xToPos(int x, QTextLine::CursorPosition=QTextLine::CursorBetweenCharacters) const
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QRect adjustedContentsRect() const
void _q_handleWindowActivate()
void setRight(int pos)
Sets the right edge of the rectangle to the given x coordinate.
void editingFinished()
This signal is emitted editing is finished.
static const int horizontalMargin
int xToPos(int x, QTextLine::CursorPosition=QTextLine::CursorBetweenCharacters) const
Returns the cursor position of the given x pixel value in relation to the displayed text...
QRect cursorRect() const
Returns the bounds of the current cursor, as defined as a between characters cursor.
virtual void mouseHandler(int x, QMouseEvent *event)
This function can be reimplemented in a subclass to handle mouse press, release, double-click, and move events within the preedit text.
The QMimeData class provides a container for data that records information about its MIME type...
void setX(int x)
Sets the left edge of the rectangle to the given x coordinate.
static const int verticalMargin
void _q_textEdited(const QString &)
void stop()
Stops the timer.
The QMouseEvent class contains parameters that describe a mouse event.
QString inputMask() const
bool isEmpty() const
Returns true if the rectangle is empty, otherwise returns false.
bool shouldEnableInputMethod() const
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
void moveCursor(int pos, bool mark=false)
Moves the cursor to the given position pos.
QString selectedText() const
int right() const
Returns the x-coordinate of the rectangle's right edge.
bool sendMouseEventToInputContext(QMouseEvent *e)
This function is not intended as polymorphic usage.
int y() const
Returns the y-coordinate of the rectangle's top edge.
int x() const
Returns the x-coordinate of the rectangle's left edge.
void setFont(const QFont &font)
The QPoint class defines a point in the plane using integer precision.
void setPasswordCharacter(const QChar &character)
void _q_updateNeeded(const QRect &)
Qt::DropAction start(Qt::DropActions supportedActions=Qt::CopyAction)
Starts the drag and drop operation and returns a value indicating the requested drop action when it i...
The QRect class defines a rectangle in the plane using integer precision.
The QStyleOptionFrameV2 class is used to describe the parameters necessary for drawing a frame in Qt ...
The QLineEdit widget is a one-line text editor.
void setText(const QString &text)
Sets text as the plain text (MIME type text/plain) used to represent the data.
void updatePasswordEchoEditing(bool editing)
Sets the password echo editing to editing.
bool hasSelectedText() const
int x() const
Returns the x coordinate of this point.
The QInputContext class abstracts the input method dependent data and composing state.
void init(const QString &)
Type type() const
Returns the event type.
void _q_cursorPositionChanged(int, int)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QWidget * target() const
Returns the target of the drag and drop operation.