use QString.isEmpty()
oops Signed-off-by: Tayou <tayou@gmx.net>
This commit is contained in:
parent
6b3b119db0
commit
54d88e4dbf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user