| 85 | } |
| 86 | |
| 87 | void ScriptManagerWidget::populateTree() |
| 88 | { |
| 89 | TWScriptManager * scriptManager = TWApp::instance()->getScriptManager(); |
| 90 | TWScriptList * scripts = scriptManager->getScripts(); |
| 91 | TWScriptList * hooks = scriptManager->getHookScripts(); |
| 92 | |
| 93 | hookTree->clear(); |
| 94 | standaloneTree->clear(); |
| 95 | |
| 96 | populateTree(hookTree, nullptr, hooks); |
| 97 | populateTree(standaloneTree, nullptr, scripts); |
| 98 | |
| 99 | hookTree->expandAll(); |
| 100 | standaloneTree->expandAll(); |
| 101 | } |
| 102 | |
| 103 | #define kScriptType (QTreeWidgetItem::UserType + 1) |
| 104 | #define kFolderType (QTreeWidgetItem::UserType + 2) |
no test coverage detected