Add TextWithTags::empty method.
This commit is contained in:
parent
4ba3000a28
commit
c199a1722f
1 changed files with 4 additions and 0 deletions
|
|
@ -256,6 +256,10 @@ struct TextWithTags {
|
|||
|
||||
QString text;
|
||||
Tags tags;
|
||||
|
||||
[[nodiscard]] bool empty() const {
|
||||
return text.isEmpty();
|
||||
}
|
||||
};
|
||||
|
||||
inline bool operator==(const TextWithTags::Tag &a, const TextWithTags::Tag &b) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue