77 theClassCombo =
new QComboBox(
this);
78 QToolButton* button =
new QToolButton(
this);
80 QDialogButtonBox* buttonBox =
new QDialogButtonBox(
this);
82 connect(button, SIGNAL(clicked()),
this, SLOT(createAndControl()));
83 connect(buttonBox, SIGNAL(rejected()),
this, SLOT(reject()));
85 button->setText(tr(
"Create And Control"));
86 buttonBox->setStandardButtons(QDialogButtonBox::Close);
88 QVBoxLayout* layout =
new QVBoxLayout(
this);
89 QHBoxLayout* internalLayout =
new QHBoxLayout();
90 internalLayout->addWidget(theClassCombo);
91 internalLayout->addWidget(button);
92 layout->addLayout(internalLayout);
93 layout->addWidget(theController);
94 layout->addWidget(buttonBox);
96 theClassNames.append(QLatin1String(
"QWidget"));
97 theClassNames.append(QLatin1String(
"QPushButton"));
98 theClassNames.append(QLatin1String(
"QDialogButtonBox"));
99 theClassNames.append(QLatin1String(
"QTreeWidget"));
100 theClassNames.append(QLatin1String(
"QCalendarWidget"));
101 theClassNames.append(QLatin1String(
"QAction"));
102 theClassNames.append(QLatin1String(
"QTimeLine"));
103 theClassNames.append(QLatin1String(
"QTextDocument"));
105 theClassCombo->addItems(theClassNames);