36 #include <QVBoxLayout> 47 this->setFocusPolicy(Qt::StrongFocus);
48 this->setObjectName(mObjectName);
49 this->setWindowTitle(mWindowTitle);
54 QWidget* retval =
new QWidget(
this);
55 QVBoxLayout* toplayout =
new QVBoxLayout(retval);
56 QGridLayout* layout =
new QGridLayout();
57 toplayout->addLayout(layout);
58 toplayout->addStretch();
60 QLabel* methodLabel =
new QLabel(
"<b>" + methodname +
"</b>");
61 QCheckBox* checkBox =
new QCheckBox(
"generate");
63 inputWidget->setVisible(inputChecked);
64 outputWidget->setVisible(outputVisible);
65 connect(checkBox, SIGNAL(clicked(
bool)), inputWidget, SLOT(setVisible(
bool)));
67 layout->addWidget(methodLabel, 0, 0);
68 layout->addWidget(checkBox, 0, 1);
69 layout->addWidget(inputWidget, 1, 0, 1, 2);
70 layout->addWidget(outputWidget, 2, 0, 1, 2);
77 QGroupBox* retval =
new QGroupBox(
this);
78 QVBoxLayout* toplayout =
new QVBoxLayout(retval);
80 QLabel* nameLabel =
new QLabel(boxname);
81 toplayout->addWidget(nameLabel);
82 toplayout->addWidget(widget);
89 QFrame* retval =
new QFrame();
90 retval->setFrameStyle(QFrame::Sunken + QFrame::HLine);
97 QVBoxLayout* layout =
new QVBoxLayout(frame);
99 layout->addWidget(base);
105 QGroupBox* groupBox =
new QGroupBox(name);
106 QVBoxLayout* layout =
new QVBoxLayout(groupBox);
107 layout->setMargin(2);
108 layout->addWidget(base);
114 this->parentWidget()->adjustSize();
120 QWidget::showEvent(event);
Namespace for all CustusX production code.