MCPcopy Create free account
hub / github.com/KDE/kate / createMainViews

Method createMainViews

addons/compiler-explorer/ce_widget.cpp:356–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void CEWidget::createMainViews(QVBoxLayout *mainLayout)
357{
358 if (!doc) {
359 return;
360 }
361
362 auto *splitter = new QSplitter(this);
363
364 m_textEditor = doc->createView(this, m_mainWindow);
365
366 m_asmView->setModel(m_model);
367
368 addExtraActionstoTextEditor();
369 m_textEditor->installEventFilter(this);
370 m_textEditor->focusProxy()->installEventFilter(this);
371
372 splitter->addWidget(m_textEditor);
373 splitter->addWidget(m_asmView);
374 splitter->setSizes({INT_MAX, INT_MAX});
375
376 mainLayout->addWidget(splitter);
377}
378
379QString CEWidget::currentCompiler() const
380{

Callers

nothing calls this directly

Calls 3

createViewMethod · 0.45
setModelMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected