Move helper functions to Utils::Gui namespace

This commit is contained in:
Chocobo1
2019-03-02 13:22:13 +08:00
parent 0f1fc7be9d
commit adbd34c795
21 changed files with 187 additions and 190 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
@@ -529,7 +531,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;