23 QHBoxLayout* layout =
new QHBoxLayout;
24 layout->setContentsMargins(0, 0, 0, 0);
25 layout->setSpacing(0);
27 this->setLayout(layout);
29 QLabel* name =
new QLabel();
30 name->setFixedHeight(24);
32 QCheckBox* checkbox =
new QCheckBox();
33 checkbox->setFixedWidth(20);
35 layout->addWidget(name, 0);
36 layout->addStretch(1);
37 layout->addWidget(checkbox, 0);
41 connect(checkbox, SIGNAL(stateChanged(
int)),
this, SLOT(
updateField(
int)));