Skip to content

Commit c30ec36

Browse files
committed
Fix some project view new project annoyances. Enable 32bit doubles, enable Wall, give templates 2 space indents.
1 parent 438883d commit c30ec36

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

propside/mainspinwindow.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ void MainSpinWindow::newProject()
13341334
" */\n" \
13351335
"int main(void)\n" \
13361336
"{\n" \
1337-
" return 0;\n" \
1337+
" return 0;\n" \
13381338
"}\n" \
13391339
"\n");
13401340
mainstr = main;
@@ -1345,15 +1345,15 @@ void MainSpinWindow::newProject()
13451345
" */\n" \
13461346
"int main(void)\n" \
13471347
"{\n" \
1348-
" return 0;\n" \
1348+
" return 0;\n" \
13491349
"}\n" \
13501350
"\n");
13511351
mainstr = main;
13521352
}
13531353
else if(ftype.endsWith(".spin")) {
13541354
QString main("pub main\n" \
13551355
"\n" \
1356-
" repeat\n" \
1356+
" repeat\n" \
13571357
"\n" \
13581358
"\n");
13591359
mainstr = main;
@@ -1388,6 +1388,10 @@ void MainSpinWindow::newProject()
13881388
projectOptions->setCompiler(comp);
13891389
qDebug() << "Set Memory Model: CMM";
13901390
projectOptions->setMemModel(projectOptions->memTypeCMM);
1391+
qDebug() << "Set All Warnings: " + comp;
1392+
projectOptions->setWarnAll(true);
1393+
qDebug() << "Set 32bit Doubles: " + comp;
1394+
projectOptions->set32bitDoubles(true);
13911395

13921396
// board type GENERIC for simpleview
13931397
for(int n = 0; n < cbBoard->count(); n++) {
@@ -1914,6 +1918,7 @@ int MainSpinWindow::copyProjectAs(QString srcProjFile, QString dstProjFile, QStr
19141918
* fixes up any links in project file and writes file
19151919
*
19161920
*/
1921+
19171922
int MainSpinWindow::saveAsProject(const QString &inputProjFile)
19181923
{
19191924
int rc = 0;

0 commit comments

Comments
 (0)