MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / SectionBox

Method SectionBox

settings/SectionBox.cpp:12–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace QodeAssist::Settings {
11
12SectionBox::SectionBox(const QString &title, QWidget *parent)
13 : QWidget(parent)
14{
15 m_title = new QLabel(title, this);
16 QFont tf = m_title->font();
17 tf.setBold(true);
18 m_title->setFont(tf);
19
20 m_body = new QWidget(this);
21 m_bodyLayout = new QVBoxLayout(m_body);
22 m_bodyLayout->setContentsMargins(0, 0, 0, 0);
23 m_bodyLayout->setSpacing(4);
24
25 auto *outer = new QVBoxLayout(this);
26 outer->setContentsMargins(0, 4, 0, 4);
27 outer->setSpacing(4);
28 outer->addWidget(m_title);
29 outer->addWidget(m_body, 1);
30}
31
32} // namespace QodeAssist::Settings

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected