This commit is contained in:
Uwe Rathmann 2023-05-15 07:22:54 +02:00
parent 2a7a68e915
commit a5a28bebc2
1 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,8 @@ class QSK_EXPORT QskLabelData
void setIcon( const QskIcon& ); void setIcon( const QskIcon& );
QskIcon icon() const noexcept; QskIcon icon() const noexcept;
bool isEmpty() const;
QskHashValue hash( QskHashValue ) const; QskHashValue hash( QskHashValue ) const;
private: private:
@ -71,6 +73,11 @@ inline bool QskLabelData::operator!=( const QskLabelData& other ) const noexcept
return ( !( *this == other ) ); return ( !( *this == other ) );
} }
inline bool QskLabelData::isEmpty() const
{
return m_text.isEmpty() && m_icon.isNull();
}
QSK_EXPORT QVector< QskLabelData > qskCreateLabelData( const QStringList& ); QSK_EXPORT QVector< QskLabelData > qskCreateLabelData( const QStringList& );
#ifndef QT_NO_DEBUG_STREAM #ifndef QT_NO_DEBUG_STREAM