chore: use static QApplication members where possible

This commit is contained in:
sithlord48 2024-12-23 23:11:47 -05:00 committed by Nick Bolton
parent 638970d65e
commit 97890f86d3
2 changed files with 3 additions and 3 deletions

View file

@ -83,7 +83,7 @@ SettingsDialog::SettingsDialog(
DESKFLOW_GUI_HOOK_SETTINGS
#endif
adjustSize();
qApp->processEvents();
QApplication::processEvents();
setFixedHeight(height());
setWindowFlags((windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowMinMaxButtonsHint);
}

View file

@ -85,7 +85,7 @@ int main(int argc, char *argv[])
#if !defined(Q_OS_MAC)
// causes dark mode to be used on some DE's
if (qEnvironmentVariable("XDG_CURRENT_DESKTOP") != QLatin1String("KDE")) {
qApp->setStyle("fusion");
QApplication::setStyle("fusion");
}
#endif
@ -143,7 +143,7 @@ int main(int argc, char *argv[])
DESKFLOW_GUI_HOOK_START
#endif
return qApp->exec();
return QApplication::exec();
}
#if defined(Q_OS_MAC)