mirror of
https://github.com/leozide/leocad
synced 2024-12-25 21:58:23 +01:00
Whitespace fixes.
This commit is contained in:
parent
71c154bcaa
commit
6ab237f50a
7 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue