diff --git a/src/Gui/SoFCCSysDragger.cpp b/src/Gui/SoFCCSysDragger.cpp index 062cddb614..0bb8eec435 100644 --- a/src/Gui/SoFCCSysDragger.cpp +++ b/src/Gui/SoFCCSysDragger.cpp @@ -292,8 +292,7 @@ void TDragger::drag() static_cast(translationIncrementCount.getValue()) * translationIncrement.getValue(), Base::Unit::Length); QString message = QString::fromLatin1("%1 %2") - .arg(QObject::tr("Translation:")) - .arg(quantity.getUserString()); + .arg(QObject::tr("Translation:"), quantity.getUserString()); getMainWindow()->showMessage(message, 3000); } @@ -578,8 +577,7 @@ void RDragger::drag() rotationIncrement.getValue(), Base::Unit::Angle); QString message = QString::fromLatin1("%1 %2") - .arg(QObject::tr("Rotation:")) - .arg(quantity.getUserString()); + .arg(QObject::tr("Rotation:"), quantity.getUserString()); getMainWindow()->showMessage(message, 3000); } diff --git a/src/Mod/Part/Gui/TaskAttacher.cpp b/src/Mod/Part/Gui/TaskAttacher.cpp index 0a7c53eef0..031cc1f604 100644 --- a/src/Mod/Part/Gui/TaskAttacher.cpp +++ b/src/Mod/Part/Gui/TaskAttacher.cpp @@ -802,8 +802,8 @@ void TaskAttacher::updateListOfModes() if (mmode != mmDeactivated) { tooltip += QString::fromLatin1("\n\n%1\n%2") - .arg(tr("Reference combinations:")) - .arg(AttacherGui::getRefListForMode(pcAttach->attacher(),mmode).join(QString::fromLatin1("\n"))); + .arg(tr("Reference combinations:"), + AttacherGui::getRefListForMode(pcAttach->attacher(),mmode).join(QString::fromLatin1("\n"))); } item->setToolTip(tooltip); diff --git a/src/Mod/TechDraw/Gui/MDIViewPage.cpp b/src/Mod/TechDraw/Gui/MDIViewPage.cpp index f356360bc7..d4d3aa6a6a 100644 --- a/src/Mod/TechDraw/Gui/MDIViewPage.cpp +++ b/src/Mod/TechDraw/Gui/MDIViewPage.cpp @@ -1219,10 +1219,10 @@ bool MDIViewPage::compareSelections(std::vector treeSel, Q void MDIViewPage::showStatusMsg(const char* s1, const char* s2, const char* s3) const { QString msg = QString::fromLatin1("%1 %2.%3.%4 ") - .arg(tr("Selected:")) - .arg(QString::fromUtf8(s1)) - .arg(QString::fromUtf8(s2)) - .arg(QString::fromUtf8(s3)); + .arg(tr("Selected:"), + QString::fromUtf8(s1), + QString::fromUtf8(s2), + QString::fromUtf8(s3)); if (Gui::getMainWindow()) { Gui::getMainWindow()->showMessage(msg,3000); }