Changeset View
Changeset View
Standalone View
Standalone View
src/Part.cpp
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Line(s) | 65 | connect(_viewManager, &Konsole::ViewManager::activeViewChanged, this, | |||
---|---|---|---|---|---|
66 | &Konsole::Part::activeViewChanged); | 66 | &Konsole::Part::activeViewChanged); | ||
67 | connect(_viewManager, &Konsole::ViewManager::empty, this, &Konsole::Part::terminalExited); | 67 | connect(_viewManager, &Konsole::ViewManager::empty, this, &Konsole::Part::terminalExited); | ||
68 | connect(_viewManager, &Konsole::ViewManager::newViewRequest, this, &Konsole::Part::newTab); | 68 | connect(_viewManager, &Konsole::ViewManager::newViewRequest, this, &Konsole::Part::newTab); | ||
69 | 69 | | |||
70 | _viewManager->widget()->setParent(parentWidget); | 70 | _viewManager->widget()->setParent(parentWidget); | ||
71 | 71 | | |||
72 | setWidget(_viewManager->widget()); | 72 | setWidget(_viewManager->widget()); | ||
73 | actionCollection()->addAssociatedWidget(_viewManager->widget()); | 73 | actionCollection()->addAssociatedWidget(_viewManager->widget()); | ||
74 | foreach (QAction *action, actionCollection()->actions()) { | 74 | for (auto *action : actionCollection()->actions()) { | ||
75 | action->setShortcutContext(Qt::WidgetWithChildrenShortcut); | 75 | action->setShortcutContext(Qt::WidgetWithChildrenShortcut); | ||
76 | } | 76 | } | ||
77 | 77 | | |||
78 | // Enable translucency support. | 78 | // Enable translucency support. | ||
79 | _viewManager->widget()->setAttribute(Qt::WA_TranslucentBackground, true); | 79 | _viewManager->widget()->setAttribute(Qt::WA_TranslucentBackground, true); | ||
80 | 80 | | |||
81 | // create basic session | 81 | // create basic session | ||
82 | createSession(); | 82 | createSession(); | ||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |