51 QIcon icon(
const QString& iconName, IconTheme iconTheme);
52 QIcon systemThemeIcon(
const QString& iconName);
54 QImage image(
const QString& iconName, IconTheme themeName);
55 QImage image(
const QString& iconName, IconTheme themeName,
const QSize& size,
bool keepAspectRatio =
true);
57 QPixmap pixmap(
const QString& iconName, IconTheme themeName);
58 QPixmap pixmap(
const QString& iconName, IconTheme themeName,
const QSize& size,
bool keepAspectRatio =
true);
60 QScreen* getBiggestScreen();
62 QColor color(QPalette::ColorGroup colorGroup, QPalette::ColorRole colorRole);
64 void placeInScreenCenter(QWidget* widget,
float relativeSizeX,
float relativeSizeY);
66 int textWidth(
const QFontMetrics& fm,
const QString& text);
67 int textWidth(QWidget* widget,
const QString& text);
69 int viewRowHeight(
const QFontMetrics& fontMetrics);
Definition: EngineUtils.h:33
Helper functions.
Definition: Utils.h:38