forked from qt-creator/qt-creator
SCXMLEditor: Don't show braces when condition is empty
Change-Id: I6a01bdd1cdead0ef9231c7288bd259855b2174ec Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -30,6 +30,9 @@ const qreal SELECTION_DISTANCE = 10;
|
|||||||
|
|
||||||
static QString wrapText(const QString &text)
|
static QString wrapText(const QString &text)
|
||||||
{
|
{
|
||||||
|
if (text.isEmpty())
|
||||||
|
return QString();
|
||||||
|
|
||||||
QString wrappedText = "[" + text.trimmed() + "]";
|
QString wrappedText = "[" + text.trimmed() + "]";
|
||||||
return wrappedText;
|
return wrappedText;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user