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);
31 name->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
33 layout->addWidget(name, 0);
34 layout->addStretch(1);
36 QCheckBox* checkbox =
new QCheckBox();
37 checkbox->setFixedWidth(20);
38 layout->addWidget(checkbox, 0);
42 checkbox->setChecked(
true);
46 checkbox->setChecked(
false);
50 connect(checkbox, SIGNAL(stateChanged(
int)),
this, SLOT(
tagAsOuput(
int)));