12 #include <QtCore/QVariant>
13 #include <QtGui/QAction>
14 #include <QtGui/QApplication>
15 #include <QtGui/QButtonGroup>
16 #include <QtGui/QDialog>
17 #include <QtGui/QFrame>
18 #include <QtGui/QGridLayout>
19 #include <QtGui/QHeaderView>
20 #include <QtGui/QPushButton>
21 #include <QtGui/QSpacerItem>
28 QGridLayout *gridLayout;
29 QSpacerItem *horizontalSpacer;
30 QPushButton *okButton;
31 QPushButton *applyButton;
32 QPushButton *cancelButton;
35 void setupUi(QDialog *Dialog)
37 if (Dialog->objectName().isEmpty())
38 Dialog->setObjectName(QString::fromUtf8(
"Dialog"));
39 Dialog->resize(309, 66);
40 gridLayout =
new QGridLayout(Dialog);
41 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
42 horizontalSpacer =
new QSpacerItem(4, 29, QSizePolicy::Expanding, QSizePolicy::Minimum);
44 gridLayout->addItem(horizontalSpacer, 1, 0, 1, 1);
46 okButton =
new QPushButton(Dialog);
47 okButton->setObjectName(QString::fromUtf8(
"okButton"));
49 icon.addFile(QString::fromUtf8(
":/icons/button_apply.png"), QSize(), QIcon::Normal, QIcon::Off);
50 okButton->setIcon(icon);
52 gridLayout->addWidget(okButton, 1, 1, 1, 1);
54 applyButton =
new QPushButton(Dialog);
55 applyButton->setObjectName(QString::fromUtf8(
"applyButton"));
56 applyButton->setIcon(icon);
58 gridLayout->addWidget(applyButton, 1, 2, 1, 1);
60 cancelButton =
new QPushButton(Dialog);
61 cancelButton->setObjectName(QString::fromUtf8(
"cancelButton"));
63 icon1.addFile(QString::fromUtf8(
":/icons/button_cancel.png"), QSize(), QIcon::Normal, QIcon::Off);
64 cancelButton->setIcon(icon1);
66 gridLayout->addWidget(cancelButton, 1, 3, 1, 1);
68 mainFrame =
new QFrame(Dialog);
69 mainFrame->setObjectName(QString::fromUtf8(
"mainFrame"));
70 mainFrame->setFrameShape(QFrame::StyledPanel);
71 mainFrame->setFrameShadow(QFrame::Raised);
73 gridLayout->addWidget(mainFrame, 0, 0, 1, 4);
76 retranslateUi(Dialog);
78 QMetaObject::connectSlotsByName(Dialog);
81 void retranslateUi(QDialog *Dialog)
83 Dialog->setWindowTitle(QApplication::translate(
"Dialog",
"Dialog", 0, QApplication::UnicodeUTF8));
84 okButton->setText(QApplication::translate(
"Dialog",
"OK", 0, QApplication::UnicodeUTF8));
85 applyButton->setText(QApplication::translate(
"Dialog",
"Apply", 0, QApplication::UnicodeUTF8));
86 cancelButton->setText(QApplication::translate(
"Dialog",
"Cancel", 0, QApplication::UnicodeUTF8));
Definition: ui_dialog.h:25
Definition: ui_dialog.h:92