18 Q_PROPERTY( QString text READ text WRITE setText NOTIFY textChanged USER
true )
21 WRITE setFontRole RESET resetFontRole NOTIFY fontRoleChanged )
23 Q_PROPERTY( QFont font READ font )
25 Q_PROPERTY( QColor textColor READ textColor
26 WRITE setTextColor RESET resetTextColor NOTIFY textColorChanged )
29 WRITE setTextOptions RESET resetTextOptions NOTIFY textOptionsChanged )
31 Q_PROPERTY( Qt::Alignment alignment READ alignment
32 WRITE setAlignment NOTIFY alignmentChanged )
34 Q_PROPERTY(
bool panel READ hasPanel
35 WRITE setPanel NOTIFY panelChanged )
40 QSK_SUBCONTROLS( Panel, Text )
43 QskTextLabel(
const QString& text, QQuickItem* parent =
nullptr );
53 void setTextColor(
const QColor& );
54 void resetTextColor();
55 QColor textColor()
const;
59 void resetTextOptions();
61 void setTextFormat( QskTextOptions::TextFormat );
62 QskTextOptions::TextFormat textFormat()
const;
64 QskTextOptions::TextFormat effectiveTextFormat()
const;
66 void setWrapMode( QskTextOptions::WrapMode );
67 QskTextOptions::WrapMode wrapMode()
const;
69 void setElideMode( Qt::TextElideMode );
70 Qt::TextElideMode elideMode()
const;
72 void setAlignment( Qt::Alignment );
73 void resetAlignment();
74 Qt::Alignment alignment()
const;
78 void setPanel(
bool );
79 bool hasPanel()
const;
82 void textChanged(
const QString& );
83 void textColorChanged(
const QColor& );
86 void alignmentChanged( Qt::Alignment );
87 void panelChanged(
bool );
90 void setText(
const QString& );
97 std::unique_ptr< PrivateData > m_data;