Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qstylekitstyle.cpp File Reference

(ff7ba54a66c0c6303c88052816928240c2971163)

#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"
Include dependency graph for qstylekitstyle.cpp:

Go to the source code of this file.

Functions

static QQStyleKitReader::ControlType controlTypeForWidget (const QWidget *widget)
static QWidgetpaintTarget (const QWidget *widget)
static bool isSelfPaintingWidget (const QWidget *widget)
static QWidgetmanagedViewport (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 QMargins elementMargins (const QQStyleKitDelegateProperties *element)
static bool applyDelegateTransform (QPainter *painter, const QQStyleKitDelegateProperties *element, const QRectF &box)
static const QWidgetcontainerWidget (const QWidget *w)
static QUrl urlFromStylePath (const QString &filePath)

Function Documentation

◆ applyDelegateTransform()

bool applyDelegateTransform ( QPainter * painter,
const QQStyleKitDelegateProperties * element,
const QRectF & box )
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 509 of file qstylekitstyle.cpp.

◆ containerWidget()

const QWidget * containerWidget ( const QWidget * w)
static

Definition at line 535 of file qstylekitstyle.cpp.

◆ controlTypeForWidget()

QQStyleKitReader::ControlType controlTypeForWidget ( const QWidget * widget)
static

Definition at line 330 of file qstylekitstyle.cpp.

◆ elementMargins()

QMargins elementMargins ( const QQStyleKitDelegateProperties * element)
static

Definition at line 496 of file qstylekitstyle.cpp.

◆ isSelfPaintingWidget()

bool isSelfPaintingWidget ( const QWidget * widget)
static

Definition at line 443 of file qstylekitstyle.cpp.

◆ managedViewport()

QWidget * managedViewport ( QWidget * widget)
static

Definition at line 459 of file qstylekitstyle.cpp.

◆ paintTarget()

QWidget * paintTarget ( const QWidget * widget)
static

Definition at line 432 of file qstylekitstyle.cpp.

◆ resolvedAlignment()

uint resolvedAlignment ( uint raw,
Qt::Alignment hDefault,
Qt::Alignment vDefault )
static

Definition at line 476 of file qstylekitstyle.cpp.

◆ resolvedHeight()

qreal resolvedHeight ( const QQStyleKitDelegateProperties * element,
qreal availableH )
static

Definition at line 491 of file qstylekitstyle.cpp.

◆ resolvedWidth()

qreal resolvedWidth ( const QQStyleKitDelegateProperties * element,
qreal availableW )
static

Definition at line 486 of file qstylekitstyle.cpp.

◆ urlFromStylePath()

QUrl urlFromStylePath ( const QString & filePath)
static

Definition at line 570 of file qstylekitstyle.cpp.