15 #include <QVBoxLayout> 26 this->setFocusPolicy(Qt::StrongFocus);
27 this->setObjectName(mObjectName);
28 this->setWindowTitle(mWindowTitle);
33 QWidget* retval =
new QWidget(
this);
34 QVBoxLayout* toplayout =
new QVBoxLayout(retval);
35 QGridLayout* layout =
new QGridLayout();
36 toplayout->addLayout(layout);
37 toplayout->addStretch();
39 QLabel* methodLabel =
new QLabel(
"<b>" + methodname +
"</b>");
40 QCheckBox* checkBox =
new QCheckBox(
"generate");
42 inputWidget->setVisible(inputChecked);
43 outputWidget->setVisible(outputVisible);
44 connect(checkBox, SIGNAL(clicked(
bool)), inputWidget, SLOT(setVisible(
bool)));
46 layout->addWidget(methodLabel, 0, 0);
47 layout->addWidget(checkBox, 0, 1);
48 layout->addWidget(inputWidget, 1, 0, 1, 2);
49 layout->addWidget(outputWidget, 2, 0, 1, 2);
56 QGroupBox* retval =
new QGroupBox(
this);
57 QVBoxLayout* toplayout =
new QVBoxLayout(retval);
59 QLabel* nameLabel =
new QLabel(boxname);
60 toplayout->addWidget(nameLabel);
61 toplayout->addWidget(widget);
68 QFrame* retval =
new QFrame();
69 retval->setFrameStyle(QFrame::Sunken + QFrame::HLine);
76 QVBoxLayout* layout =
new QVBoxLayout(frame);
78 layout->addWidget(base);
84 QGroupBox* groupBox =
new QGroupBox(name);
85 QVBoxLayout* layout =
new QVBoxLayout(groupBox);
87 layout->addWidget(base);
93 this->parentWidget()->adjustSize();
99 QWidget::showEvent(event);
Namespace for all CustusX production code.