![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qstylekitstyle.h"#include "qstylekitstyle_p.h"#include <QtWidgets/qstyleoption.h>#include <QtWidgets/qstyle.h>#include <QtWidgets/qapplication.h>#include <QtWidgets/private/qwidget_p.h>#include <QtCore/private/qobject_p.h>#include <QtGui/qpainter.h>#include <QtGui/qpainterpath.h>#include <QtGui/qpainterstateguard.h>#include <QtGui/qstylehints.h>#include <QtCore/qloggingcategory.h>#include <QtCore/qnumeric.h>#include <QtQml/private/qqmlcomponent_p.h>#include <QtQml/qqmlengine.h>#include <QtQuick/private/qquicktransition_p.h>#include <QtLabsStyleKit/private/qqstylekit_p.h>#include <QtLabsStyleKit/private/qqstylekitcontrolproperties_p.h>#include <QtLabsStyleKit/private/qqstylekitstyle_p.h>#include "moc_qstylekitstyle.cpp"Go to the source code of this file.
Functions | |
| static QQStyleKitReader::ControlType | controlTypeForWidget (const QWidget *widget) |
| static QWidget * | paintTarget (const QWidget *widget) |
| static bool | isSelfPaintingWidget (const QWidget *widget) |
| static QWidget * | managedViewport (QWidget *widget) |
| static uint | resolvedAlignment (uint raw, Qt::Alignment hDefault, Qt::Alignment vDefault) |
| static qreal | resolvedWidth (const QQStyleKitDelegateProperties *element, qreal availableW) |
| static qreal | resolvedHeight (const QQStyleKitDelegateProperties *element, qreal availableH) |
| static QPixmap | iconPixmap (const QIcon &icon, const QSize &sizesize, QStyle::State state, const QPainter *pp) |
| static QMargins | elementMargins (const QQStyleKitDelegateProperties *element) |
| static QRectF | alignedRectInContainer (const QRectF &container, const QSizeF &sizesize, uint alignment, const QMarginsF &padding, const QMarginsF &margins) |
| static QRect | delegateRect (const QQStyleKitDelegateProperties *delegate, const QRect &container, Qt::Alignment hDefault, Qt::Alignment vDefault, const QMargins &padding=QMargins()) |
| static bool | applyDelegateTransform (QPainter *painter, const QQStyleKitDelegateProperties *element, const QRectF &boxbox) |
| static void | drawStyledItemImage (const QQStyleKitImageProperties *imageimage, const QRectF &rect, qreal opacity, QPainter *painter) |
| static void | drawStyledItemContents (const QQStyleKitDelegateProperties *propsprops, const QRectF &rect, QPainter *painter) |
| static void | drawStyledItemRect (const QQStyleKitDelegateProperties *propsprops, const QRectF &rect, QPainter *painter) |
| static void | drawControlIndicator (const QQStyleKitDelegateProperties *indicator, const QRectF &rect, QPainter *painter) |
| static void | drawControlText (const QQStyleKitTextProperties *textProps, const QFont &font, const QRect &rect, const QString &text, uint textFlags, QPainter *pp, Qt::Alignment defaultAlignment=Qt::AlignHCenter|Qt::AlignVCenter) |
| static const QWidget * | containerWidget (const QWidget *ww) |
| static QUrl | urlFromStylePath (const QString &filePath) |
|
static |
Definition at line 538 of file qstylekitstyle.cpp.
|
static |
Applies element's rotation and scale to painter about the centre of box. Returns false if the scale is 0 or if element is null, otherwise returns true.
Definition at line 601 of file qstylekitstyle.cpp.
Definition at line 839 of file qstylekitstyle.cpp.
|
static |
Definition at line 346 of file qstylekitstyle.cpp.
|
static |
Returns the rect of delegate inside container: sized from the width/height or fill properties after deducting padding and the delegate's margins, then aligned (falling back to hDefault and vDefault). Returns a null rect if delegate is null or not visible.
Definition at line 572 of file qstylekitstyle.cpp.
|
static |
Definition at line 757 of file qstylekitstyle.cpp.
|
static |
Definition at line 801 of file qstylekitstyle.cpp.
|
static |
Definition at line 679 of file qstylekitstyle.cpp.
|
static |
Definition at line 626 of file qstylekitstyle.cpp.
|
static |
Definition at line 745 of file qstylekitstyle.cpp.
|
static |
Definition at line 529 of file qstylekitstyle.cpp.
|
static |
Definition at line 520 of file qstylekitstyle.cpp.
|
static |
Definition at line 466 of file qstylekitstyle.cpp.
Definition at line 482 of file qstylekitstyle.cpp.
Definition at line 455 of file qstylekitstyle.cpp.
Definition at line 499 of file qstylekitstyle.cpp.
|
static |
Definition at line 514 of file qstylekitstyle.cpp.
|
static |
Definition at line 509 of file qstylekitstyle.cpp.
Definition at line 874 of file qstylekitstyle.cpp.