diff options
author | Alessandro Portale <[email protected]> | 2017-04-24 17:01:10 +0200 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2017-04-24 18:36:28 +0000 |
commit | 3624a663d8e94c57cdabca774962a2995c8f79f3 (patch) | |
tree | 0fef1f9ed7d5ec3da5faafb81fd92ae6c300fe66 /src/plugins/debugger/watchhandler.cpp | |
parent | 07884645af8fb449d6b1343d33b734925588768a (diff) |
Reduce usage of qApp in favor of static function calls
Q*Application classes have unusually many static functions. In many
cases in our code, these functions are unnecessarily called as instance
functions, using the qApp helper.
This patch replaces many occurencies of qApp with the according
Q*Application classname.
Change-Id: I6099a419fa7bf969891269c37ed7a9e817ef5124
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index f14d82e8caa..2a46f95eff3 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -1269,7 +1269,7 @@ static QString variableToolTip(const QString &name, const QString &type, quint64 void WatchModel::grabWidget() { - qApp->setOverrideCursor(Qt::CrossCursor); + QGuiApplication::setOverrideCursor(Qt::CrossCursor); m_grabWidgetTimerId = startTimer(30); ICore::mainWindow()->grabMouse(); } @@ -1302,7 +1302,7 @@ void WatchModel::timerEvent(QTimerEvent *event) void WatchModel::ungrabWidget() { ICore::mainWindow()->releaseMouse(); - qApp->restoreOverrideCursor(); + QGuiApplication::restoreOverrideCursor(); killTimer(m_grabWidgetTimerId); m_grabWidgetTimerId = -1; } |