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
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
21 changed files with 187 additions and 190 deletions

View file

@ -29,11 +29,11 @@
#ifndef UTILS_GUI_H
#define UTILS_GUI_H
#include <QtGlobal>
#include <QPixmap>
#include <QSize>
class QIcon;
class QPixmap;
class QPoint;
class QWidget;
namespace Utils
@ -55,6 +55,11 @@ namespace Utils
QSize smallIconSize(const QWidget *widget = nullptr);
QSize mediumIconSize(const QWidget *widget = nullptr);
QSize largeIconSize(const QWidget *widget = nullptr);
QPoint screenCenter(const QWidget *w);
void openPath(const QString &absolutePath);
void openFolderSelect(const QString &absolutePath);
}
}