Changeset View
Changeset View
Standalone View
Standalone View
src/ViewManager.cpp
Show First 20 Lines • Show All 643 Lines • ▼ Show 20 Line(s) | 617 | { | |||
---|---|---|---|---|---|
644 | connect(container, &Konsole::TabbedViewContainer::viewRemoved, this, | 644 | connect(container, &Konsole::TabbedViewContainer::viewRemoved, this, | ||
645 | &Konsole::ViewManager::viewDestroyed); | 645 | &Konsole::ViewManager::viewDestroyed); | ||
646 | connect(container, &Konsole::TabbedViewContainer::activeViewChanged, this, | 646 | connect(container, &Konsole::TabbedViewContainer::activeViewChanged, this, | ||
647 | &Konsole::ViewManager::viewActivated); | 647 | &Konsole::ViewManager::viewActivated); | ||
648 | 648 | | |||
649 | return container; | 649 | return container; | ||
650 | } | 650 | } | ||
651 | 651 | | |||
652 | void ViewManager::containerMoveViewRequest(int index, int id, bool &success, | 652 | void ViewManager::containerMoveViewRequest(int index, int id, | ||
lbergdoll: Return value? | |||||
lbergdoll: Nvm, somehow confused sides. | |||||
653 | TabbedViewContainer *sourceTabbedContainer) | 653 | TabbedViewContainer *sourceTabbedContainer) | ||
654 | { | 654 | { | ||
655 | TabbedViewContainer *container = qobject_cast<TabbedViewContainer *>(sender()); | 655 | TabbedViewContainer *container = qobject_cast<TabbedViewContainer *>(sender()); | ||
656 | SessionController *controller = qobject_cast<SessionController *>(ViewProperties::propertiesById(id)); | 656 | SessionController *controller = qobject_cast<SessionController *>(ViewProperties::propertiesById(id)); | ||
657 | 657 | | |||
658 | if (controller == nullptr) { | 658 | if (controller == nullptr) { | ||
659 | return; | 659 | return; | ||
660 | } | 660 | } | ||
Show All 11 Lines | 668 | } else { | |||
672 | if (qobject_cast<ViewSplitter *>(sourceViewManager->widget())->containers().size() > 1) { | 672 | if (qobject_cast<ViewSplitter *>(sourceViewManager->widget())->containers().size() > 1) { | ||
673 | return; | 673 | return; | ||
674 | } | 674 | } | ||
675 | } | 675 | } | ||
676 | } | 676 | } | ||
677 | 677 | | |||
678 | createView(controller->session(), container, index); | 678 | createView(controller->session(), container, index); | ||
679 | controller->session()->refresh(); | 679 | controller->session()->refresh(); | ||
680 | success = true; | | |||
681 | } | 680 | } | ||
682 | 681 | | |||
683 | void ViewManager::setNavigationMethod(NavigationMethod method) | 682 | void ViewManager::setNavigationMethod(NavigationMethod method) | ||
684 | { | 683 | { | ||
685 | Q_ASSERT(_actionCollection); | 684 | Q_ASSERT(_actionCollection); | ||
686 | if (_actionCollection == nullptr) { | 685 | if (_actionCollection == nullptr) { | ||
687 | return; | 686 | return; | ||
688 | } | 687 | } | ||
▲ Show 20 Lines • Show All 434 Lines • Show Last 20 Lines |
Return value?