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

@@ -35,7 +35,6 @@
#include <QStyle>
#include "base/preferences.h"
#include "base/utils/misc.h"
#include "ui_shutdownconfirmdialog.h"
#include "utils.h"
@@ -63,7 +62,7 @@ ShutdownConfirmDialog::ShutdownConfirmDialog(QWidget *parent, const ShutdownDial
// Always on top
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
move(Utils::Misc::screenCenter(this));
move(Utils::Gui::screenCenter(this));
m_timer.setInterval(1000); // 1sec
connect(&m_timer, &QTimer::timeout, this, &ShutdownConfirmDialog::updateSeconds);