mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Move helper functions to Utils::Gui namespace
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user