aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktextcontrol.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-04 11:27:27 +0100
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-03-05 10:03:30 +0000
commitadaa3fc546ed831ec69a019c1e0ef48d9e69eb12 (patch)
treedd2f49b2df1a324226f395b42cb4b41f07afd38b /src/quick/items/qquicktextcontrol.cpp
parent4d8b9373c62b9b58c54548f41f1e9d84e9522c6e (diff)
Fix invocations of static methods of QGuiApplication/QCoreApplication.
Change-Id: I7bcc209b0c6e77cf6d974af85a19487345a48975 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/quick/items/qquicktextcontrol.cpp')
-rw-r--r--src/quick/items/qquicktextcontrol.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/quick/items/qquicktextcontrol.cpp b/src/quick/items/qquicktextcontrol.cpp
index 3dc11843e3..95d2e7c995 100644
--- a/src/quick/items/qquicktextcontrol.cpp
+++ b/src/quick/items/qquicktextcontrol.cpp
@@ -448,8 +448,8 @@ void QQuickTextControlPrivate::setBlinkingCursorEnabled(bool enable)
{
Q_Q(QQuickTextControl);
- if (enable && qApp->styleHints()->cursorFlashTime() > 0)
- cursorBlinkTimer.start(qApp->styleHints()->cursorFlashTime() / 2, q);
+ if (enable && QGuiApplication::styleHints()->cursorFlashTime() > 0)
+ cursorBlinkTimer.start(QGuiApplication::styleHints()->cursorFlashTime() / 2, q);
else
cursorBlinkTimer.stop();
@@ -1031,7 +1031,7 @@ void QQuickTextControlPrivate::mousePressEvent(QMouseEvent *e, const QPointF &po
#endif
if (tripleClickTimer.isActive()
- && ((pos - tripleClickPoint).toPoint().manhattanLength() < qApp->styleHints()->startDragDistance())) {
+ && ((pos - tripleClickPoint).toPoint().manhattanLength() < QGuiApplication::styleHints()->startDragDistance())) {
cursor.movePosition(QTextCursor::StartOfBlock);
cursor.movePosition(QTextCursor::EndOfBlock, QTextCursor::KeepAnchor);
@@ -1231,7 +1231,7 @@ void QQuickTextControlPrivate::mouseDoubleClickEvent(QMouseEvent *e, const QPoin
selectedWordOnDoubleClick = cursor;
tripleClickPoint = pos;
- tripleClickTimer.start(qApp->styleHints()->mouseDoubleClickInterval(), q);
+ tripleClickTimer.start(QGuiApplication::styleHints()->mouseDoubleClickInterval(), q);
if (doEmit) {
selectionChanged();
#ifndef QT_NO_CLIPBOARD
@@ -1258,7 +1258,7 @@ bool QQuickTextControlPrivate::sendMouseEventToInputContext(QMouseEvent *e, cons
if (cursorPos >= 0 && cursorPos <= layout->preeditAreaText().length()) {
if (e->type() == QEvent::MouseButtonRelease) {
- qApp->inputMethod()->invokeAction(QInputMethod::Click, cursorPos);
+ QGuiApplication::inputMethod()->invokeAction(QInputMethod::Click, cursorPos);
}
return true;
@@ -1676,7 +1676,7 @@ void QQuickTextControlPrivate::commitPreedit()
if (!hasImState)
return;
- qApp->inputMethod()->commit();
+ QGuiApplication::inputMethod()->commit();
if (!hasImState)
return;
@@ -1692,7 +1692,7 @@ void QQuickTextControlPrivate::cancelPreedit()
if (!hasImState)
return;
- qApp->inputMethod()->reset();
+ QGuiApplication::inputMethod()->reset();
QInputMethodEvent event;
QCoreApplication::sendEvent(q->parent(), &event);