From 6ab237f50a3fa2483717801c6dfce7c89aded653 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Thu, 19 Dec 2024 15:54:40 -0800 Subject: [PATCH] Whitespace fixes. --- common/lc_blenderpreferences.cpp | 10 +++++----- common/lc_file.h | 2 +- common/lc_instructionsdialog.cpp | 2 +- common/lc_modellistdialog.cpp | 2 +- common/lc_propertieswidget.cpp | 2 +- common/piece.cpp | 2 +- common/project.cpp | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/common/lc_blenderpreferences.cpp b/common/lc_blenderpreferences.cpp index 26d44461..91aa594b 100644 --- a/common/lc_blenderpreferences.cpp +++ b/common/lc_blenderpreferences.cpp @@ -524,7 +524,7 @@ lcBlenderPreferences::lcBlenderPreferences(int Width, int Height, double Scale, { mAddonVersionEdit->setText(mAddonVersion); mRenderActBox->setChecked(true); - mImportActBox->setChecked( lcGetProfileString(LC_PROFILE_BLENDER_IMPORT_MODULE) == QLatin1String("TN")); + mImportActBox->setChecked(lcGetProfileString(LC_PROFILE_BLENDER_IMPORT_MODULE) == QLatin1String("TN")); mImportMMActBox->setChecked(lcGetProfileString(LC_PROFILE_BLENDER_IMPORT_MODULE) == QLatin1String("MM")); } @@ -593,7 +593,7 @@ void lcBlenderPreferences::ClearGroupBox(QGroupBox* GroupBox) if(Row == -1 || ItemRole != QFormLayout::SpanningRole) return; - QLayoutItem* GroupBoxIitem = mForm->itemAt ( Row, ItemRole ); + QLayoutItem* GroupBoxIitem = mForm->itemAt(Row, ItemRole); mForm->removeItem(GroupBoxIitem); @@ -1257,7 +1257,7 @@ void lcBlenderPreferences::ConfigureBlenderAddon(bool TestBlender, bool AddonUpd { bool FoundModule = false; QTextStream In(&File); - while ( ! In.atEnd()) + while (!In.atEnd()) { if (QString(In.readLine(0)).startsWith("bl_info")) { @@ -1966,13 +1966,13 @@ QString lcBlenderPreferences::ReadStdErr(bool& Error) const const QString BlenderDir = QString("%1/Blender").arg(mDataDir); QFile File(QString("%1/stderr-blender-addon-install").arg(BlenderDir)); - if ( ! File.open(QFile::ReadOnly | QFile::Text)) + if (!File.open(QFile::ReadOnly | QFile::Text)) { const QString Message = tr("Failed to open log file: %1:\n%2").arg(File.fileName()).arg(File.errorString()); return Message; } QTextStream In(&File); - while ( ! In.atEnd()) + while (!In.atEnd()) { const QString& Line = In.readLine(0); ReturnLines << CleanLine(Line); diff --git a/common/lc_file.h b/common/lc_file.h index 99ce81a6..118e2227 100644 --- a/common/lc_file.h +++ b/common/lc_file.h @@ -5,7 +5,7 @@ #include "lc_math.h" #define LC_FOURCC(ch0, ch1, ch2, ch3) (quint32)((quint32)(quint8)(ch0) | ((quint32)(quint8)(ch1) << 8) | \ - ((quint32)(quint8)(ch2) << 16) | ((quint32)(quint8)(ch3) << 24 )) + ((quint32)(quint8)(ch2) << 16) | ((quint32)(quint8)(ch3) << 24)) class lcFile { diff --git a/common/lc_instructionsdialog.cpp b/common/lc_instructionsdialog.cpp index 45b5488b..265281f2 100644 --- a/common/lc_instructionsdialog.cpp +++ b/common/lc_instructionsdialog.cpp @@ -323,7 +323,7 @@ void lcInstructionsPropertiesWidget::AddBoolProperty(lcInstructionsPropertyType connect(CheckBox, &QToolButton::toggled, [this, Type](bool Checked) { mInstructions->SetDefaultBool(Type, Checked); - } ); + }); } void lcInstructionsPropertiesWidget::AddColorProperty(lcInstructionsPropertyType Type) diff --git a/common/lc_modellistdialog.cpp b/common/lc_modellistdialog.cpp index 650019ad..8e4dac72 100644 --- a/common/lc_modellistdialog.cpp +++ b/common/lc_modellistdialog.cpp @@ -27,7 +27,7 @@ lcModelListDialog::lcModelListDialog(QWidget* Parent, const std::vectorsetData(static_cast(lcModelListRole::ExistingModel), QVariant::fromValue((uintptr_t)Model.get())); ui->ModelList->addItem(Item); - if (Model.get() == ActiveModel ) + if (Model.get() == ActiveModel) ActiveModelIndex = ui->ModelList->count() - 1; } diff --git a/common/lc_propertieswidget.cpp b/common/lc_propertieswidget.cpp index db374179..13d1fe2b 100644 --- a/common/lc_propertieswidget.cpp +++ b/common/lc_propertieswidget.cpp @@ -304,7 +304,7 @@ void lcPropertiesWidget::FloatChanged() Model->RotateSelectedObjects(Rotation - InitialRotation, true, false, true, true); } - else if ( Piece || Light ) + else if (Piece || Light) { Model->SetObjectsProperty(mFocusObject ? std::vector{ mFocusObject } : mSelection, PropertyId, Value); } diff --git a/common/piece.cpp b/common/piece.cpp index bf8c187f..269c1277 100644 --- a/common/piece.cpp +++ b/common/piece.cpp @@ -1347,7 +1347,7 @@ bool lcPiece::RemoveFocusedControlPoint() { quint32 Section = GetFocusSection(); - if( Section < LC_PIECE_SECTION_CONTROL_POINT_FIRST ) + if (Section < LC_PIECE_SECTION_CONTROL_POINT_FIRST) return false; const quint32 ControlPointIndex = Section - LC_PIECE_SECTION_CONTROL_POINT_FIRST; diff --git a/common/project.cpp b/common/project.cpp index 04b84a0b..199ebacc 100644 --- a/common/project.cpp +++ b/common/project.cpp @@ -2033,7 +2033,7 @@ bool Project::ExportPOVRay(const QString& FileName) " #elseif (Type = AreaLight)\n" " area_light AreaWidth, AreaHeight, AreaRows, AreaColumns\n" " jitter\n" - " #if (AreaCircle > 0 & AreaWidth > 2 & AreaHeight > 2 & AreaRows > 1 & AreaColumns > 1 )\n" + " #if (AreaCircle > 0 & AreaWidth > 2 & AreaHeight > 2 & AreaRows > 1 & AreaColumns > 1)\n" " circular \n" " #if (AreaWidth = AreaHeight & AreaRows = AreaColumns)\n" " orient\n"