From b4c91af000b58251a41a6e67ad7764825e663c19 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 14 Jan 2012 15:44:05 +0000 Subject: [PATCH] + use UTF8-encoding of degree symbol git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5408 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Gui/Command.cpp | 12 ++++++------ src/Gui/CommandView.cpp | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Gui/Command.cpp b/src/Gui/Command.cpp index db0bf9890..40fdb9557 100644 --- a/src/Gui/Command.cpp +++ b/src/Gui/Command.cpp @@ -504,26 +504,26 @@ void Command::applyCommandData(Action* action) { action->setText(QCoreApplication::translate( this->className(), sMenuText, 0, - QCoreApplication::CodecForTr)); + QCoreApplication::UnicodeUTF8)); action->setToolTip(QCoreApplication::translate( this->className(), sToolTipText, 0, - QCoreApplication::CodecForTr)); + QCoreApplication::UnicodeUTF8)); if (sStatusTip) action->setStatusTip(QCoreApplication::translate( this->className(), sStatusTip, 0, - QCoreApplication::CodecForTr)); + QCoreApplication::UnicodeUTF8)); else action->setStatusTip(QCoreApplication::translate( this->className(), sToolTipText, 0, - QCoreApplication::CodecForTr)); + QCoreApplication::UnicodeUTF8)); if (sWhatsThis) action->setWhatsThis(QCoreApplication::translate( this->className(), sWhatsThis, 0, - QCoreApplication::CodecForTr)); + QCoreApplication::UnicodeUTF8)); else action->setWhatsThis(QCoreApplication::translate( this->className(), sToolTipText, 0, - QCoreApplication::CodecForTr)); + QCoreApplication::UnicodeUTF8)); } const char* Command::keySequenceToAccel(int sk) const diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index c8d70a85f..e8c580ca4 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -1064,9 +1064,9 @@ StdCmdViewRotateLeft::StdCmdViewRotateLeft() { sGroup = QT_TR_NOOP("Standard-View"); sMenuText = QT_TR_NOOP("Rotate Left"); - sToolTipText = QT_TR_NOOP("Rotate the view by 90° counter-clockwise"); + sToolTipText = QT_TR_NOOP("Rotate the view by 90\xc2\xb0 counter-clockwise"); sWhatsThis = "Std_ViewXX"; - sStatusTip = QT_TR_NOOP("Rotate the view by 90° counter-clockwise"); + sStatusTip = QT_TR_NOOP("Rotate the view by 90\xc2\xb0 counter-clockwise"); sPixmap = "view-rotate-left"; //sAccel = "Shift Left"; eType = Alter3DView; @@ -1088,9 +1088,9 @@ StdCmdViewRotateRight::StdCmdViewRotateRight() { sGroup = QT_TR_NOOP("Standard-View"); sMenuText = QT_TR_NOOP("Rotate Right"); - sToolTipText = QT_TR_NOOP("Rotate the view by 90° clockwise"); + sToolTipText = QT_TR_NOOP("Rotate the view by 90\xc2\xb0 clockwise"); sWhatsThis = "Std_ViewXX"; - sStatusTip = QT_TR_NOOP("Rotate the view by 90° clockwise"); + sStatusTip = QT_TR_NOOP("Rotate the view by 90\xc2\xb0 clockwise"); sPixmap = "view-rotate-right"; //sAccel = "Shift Right"; eType = Alter3DView;