use QString.isEmpty()

oops
Signed-off-by: Tayou <tayou@gmx.net>
This commit is contained in:
Tayou 2023-06-28 18:57:10 +02:00
parent 6b3b119db0
commit 54d88e4dbf
No known key found for this signature in database
GPG Key ID: 02CA43C1CB6E9887

View File

@ -204,7 +204,7 @@ void VisualGroup::drawHeader(QPainter *painter, const QStyleOptionViewItem &opti
painter->save();
painter->setFont(font);
painter->drawText(textRect, Qt::AlignLeft | Qt::AlignVCenter, text != "" ? text : QObject::tr("Ungrouped"));
painter->drawText(textRect, Qt::AlignLeft | Qt::AlignVCenter, !text.isEmpty() ? text : QObject::tr("Ungrouped"));
painter->restore();
}
//END: text