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

@@ -29,9 +29,6 @@
#ifndef UTILS_MISC_H
#define UTILS_MISC_H
#include <ctime>
#include <vector>
#include <QtGlobal>
#ifdef Q_OS_WIN
@@ -39,14 +36,10 @@
#include <Windows.h>
#endif
#include <QDir>
#include <QPoint>
#include <QSize>
#include <QString>
#include <QStringList>
#include <QUrl>
#include "base/types.h"
enum class ShutdownDialogAction;
/* Miscellaneous functions that can be useful */
@@ -99,13 +92,6 @@ namespace Utils
QList<int> intListfromStringList(const QStringList &l);
QList<bool> boolListfromStringList(const QStringList &l);
#ifndef DISABLE_GUI
void openPath(const QString &absolutePath);
void openFolderSelect(const QString &absolutePath);
QPoint screenCenter(const QWidget *w);
#endif
#ifdef Q_OS_WIN
QString windowsSystemPath();