| 538 | } |
| 539 | |
| 540 | void UiController::addNewToolView(MainWindow *mw, QListWidgetItem* item) |
| 541 | { |
| 542 | Q_D(UiController); |
| 543 | |
| 544 | auto *current = static_cast<ViewSelectorItem*>(item); |
| 545 | Sublime::ToolDocument *doc = d->factoryDocuments[current->factory]; |
| 546 | Sublime::View *view = doc->createView(); |
| 547 | mw->area()->addToolView(view, |
| 548 | Sublime::dockAreaToPosition(current->factory->defaultPosition())); |
| 549 | current->factory->viewCreated(view); |
| 550 | } |
| 551 | |
| 552 | void UiController::showSettingsDialog() |
| 553 | { |
nothing calls this directly
no test coverage detected