&& cursorMoveKeyEvent(e))
goto accept;
- if (interactionFlags & Qt::LinksAccessibleByKeyboard) {
- if ((e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter) && cursor.hasSelection()) {
- e->accept();
- activateLinkUnderCursor();
- return;
- }
- }
-
if (!(interactionFlags & Qt::TextEditable)) {
e->ignore();
return;
d->selectByMouse = on;
setKeepMouseGrab(on);
if (on)
- setTextInteractionFlags(d->control->textInteractionFlags() | Qt::TextSelectableByMouse);
+ d->control->setTextInteractionFlags(d->control->textInteractionFlags() | Qt::TextSelectableByMouse);
else
- setTextInteractionFlags(d->control->textInteractionFlags() & ~Qt::TextSelectableByMouse);
+ d->control->setTextInteractionFlags(d->control->textInteractionFlags() & ~Qt::TextSelectableByMouse);
emit selectByMouseChanged(on);
}
}
}
/*!
- Sets how the text edit should interact with user input to the given
- \a flags.
-*/
-void QQuickTextEdit::setTextInteractionFlags(Qt::TextInteractionFlags flags)
-{
- Q_D(QQuickTextEdit);
- d->control->setTextInteractionFlags(flags);
-}
-
-/*!
- Returns the flags specifying how the text edit should interact
- with user input.
-*/
-Qt::TextInteractionFlags QQuickTextEdit::textInteractionFlags() const
-{
- Q_D(const QQuickTextEdit);
- return d->control->textInteractionFlags();
-}
-
-/*!
\qmlproperty rectangle QtQuick2::TextEdit::cursorRectangle
The rectangle where the standard text cursor is rendered
void setReadOnly(bool);
bool isReadOnly() const;
- void setTextInteractionFlags(Qt::TextInteractionFlags flags);
- Qt::TextInteractionFlags textInteractionFlags() const;
-
QRectF cursorRectangle() const;
QVariant inputMethodQuery(Qt::InputMethodQuery property) const;