| 773 | } |
| 774 | |
| 775 | Sublime::View* UiController::addToolViewToArea(IToolViewFactory* factory, |
| 776 | Sublime::ToolDocument* doc, |
| 777 | Sublime::Area* area, Sublime::Position p) |
| 778 | { |
| 779 | Sublime::View* view = doc->createView(); |
| 780 | area->addToolView( |
| 781 | view, |
| 782 | p == Sublime::AllPositions ? Sublime::dockAreaToPosition(factory->defaultPosition()) : p); |
| 783 | |
| 784 | connect(view, &Sublime::View::raise, |
| 785 | this, static_cast<void (UiController::*)(Sublime::View*)>(&UiController::raiseToolView)); |
| 786 | |
| 787 | factory->viewCreated(view); |
| 788 | return view; |
| 789 | } |
| 790 | |
| 791 | void UiController::registerStatus(QObject* status) |
| 792 | { |
nothing calls this directly
no test coverage detected