Skip to content

Commit

Permalink
Whitespace fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
leozide committed Dec 19, 2024
1 parent 71c154b commit 6ab237f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions common/lc_blenderpreferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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"))
{
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion common/lc_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion common/lc_instructionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion common/lc_modellistdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
ui->ModelList->addItem(Item);

if (Model.get() == ActiveModel )
if (Model.get() == ActiveModel)
ActiveModelIndex = ui->ModelList->count() - 1;
}

Expand Down
2 changes: 1 addition & 1 deletion common/lc_propertieswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<lcObject*>{ mFocusObject } : mSelection, PropertyId, Value);
}
Expand Down
2 changes: 1 addition & 1 deletion common/piece.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion common/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6ab237f

Please sign in to comment.