aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perforce
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2017-04-24 17:01:10 +0200
committerAlessandro Portale <alessandro.portale@qt.io>2017-04-24 18:36:28 +0000
commit3624a663d8e94c57cdabca774962a2995c8f79f3 (patch)
tree0fef1f9ed7d5ec3da5faafb81fd92ae6c300fe66 /src/plugins/perforce
parent07884645af8fb449d6b1343d33b734925588768a (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 <hjk@qt.io>
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r--src/plugins/perforce/perforceplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp
index f4b4004ee5..7bae8aa2c1 100644
--- a/src/plugins/perforce/perforceplugin.cpp
+++ b/src/plugins/perforce/perforceplugin.cpp
@@ -631,9 +631,9 @@ IEditor *PerforcePlugin::openPerforceSubmitEditor(const QString &fileName, const
void PerforcePlugin::printPendingChanges()
{
- qApp->setOverrideCursor(Qt::WaitCursor);
+ QGuiApplication::setOverrideCursor(Qt::WaitCursor);
PendingChangesDialog dia(pendingChangesData(), ICore::mainWindow());
- qApp->restoreOverrideCursor();
+ QGuiApplication::restoreOverrideCursor();
if (dia.exec() == QDialog::Accepted) {
const int i = dia.changeNumber();
QStringList args(QLatin1String("submit"));