| 164 | } |
| 165 | |
| 166 | void ScriptManagerWidget::treeItemActivated(QTreeWidgetItem * item, int /*column*/) |
| 167 | { |
| 168 | if (item->type() == kScriptType) { |
| 169 | Tw::Scripting::ScriptObject * so = static_cast<Tw::Scripting::ScriptObject*>(item->data(0, Qt::UserRole).value<void*>()); |
| 170 | if (so) |
| 171 | QDesktopServices::openUrl(QUrl::fromLocalFile(so->getFilename())); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | void ScriptManagerWidget::treeSelectionChanged() |
| 176 | { |
nothing calls this directly
no test coverage detected