mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Move helper functions to Utils::Gui namespace
This commit is contained in:
parent
0f1fc7be9d
commit
adbd34c795
21 changed files with 187 additions and 190 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue