Last active
August 29, 2015 13:56
-
-
Save Kakadu/8935147 to your computer and use it in GitHub Desktop.
The 2nd variant is 100% correct implementation. But it introduces dummy identifier which creation I want ot avoid. 1st peice of code is about avoiding it. I dont introduce variable there, I set property value to VisualListItem explicitly. It seems to work correctly but QtCreator's syntax highlighter doesn't understand it as expected. Am I missin…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Item { | |
property variant forestQuest1: _forestQuest1 | |
Rectangle { | |
id: _forestQuest1 | |
property variant choices: VisualItemModel { | |
id: _forest1_choices | |
QuestButton { ... } | |
QuestButton { ... } | |
} | |
function isAvailable() { ... } | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Item { | |
property variant forestQuest1: _forestQuest1 | |
Rectangle { | |
id: _forestQuest1 | |
property variant choices: _dummyid | |
VisualItemModel { | |
id: _dummyid | |
QuestButton { ... } | |
QuestButton { ... } | |
} | |
function isAvailable() { ... } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment