Add comment to clarify why replace() is used

by The WikiLab Team (wikilab.blog.br)
This commit is contained in:
Victor Fragoso
2018-07-05 21:33:51 -03:00
committed by Yorik van Havre
parent 9ea0cf5a30
commit 5f63f9f23f

View File

@@ -461,6 +461,9 @@ void AboutDialog::setupLabels()
QString disda = QString::fromLatin1(config["BuildRevisionDate"].c_str());
QString mturl = QString::fromLatin1(config["MaintainerUrl"].c_str());
// we use replace() to keep label formating, so a label with text "<b>Unknown</b>"
// gets replaced to "<b>FreeCAD</b>", for example
QString author = ui->labelAuthor->text();
author.replace(QString::fromLatin1("Unknown Application"), exeName);
author.replace(QString::fromLatin1("(c) Unknown Author"), banner);