src/gui_actions.cpp

changeset 485
543a6696096f
parent 484
5b5c77c7f3dd
child 492
e964085e6913
equal deleted inserted replaced
484:5b5c77c7f3dd 485:543a6696096f
86 86
87 const str license = 87 const str license =
88 ui.rb_license_ca->isChecked() ? CALicense : 88 ui.rb_license_ca->isChecked() ? CALicense :
89 ui.rb_license_nonca->isChecked() ? NonCALicense : ""; 89 ui.rb_license_nonca->isChecked() ? NonCALicense : "";
90 90
91 LDFile::current()->addObjects ({new LDComment (ui.le_title->text()), 91 LDFile::current()->addObjects ({
92 new LDComment (ui.le_title->text()),
92 new LDComment ("Name: <untitled>.dat" ), 93 new LDComment ("Name: <untitled>.dat" ),
93 new LDComment (fmt ("Author: %1", ui.le_author->text())), 94 new LDComment (fmt ("Author: %1", ui.le_author->text())),
94 new LDComment (fmt ("!LDRAW_ORG Unofficial_Part")), 95 new LDComment (fmt ("!LDRAW_ORG Unofficial_Part")),
95 (license != "" ? 96 (license != "" ?
96 new LDComment (license) : 97 new LDComment (license) :

mercurial