19 Q_PROPERTY( QString text READ text WRITE setText NOTIFY textChanged FINAL )
21 Q_PROPERTY( QFont font READ font )
24 WRITE setTextOptions RESET resetTextOptions NOTIFY textOptionsChanged )
26 Q_PROPERTY( QUrl iconSource READ iconSource
27 WRITE setIconSource NOTIFY iconSourceChanged FINAL )
30 WRITE setIcon NOTIFY iconChanged FINAL )
32 Q_PROPERTY( QSizeF iconStrutSize READ iconStrutSize
33 WRITE setIconStrutSize RESET resetIconStrutSize
34 NOTIFY iconStrutSizeChanged FINAL )
36 Q_PROPERTY(
bool checkable READ isCheckable
37 WRITE setCheckable NOTIFY checkableChanged FINAL )
39 Q_PROPERTY( Emphasis emphasis READ emphasis
40 WRITE setEmphasis NOTIFY emphasisChanged )
43 WRITE setShape RESET resetShape NOTIFY shapeChanged )
48 QSK_SUBCONTROLS( Panel, Splash, Text, Icon )
61 QskPushButton(
const QString& text, QQuickItem* parent =
nullptr );
65 void setEmphasis( Emphasis );
66 Emphasis emphasis()
const;
68 void setCheckable(
bool );
69 bool isCheckable()
const override final;
79 void resetTextOptions();
81 void setIconStrutSize(
const QSizeF& );
82 QSizeF iconStrutSize()
const;
83 void resetIconStrutSize();
85 QUrl iconSource()
const;
95 void setText(
const QString& );
96 void setIconSource(
const QUrl& );
97 void setIconSource(
const QString& );
101 void checkableChanged(
bool );
102 void emphasisChanged( Emphasis )
const;
106 void textOptionsChanged();
109 void iconSourceChanged();
110 void iconStrutSizeChanged();
114 void mousePressEvent( QMouseEvent* )
override;
116 void updateResources()
override;
117 virtual QskGraphic loadIcon(
const QUrl& )
const;
121 std::unique_ptr< PrivateData > m_data;