![]() |
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 | |
| QString | uniqueName (const QString &key, const QStyleOption *option, const QSize &size) |
| qreal | dpi (const QStyleOption *option) |
| qreal | dpiScaled (qreal value, qreal dpi) |
| qreal | dpiScaled (qreal value, const QPaintDevice *device) |
| qreal | dpiScaled (qreal value, const QStyleOption *option) |
| qreal | angle (const QPointF &p1, const QPointF &p2) |
| QPolygonF | calcLines (const QStyleOptionSlider *dial) |
| int | calcBigLineSize (int radius) |
| void | drawDial (const QStyleOptionSlider *dial, QPainter *painter) |
| void | drawBorderPixmap (const QPixmap &pixmap, QPainter *painter, const QRect &rect, int left=0, int top=0, int right=0, int bottom=0) |
| QColor | backgroundColor (const QPalette &pal) |
| WidgetSizePolicy | widgetSizePolicy (const QStyleOption *opt) |
| static QPointF | calcRadialPos (const QStyleOptionSlider *dial, qreal offset) |
Variables | |
| static const qreal | qstyleBaseDpi = 96 |
| Enumerator | |
|---|---|
| SizeLarge | |
| SizeSmall | |
| SizeMini | |
| SizeDefault | |
Definition at line 64 of file qquickstylehelper_p.h.
Definition at line 140 of file qquickstylehelper.cpp.
Definition at line 394 of file qquickstylehelper.cpp.
| int QQC2::QStyleHelper::calcBigLineSize | ( | int | radius | ) |
Definition at line 108 of file qquickstylehelper.cpp.
Referenced by calcLines(), and calcRadialPos().
| QPolygonF QQC2::QStyleHelper::calcLines | ( | const QStyleOptionSlider * | dial | ) |
Definition at line 172 of file qquickstylehelper.cpp.
References calcBigLineSize(), QQC2::QStyleOptionSlider::maximum, QQC2::QStyleOptionSlider::minimum, QQC2::QStyleOptionSlider::pageStep, and QQC2::QStyleOptionSlider::tickInterval.
|
static |
Definition at line 118 of file qquickstylehelper.cpp.
References calcBigLineSize(), QQC2::QStyleOptionSlider::maximum, QQC2::QStyleOptionSlider::minimum, QQC2::QStyleOptionSlider::sliderPosition, and QQC2::QStyleOptionSlider::upsideDown.
| qreal QQC2::QStyleHelper::dpi | ( | const QStyleOption * | option | ) |
Definition at line 54 of file qquickstylehelper.cpp.
| qreal QQC2::QStyleHelper::dpiScaled | ( | qreal | value, |
| const QPaintDevice * | device ) |
Definition at line 75 of file qquickstylehelper.cpp.
| qreal QQC2::QStyleHelper::dpiScaled | ( | qreal | value, |
| const QStyleOption * | option ) |
Definition at line 80 of file qquickstylehelper.cpp.
Definition at line 70 of file qquickstylehelper.cpp.
| void QQC2::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 327 of file qquickstylehelper.cpp.
| void QQC2::QStyleHelper::drawDial | ( | const QStyleOptionSlider * | dial, |
| QPainter * | painter ) |
Definition at line 216 of file qquickstylehelper.cpp.
References QQC2::QStyle::State_Enabled, and QQC2::QStyle::State_HasFocus.
| QString QQC2::QStyleHelper::uniqueName | ( | const QString & | key, |
| const QStyleOption * | option, | ||
| const QSize & | size ) |
Definition at line 29 of file qquickstylehelper.cpp.
| WidgetSizePolicy QQC2::QStyleHelper::widgetSizePolicy | ( | const QStyleOption * | opt | ) |
Definition at line 384 of file qquickstylehelper.cpp.
References SizeDefault, SizeMini, SizeSmall, QQC2::QStyle::State_Mini, and QQC2::QStyle::State_Small.
Referenced by QQC2_NAMESPACE::getControlSize().
|
static |
Definition at line 51 of file qquickstylehelper.cpp.