chore: use static QApplication members where possible
This commit is contained in:
parent
638970d65e
commit
97890f86d3
2 changed files with 3 additions and 3 deletions
|
|
@ -83,7 +83,7 @@ SettingsDialog::SettingsDialog(
|
||||||
DESKFLOW_GUI_HOOK_SETTINGS
|
DESKFLOW_GUI_HOOK_SETTINGS
|
||||||
#endif
|
#endif
|
||||||
adjustSize();
|
adjustSize();
|
||||||
qApp->processEvents();
|
QApplication::processEvents();
|
||||||
setFixedHeight(height());
|
setFixedHeight(height());
|
||||||
setWindowFlags((windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowMinMaxButtonsHint);
|
setWindowFlags((windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowMinMaxButtonsHint);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ int main(int argc, char *argv[])
|
||||||
#if !defined(Q_OS_MAC)
|
#if !defined(Q_OS_MAC)
|
||||||
// causes dark mode to be used on some DE's
|
// causes dark mode to be used on some DE's
|
||||||
if (qEnvironmentVariable("XDG_CURRENT_DESKTOP") != QLatin1String("KDE")) {
|
if (qEnvironmentVariable("XDG_CURRENT_DESKTOP") != QLatin1String("KDE")) {
|
||||||
qApp->setStyle("fusion");
|
QApplication::setStyle("fusion");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -143,7 +143,7 @@ int main(int argc, char *argv[])
|
||||||
DESKFLOW_GUI_HOOK_START
|
DESKFLOW_GUI_HOOK_START
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return qApp->exec();
|
return QApplication::exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(Q_OS_MAC)
|
#if defined(Q_OS_MAC)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue