![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Enumerations | |
enum | WidgetSizePolicy { SizeLarge = 0 , SizeSmall = 1 , SizeMini = 2 , SizeDefault = -1 } |
Functions | |
Q_WIDGETS_EXPORT QString | uniqueName (const QString &key, const QStyleOption *option, const QSize &size, qreal dpr) |
Q_WIDGETS_EXPORT qreal | dpi (const QStyleOption *option) |
Q_WIDGETS_EXPORT qreal | dpiScaled (qreal value, qreal dpi) |
Q_WIDGETS_EXPORT qreal | dpiScaled (qreal value, const QPaintDevice *device) |
Q_WIDGETS_EXPORT qreal | dpiScaled (qreal value, const QStyleOption *option) |
Q_WIDGETS_EXPORT void | drawBorderPixmap (const QPixmap &pixmap, QPainter *painter, const QRect &rect, int left=0, int top=0, int right=0, int bottom=0) |
Q_WIDGETS_EXPORT QColor | backgroundColor (const QPalette &pal, const QWidget *widget=nullptr) |
Q_WIDGETS_EXPORT WidgetSizePolicy | widgetSizePolicy (const QWidget *w, const QStyleOption *opt=nullptr) |
static qreal | getDpr (const QWidget *widget) |
static qreal | getDpr (const QPainter *painter) |
static bool | usePixmapCache (const QStyleOption *opt) |
Variables | |
static const qreal | qstyleBaseDpi = 96 |
Enumerator | |
---|---|
SizeLarge | |
SizeSmall | |
SizeMini | |
SizeDefault |
Definition at line 67 of file qstylehelper_p.h.
Definition at line 411 of file qstylehelper.cpp.
Q_WIDGETS_EXPORT qreal QStyleHelper::dpi | ( | const QStyleOption * | option | ) |
Definition at line 67 of file qstylehelper.cpp.
Q_WIDGETS_EXPORT qreal QStyleHelper::dpiScaled | ( | qreal | value, |
const QPaintDevice * | device ) |
Definition at line 94 of file qstylehelper.cpp.
Q_WIDGETS_EXPORT qreal QStyleHelper::dpiScaled | ( | qreal | value, |
const QStyleOption * | option ) |
Definition at line 99 of file qstylehelper.cpp.
Definition at line 89 of file qstylehelper.cpp.
void QStyleHelper::drawBorderPixmap | ( | const QPixmap & | pixmap, |
QPainter * | painter, | ||
const QRect & | rect, | ||
int | left = 0, | ||
int | top = 0, | ||
int | right = 0, | ||
int | bottom = 0 ) |
Definition at line 354 of file qstylehelper.cpp.
Definition at line 80 of file qstylehelper_p.h.
Definition at line 73 of file qstylehelper_p.h.
QString QStyleHelper::uniqueName | ( | const QString & | key, |
const QStyleOption * | option, | ||
const QSize & | size, | ||
qreal | dpr ) |
Definition at line 36 of file qstylehelper.cpp.
References usePixmapCache().
|
inlinestatic |
Definition at line 29 of file qstylehelper.cpp.
Referenced by uniqueName().
WidgetSizePolicy QStyleHelper::widgetSizePolicy | ( | const QWidget * | w, |
const QStyleOption * | opt = nullptr ) |
Definition at line 423 of file qstylehelper.cpp.
References SizeDefault, SizeLarge, SizeMini, and SizeSmall.
|
static |
Definition at line 64 of file qstylehelper.cpp.