simplify creation of string
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user