[TD]fix dimension special characters

This commit is contained in:
Wanderer Fan
2022-05-11 12:14:56 -04:00
committed by WandererFan
parent 23a1f08624
commit ef37abc441
3 changed files with 162 additions and 183 deletions

View File

@@ -156,8 +156,8 @@ CmdTechDrawExtensionInsertSquare::CmdTechDrawExtensionInsertSquare()
{
sAppModule = "TechDraw";
sGroup = QT_TR_NOOP("TechDraw");
sMenuText = QT_TR_NOOP("Insert '' Prefix");
sToolTipText = QT_TR_NOOP("Insert a '' symbol at the beginning of the dimension text:<br>\
sMenuText = QT_TR_NOOP("Insert '' Prefix");
sToolTipText = QT_TR_NOOP("Insert a '' symbol at the beginning of the dimension text:<br>\
- Select one or more dimensions<br>\
- Click this tool");
sWhatsThis = "TechDraw_ExtensionInsertSquare";
@@ -168,7 +168,7 @@ CmdTechDrawExtensionInsertSquare::CmdTechDrawExtensionInsertSquare()
void CmdTechDrawExtensionInsertSquare::activated(int iMsg)
{
Q_UNUSED(iMsg);
execInsertPrefixChar(this, "");
execInsertPrefixChar(this, ""); //□ white square U+25A1
}
bool CmdTechDrawExtensionInsertSquare::isActive(void)
@@ -269,8 +269,8 @@ void CmdTechDrawExtensionInsertPrefixGroup::activated(int iMsg)
case 0: //insert "⌀" as prefix
execInsertPrefixChar(this, "");
break;
case 1: //insert "" as prefix
execInsertPrefixChar(this, "");
case 1: //insert "" as prefix
execInsertPrefixChar(this, "");
break;
case 2: //remove prefix characters
execRemovePrefixChar(this);
@@ -326,9 +326,9 @@ void CmdTechDrawExtensionInsertPrefixGroup::languageChange()
- Click this tool"));
arc1->setStatusTip(arc1->text());
QAction* arc2 = a[1];
arc2->setText(QApplication::translate("CmdTechDrawExtensionInsertSquare", "Insert '' Prefix"));
arc2->setText(QApplication::translate("CmdTechDrawExtensionInsertSquare", "Insert '' Prefix"));
arc2->setToolTip(QApplication::translate("CmdTechDrawExtensionInsertSquare",
"Insert a '' symbol at the beginning of the dimension text:<br>\
"Insert a '' symbol at the beginning of the dimension text:<br>\
- Select one or more dimensions<br>\
- Click this tool"));
arc2->setStatusTip(arc2->text());
@@ -2178,7 +2178,7 @@ void CmdTechDrawExtensionCreateLengthArc::activated(int iMsg) {
float alpha = acos((radVec1 * radVec2) / (radVec1.Length() * radVec2.Length()));
float arcLength = alpha * radius / scale;
dim->Arbitrary.setValue(true);
formatSpec << " " << arcLength;
formatSpec << " " << arcLength;
dim->FormatSpec.setValue(formatSpec.str());
objFeat->refreshCEGeoms();
objFeat->requestPaint();