For templates which based display on variables filled by options,
the preview showed empty spots, making the templates look broken.
Adding the vars from the options with the default values fixes this.
Details
Details
Diff Detail
Diff Detail
- Repository
- R33 KDevPlatform
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Hard to show by one single screenshot, there are many small issues across many templates :)
It is all places in templates where output based on options is done, like {{ interfaceid }} or {% if testCase_initAndCleanup %}foo{% endif %}. With all those vars evaluating to null the templates look empty or partially broken.
By example of Qt test suite template, "Implementation" file preview content.
With patch:
/* * This file is licensed under the ExampleLicense 3.0 */ #include "Example.h" #include <QtTest> QTEST_MAIN(Example); void Example::initTestCase() { // Called before the first testfunction is executed } void Example::cleanupTestCase() { // Called after the last testfunction was executed } void Example::init() { // Called before each testfunction is executed } void Example::cleanup() { // Called after every testfunction } void Example::doFoo() { } void Example::doBar() { } void Example::doMore() { }
Without:
/* * This file is licensed under the ExampleLicense 3.0 */ #include "Example.h" #include <QtTest> (Example); void Example::doFoo() { } void Example::doBar() { } void Example::doMore() { }