5#ifndef QQUICKSTYLEITEMBUTTON_H
6#define QQUICKSTYLEITEMBUTTON_H
9#include <QtQuickTemplates2/private/qquickbutton_p.h>
13class QQuickStyleItemButton :
public QQuickStyleItem
19 QFont styleFont(QQuickItem *control)
const override;
22 void connectToControl()
const override;
23 void paintEvent(QPainter *painter)
const override;
24 StyleItemGeometry calculateGeometry() override;
27 virtual void initStyleOption(QStyleOptionButton &styleOption)
const;
static void setStyle(QStyle *style)
virtual void connectToControl() const
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void layoutMarginsChanged()
qreal focusFrameRadius() const
virtual StyleItemGeometry calculateGeometry()=0
OverrideState m_overrideState
virtual void paintEvent(QPainter *painter) const =0
void itemChange(ItemChange change, const ItemChangeData &data) override
Called when change occurs for this item.
const T * control() const
void minimumSizeChanged()
QSize contentSize() const
void updatePolish() override
This function should perform any layout as required for this item.
void setContentHeight(qreal contentHeight)
QQuickStyleMargins contentPadding() const
~QQuickStyleItem() override
QQuickStyleMargins layoutMargins() const
void contentPaddingChanged()
QSize minimumSize() const
static QStyle::State controlSize(QQuickItem *item)
void setContentWidth(qreal contentWidth)
void initStyleOptionBase(QStyleOption &styleOption) const
QSGNode * updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *updatePaintNodeData) override
Called on the render thread when it is time to sync the state of the item with the scene graph.
void componentComplete() override
\reimp Derived classes should call the base class method before adding their own actions to perform a...
bool event(QEvent *event) override
\reimp
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
static QWindow * effectiveWindow(QQuickWindow *window)
#define qqc2InfoHeading(HEADING)
QMargins ninePatchMargins