diff --git a/src/common/QskLabelData.h b/src/common/QskLabelData.h index d4b12033..2ed156a6 100644 --- a/src/common/QskLabelData.h +++ b/src/common/QskLabelData.h @@ -42,6 +42,8 @@ class QSK_EXPORT QskLabelData void setIcon( const QskIcon& ); QskIcon icon() const noexcept; + bool isEmpty() const; + QskHashValue hash( QskHashValue ) const; private: @@ -71,6 +73,11 @@ inline bool QskLabelData::operator!=( const QskLabelData& other ) const noexcept return ( !( *this == other ) ); } +inline bool QskLabelData::isEmpty() const +{ + return m_text.isEmpty() && m_icon.isNull(); +} + QSK_EXPORT QVector< QskLabelData > qskCreateLabelData( const QStringList& ); #ifndef QT_NO_DEBUG_STREAM