18 Q_PROPERTY( QUrl source READ source WRITE setSource NOTIFY sourceChanged USER
true )
20 Q_PROPERTY(
bool mirror READ mirror WRITE setMirror NOTIFY mirrorChanged )
22 Q_PROPERTY( QSizeF graphicStrutSize READ graphicStrutSize
23 WRITE setGraphicStrutSize RESET resetGraphicStrutSize
24 NOTIFY graphicStrutSizeChanged )
26 Q_PROPERTY(
int graphicRole READ graphicRole
27 WRITE setGraphicRole RESET resetGraphicRole NOTIFY graphicRoleChanged )
29 Q_PROPERTY( Qt::Alignment alignment READ alignment
30 WRITE setAlignment RESET resetAlignment NOTIFY alignmentChanged )
32 Q_PROPERTY( FillMode fillMode READ fillMode
33 WRITE setFillMode NOTIFY fillModeChanged )
35 Q_PROPERTY(
bool panel READ hasPanel
36 WRITE setPanel NOTIFY panelChanged )
41 QSK_SUBCONTROLS( Panel, Graphic )
67 void setSource(
const QString& source );
68 void setSource(
const QUrl& url );
70 void setGraphicStrutSize(
const QSizeF& size );
71 QSizeF graphicStrutSize()
const;
72 void resetGraphicStrutSize();
74 QSizeF effectiveSourceSize()
const;
76 void setMirror(
bool on );
79 void setAlignment( Qt::Alignment );
80 void resetAlignment();
81 Qt::Alignment alignment()
const;
83 void setFillMode( FillMode );
84 FillMode fillMode()
const;
88 void setGraphicRole(
int role );
89 void resetGraphicRole();
90 int graphicRole()
const;
92 void setPanel(
bool );
93 bool hasPanel()
const;
98 void graphicStrutSizeChanged();
99 void graphicRoleChanged(
int );
100 void alignmentChanged( Qt::Alignment );
101 void fillModeChanged( FillMode );
102 void panelChanged(
bool );
111 void updateResources()
override;
112 virtual QskGraphic loadSource(
const QUrl& )
const;
116 std::unique_ptr< PrivateData > m_data;