simplify creation of string

This commit is contained in:
wmayer
2019-02-11 13:03:51 +01:00
parent 0e60e897ef
commit 6536d386d3

View File

@@ -801,8 +801,9 @@ void TaskAttacher::updateListOfModes()
QString tooltip = mstr[1];
if (mmode != mmDeactivated) {
tooltip += QString::fromLatin1("\n\n") + tr("Reference combinations:") + QString::fromLatin1("\n") +
AttacherGui::getRefListForMode(pcAttach->attacher(),mmode).join(QString::fromLatin1("\n"));
tooltip += QString::fromLatin1("\n\n%1\n%2")
.arg(tr("Reference combinations:"))
.arg(AttacherGui::getRefListForMode(pcAttach->attacher(),mmode).join(QString::fromLatin1("\n")));
}
item->setToolTip(tooltip);