All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent eafd18dac0
commit 25c3ba7338
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -38,8 +38,8 @@ using namespace Gui::Dialog;
/* TRANSLATOR Gui::Dialog::DlgProjectUtility */
DlgProjectUtility::DlgProjectUtility(QWidget* parent, Qt::WindowFlags fl)
: QDialog(parent, fl)
, ui(new Ui_DlgProjectUtility)
: QDialog(parent, fl)
, ui(new Ui_DlgProjectUtility)
{
ui->setupUi(this);
connect(ui->extractButton, &QPushButton::clicked, this, &DlgProjectUtility::extractButton);
@@ -93,8 +93,8 @@ void DlgProjectUtility::tryExtractArchive(const QString& source, const QString&
try {
std::stringstream str;
str << "from freecad import project_utility\n";
str << "project_utility.extractDocument(\"" << (const char*)source.toUtf8()
<< "\", \"" << (const char*)target.toUtf8() << "\")";
str << "project_utility.extractDocument(\"" << (const char*)source.toUtf8() << "\", \""
<< (const char*)target.toUtf8() << "\")";
Gui::Command::runCommand(Gui::Command::App, str.str().c_str());
}
catch (const Base::Exception& e) {
@@ -107,11 +107,11 @@ void DlgProjectUtility::tryCreateArchive(const QString& source, const QString& t
try {
std::stringstream str;
str << "from freecad import project_utility\n";
str << "project_utility.createDocument(\"" << (const char*)source.toUtf8()
<< "\", \"" << (const char*)target.toUtf8() << "\")";
str << "project_utility.createDocument(\"" << (const char*)source.toUtf8() << "\", \""
<< (const char*)target.toUtf8() << "\")";
Gui::Command::runCommand(Gui::Command::App, str.str().c_str());
if (openFile) {
Application::Instance->open((const char*)target.toUtf8(),"FreeCAD");
Application::Instance->open((const char*)target.toUtf8(), "FreeCAD");
}
}
catch (const Base::Exception& e) {