Part: Use QStringLiteral
This commit is contained in:
@@ -273,21 +273,21 @@ void CrossSections::apply()
|
||||
App::Document* doc = it->getDocument();
|
||||
std::string s = it->getNameInDocument();
|
||||
s += "_cs";
|
||||
Gui::Command::runCommand(Gui::Command::App, QString::fromLatin1(
|
||||
Gui::Command::runCommand(Gui::Command::App, QStringLiteral(
|
||||
"wires=list()\n"
|
||||
"shape=FreeCAD.getDocument(\"%1\").%2.Shape\n")
|
||||
.arg(QLatin1String(doc->getName()),
|
||||
QLatin1String(it->getNameInDocument())).toLatin1());
|
||||
|
||||
for (double jt : d) {
|
||||
Gui::Command::runCommand(Gui::Command::App, QString::fromLatin1(
|
||||
Gui::Command::runCommand(Gui::Command::App, QStringLiteral(
|
||||
"for i in shape.slice(Base.Vector(%1,%2,%3),%4):\n"
|
||||
" wires.append(i)\n"
|
||||
).arg(a).arg(b).arg(c).arg(jt).toLatin1());
|
||||
seq.next();
|
||||
}
|
||||
|
||||
Gui::Command::runCommand(Gui::Command::App, QString::fromLatin1(
|
||||
Gui::Command::runCommand(Gui::Command::App, QStringLiteral(
|
||||
"comp=Part.Compound(wires)\n"
|
||||
"slice=FreeCAD.getDocument(\"%1\").addObject(\"Part::Feature\",\"%2\")\n"
|
||||
"slice.Shape=comp\n"
|
||||
|
||||
Reference in New Issue
Block a user