-
Task
-
Resolution: Done
-
P1: Critical
-
None
-
None
-
cc997e664ab6cd9e6551ec8228d1585d2a46a3d2
The XML manifests for demos, examples and tutorials should contain the relevant file that Qt Creator should open the main filein its text editor. For that, a <fileToOpen> tag can describe the file to open (e.g. main.cpp, main.qml, project.cpp). If more more than one file is interesting, specifying this tag multiple times will cause creator to open all specified files. This probably needs a new qdoc command.
<?xml version="1.0" encoding="utf-8"?> <instructionals module="Qt"> <demos> <demo imageUrl="%REPLACEME%/images/qml-samegame-demo.png" difficulty="" docUrl="%REPLACEME%/demos-declarative-samegame.html" projectPath="declarative/samegame/samegame.qmlproject" name="SameGame"> <description><![CDATA[This demo shows how to write a 'Same Game' game in QML, using Javascript for all the game logic.]]></description> <tags>demo,declarative,samegame,qml,qt quick</tags> <fileToOpen>main.cpp</fileToOpen> <fileToOpen>main.qml</fileToOpen> </demo> </demos> </instructionals>