36 #include <QVBoxLayout>
49 this->setFocusPolicy(Qt::StrongFocus);
50 this->setObjectName(mObjectName);
51 this->setWindowTitle(mWindowTitle);
56 QWidget* retval =
new QWidget(
this);
57 QVBoxLayout* toplayout =
new QVBoxLayout(retval);
58 QGridLayout* layout =
new QGridLayout();
59 toplayout->addLayout(layout);
60 toplayout->addStretch();
62 QLabel* methodLabel =
new QLabel(
"<b>" + methodname +
"</b>");
63 QCheckBox* checkBox =
new QCheckBox(
"generate");
65 inputWidget->setVisible(inputChecked);
66 outputWidget->setVisible(outputVisible);
67 connect(checkBox, SIGNAL(clicked(
bool)), inputWidget, SLOT(setVisible(
bool)));
69 layout->addWidget(methodLabel, 0, 0);
70 layout->addWidget(checkBox, 0, 1);
71 layout->addWidget(inputWidget, 1, 0, 1, 2);
72 layout->addWidget(outputWidget, 2, 0, 1, 2);
79 QGroupBox* retval =
new QGroupBox(
this);
80 QVBoxLayout* toplayout =
new QVBoxLayout(retval);
82 QLabel* nameLabel =
new QLabel(boxname);
83 toplayout->addWidget(nameLabel);
84 toplayout->addWidget(widget);
91 QFrame* retval =
new QFrame();
92 retval->setFrameStyle(QFrame::Sunken + QFrame::HLine);
99 QVBoxLayout* layout =
new QVBoxLayout(frame);
100 layout->setMargin(0);
101 layout->addWidget(base);
107 QGroupBox* groupBox =
new QGroupBox(name);
108 QVBoxLayout* layout =
new QVBoxLayout(groupBox);
109 layout->setMargin(2);
110 layout->addWidget(base);
116 this->parentWidget()->adjustSize();
123 QWidget::showEvent(event);