| 10 | namespace QodeAssist::Settings { |
| 11 | |
| 12 | SectionBox::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 |
nothing calls this directly
no outgoing calls
no test coverage detected