src/dialogs/newpartdialog.cpp

changeset 1217
314e12e23c3a
parent 1215
77a0270352a3
child 1222
34def2630300
--- a/src/dialogs/newpartdialog.cpp	Thu Jan 04 19:40:52 2018 +0200
+++ b/src/dialogs/newpartdialog.cpp	Thu Jan 04 19:44:26 2018 +0200
@@ -24,20 +24,20 @@
 #include "newpartdialog.h"
 #include "ui_newpartdialog.h"
 
-NewPartDialog::NewPartDialog (QWidget *parent) :
-	QDialog (parent),
-	HierarchyElement (parent),
-	ui (*new Ui_NewPart)
+NewPartDialog::NewPartDialog(QWidget *parent) :
+	QDialog(parent),
+	HierarchyElement(parent),
+	ui(*new Ui_NewPart)
 {
-	ui.setupUi (this);
+	ui.setupUi(this);
 
 	QString authortext = config.defaultName();
 
 	if (not config.defaultUser().isEmpty())
-		authortext.append (format (" [%1]", config.defaultUser()));
+		authortext.append(format(" [%1]", config.defaultUser()));
 
-	ui.author->setText (authortext);
-	ui.useCaLicense->setChecked (config.useCaLicense());
+	ui.author->setText(authortext);
+	ui.useCaLicense->setChecked(config.useCaLicense());
 }
 
 BfcStatement NewPartDialog::getWinding() const
@@ -66,19 +66,19 @@
 	return ui.title->text();
 }
 
-void NewPartDialog::fillHeader (LDDocument* newdoc) const
+void NewPartDialog::fillHeader(LDDocument* newdoc) const
 {
 	LDObjectList objs;
-	objs << new LDComment (title());
-	objs << new LDComment ("Name: <untitled>.dat");
-	objs << new LDComment ("Author: " + author());
-	objs << new LDComment ("!LDRAW_ORG Unofficial_Part");
+	objs << new LDComment(title());
+	objs << new LDComment("Name: <untitled>.dat");
+	objs << new LDComment("Author: " + author());
+	objs << new LDComment("!LDRAW_ORG Unofficial_Part");
 
 	if (useCaLicense())
-		objs << new LDComment (CALicenseText);
+		objs << new LDComment(CALicenseText);
 	
 	objs << new LDEmpty();
-	objs << new LDBfc (getWinding());
+	objs << new LDBfc(getWinding());
 	objs << new LDEmpty();
-	newdoc->addObjects (objs);
+	newdoc->addObjects(objs);
 }

mercurial