MCPcopy Create free account
hub / github.com/KDE/kdevelop / MainWindow

Method MainWindow

kdevplatform/shell/ktexteditorpluginintegration.cpp:452–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452MainWindow::MainWindow(KDevelop::MainWindow *mainWindow)
453 : QObject(mainWindow)
454 , m_mainWindow(mainWindow)
455 , m_interface(new KTextEditor::MainWindow(this))
456{
457 connect(mainWindow, &Sublime::MainWindow::viewAdded, this, [this] (Sublime::View *view) {
458 if (auto kteView = toKteView(view)) {
459 emit m_interface->viewCreated(kteView);
460 }
461 });
462 connect(mainWindow, &Sublime::MainWindow::activeViewChanged, this, [this] (Sublime::View *view) {
463 auto kteView = toKteView(view);
464 emit m_interface->viewChanged(kteView);
465
466 if (auto viewBar = m_viewBars.value(kteView)) {
467 m_mainWindow->viewBarContainer()->setCurrentViewBar(viewBar);
468 }
469 });
470}
471
472MainWindow::~MainWindow() = default;
473

Callers

nothing calls this directly

Calls 4

toKteViewFunction · 0.85
setCurrentViewBarMethod · 0.80
viewBarContainerMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected