Merge pull request #10340 from Chocobo1/move

Move helper functions to Utils::Gui namespace
This commit is contained in:
Mike Tzou
2019-03-07 15:11:58 +08:00
committed by GitHub
23 changed files with 201 additions and 201 deletions

View File

@@ -41,6 +41,7 @@
#include <QAtomicInt>
#include <QDebug>
#include <QDir>
#include <QLibraryInfo>
#include <QProcess>
@@ -55,6 +56,7 @@
#endif // Q_OS_MAC
#include "addnewtorrentdialog.h"
#include "gui/guiiconprovider.h"
#include "gui/utils.h"
#include "mainwindow.h"
#include "shutdownconfirmdialog.h"
#else // DISABLE_GUI
@@ -533,7 +535,7 @@ int Application::exec(const QStringList &params)
msgBox.setText(tr("Application failed to start."));
msgBox.setInformativeText(err.message());
msgBox.show(); // Need to be shown or to moveToCenter does not work
msgBox.move(Utils::Misc::screenCenter(&msgBox));
msgBox.move(Utils::Gui::screenCenter(&msgBox));
msgBox.exec();
#endif
return 1;