6#ifndef QSK_LABEL_DATA_H
7#define QSK_LABEL_DATA_H
13#include <qstringlist.h>
22 Q_PROPERTY( QString text READ text WRITE setText )
23 Q_PROPERTY( QUrl iconSource READ iconSource WRITE setIconSource )
36 void setText(
const QString& );
37 QString text()
const noexcept;
39 void setIconSource(
const QUrl& );
40 QUrl iconSource()
const noexcept;
47 QskHashValue hash( QskHashValue )
const;
56inline QString QskLabelData::text() const noexcept
61inline QskIcon QskLabelData::icon() const noexcept
66inline QUrl QskLabelData::iconSource() const noexcept
68 return m_icon.source();
71inline bool QskLabelData::operator!=(
const QskLabelData& other )
const noexcept
73 return ( !( *
this == other ) );
76inline bool QskLabelData::isEmpty()
const
78 return m_text.isEmpty() && m_icon.isNull();
81QSK_EXPORT QVector< QskLabelData > qskCreateLabelData(
const QStringList& );
83#ifndef QT_NO_DEBUG_STREAM
87QSK_EXPORT QDebug operator<<( QDebug,
const QskLabelData& );