Whitespace fixes.
Some checks are pending
LeoCAD CI / build-ubuntu (push) Waiting to run
LeoCAD CI / build-macos (push) Waiting to run

This commit is contained in:
Leonardo Zide 2024-12-19 15:54:40 -08:00
parent 71c154bcaa
commit 6ab237f50a
7 changed files with 11 additions and 11 deletions

View file

@ -524,7 +524,7 @@ lcBlenderPreferences::lcBlenderPreferences(int Width, int Height, double Scale,
{ {
mAddonVersionEdit->setText(mAddonVersion); mAddonVersionEdit->setText(mAddonVersion);
mRenderActBox->setChecked(true); 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")); 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; if(Row == -1 || ItemRole != QFormLayout::SpanningRole) return;
QLayoutItem* GroupBoxIitem = mForm->itemAt ( Row, ItemRole ); QLayoutItem* GroupBoxIitem = mForm->itemAt(Row, ItemRole);
mForm->removeItem(GroupBoxIitem); mForm->removeItem(GroupBoxIitem);
@ -1257,7 +1257,7 @@ void lcBlenderPreferences::ConfigureBlenderAddon(bool TestBlender, bool AddonUpd
{ {
bool FoundModule = false; bool FoundModule = false;
QTextStream In(&File); QTextStream In(&File);
while ( ! In.atEnd()) while (!In.atEnd())
{ {
if (QString(In.readLine(0)).startsWith("bl_info")) 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); const QString BlenderDir = QString("%1/Blender").arg(mDataDir);
QFile File(QString("%1/stderr-blender-addon-install").arg(BlenderDir)); 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()); const QString Message = tr("Failed to open log file: %1:\n%2").arg(File.fileName()).arg(File.errorString());
return Message; return Message;
} }
QTextStream In(&File); QTextStream In(&File);
while ( ! In.atEnd()) while (!In.atEnd())
{ {
const QString& Line = In.readLine(0); const QString& Line = In.readLine(0);
ReturnLines << CleanLine(Line); ReturnLines << CleanLine(Line);

View file

@ -5,7 +5,7 @@
#include "lc_math.h" #include "lc_math.h"
#define LC_FOURCC(ch0, ch1, ch2, ch3) (quint32)((quint32)(quint8)(ch0) | ((quint32)(quint8)(ch1) << 8) | \ #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 class lcFile
{ {

View file

@ -323,7 +323,7 @@ void lcInstructionsPropertiesWidget::AddBoolProperty(lcInstructionsPropertyType
connect(CheckBox, &QToolButton::toggled, [this, Type](bool Checked) connect(CheckBox, &QToolButton::toggled, [this, Type](bool Checked)
{ {
mInstructions->SetDefaultBool(Type, Checked); mInstructions->SetDefaultBool(Type, Checked);
} ); });
} }
void lcInstructionsPropertiesWidget::AddColorProperty(lcInstructionsPropertyType Type) void lcInstructionsPropertiesWidget::AddColorProperty(lcInstructionsPropertyType Type)

View file

@ -27,7 +27,7 @@ lcModelListDialog::lcModelListDialog(QWidget* Parent, const std::vector<std::uni
Item->setData(static_cast<int>(lcModelListRole::ExistingModel), QVariant::fromValue<uintptr_t>((uintptr_t)Model.get())); Item->setData(static_cast<int>(lcModelListRole::ExistingModel), QVariant::fromValue<uintptr_t>((uintptr_t)Model.get()));
ui->ModelList->addItem(Item); ui->ModelList->addItem(Item);
if (Model.get() == ActiveModel ) if (Model.get() == ActiveModel)
ActiveModelIndex = ui->ModelList->count() - 1; ActiveModelIndex = ui->ModelList->count() - 1;
} }

View file

@ -304,7 +304,7 @@ void lcPropertiesWidget::FloatChanged()
Model->RotateSelectedObjects(Rotation - InitialRotation, true, false, true, true); Model->RotateSelectedObjects(Rotation - InitialRotation, true, false, true, true);
} }
else if ( Piece || Light ) else if (Piece || Light)
{ {
Model->SetObjectsProperty(mFocusObject ? std::vector<lcObject*>{ mFocusObject } : mSelection, PropertyId, Value); Model->SetObjectsProperty(mFocusObject ? std::vector<lcObject*>{ mFocusObject } : mSelection, PropertyId, Value);
} }

View file

@ -1347,7 +1347,7 @@ bool lcPiece::RemoveFocusedControlPoint()
{ {
quint32 Section = GetFocusSection(); quint32 Section = GetFocusSection();
if( Section < LC_PIECE_SECTION_CONTROL_POINT_FIRST ) if (Section < LC_PIECE_SECTION_CONTROL_POINT_FIRST)
return false; return false;
const quint32 ControlPointIndex = Section - LC_PIECE_SECTION_CONTROL_POINT_FIRST; const quint32 ControlPointIndex = Section - LC_PIECE_SECTION_CONTROL_POINT_FIRST;

View file

@ -2033,7 +2033,7 @@ bool Project::ExportPOVRay(const QString& FileName)
" #elseif (Type = AreaLight)\n" " #elseif (Type = AreaLight)\n"
" area_light AreaWidth, AreaHeight, AreaRows, AreaColumns\n" " area_light AreaWidth, AreaHeight, AreaRows, AreaColumns\n"
" jitter\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" " circular \n"
" #if (AreaWidth = AreaHeight & AreaRows = AreaColumns)\n" " #if (AreaWidth = AreaHeight & AreaRows = AreaColumns)\n"
" orient\n" " orient\n"