qt5base-lts/tests/auto/tools/uic/baseline/pagefold.ui.h
Friedemann Kleint 24d1565789 uic: Use the Qt configure system when generating code
Replace the generation of #ifdef's for the macros by QT_CONFIG
checks. Implement it using streamable classes to make it easier
to switch the output language later.

Task-number: PYSIDE-797
Change-Id: I28b5ed3ec80cd525a3df0cd54d9be4f09149cde4
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2018-11-13 18:53:12 +00:00

334 lines
14 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'pagefold.ui'
**
** Created by: Qt User Interface Compiler version 5.10.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef PAGEFOLD_H
#define PAGEFOLD_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialogButtonBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenu>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QAction *exitAction;
QAction *aboutQtAction;
QAction *editStyleAction;
QAction *aboutAction;
QWidget *centralwidget;
QVBoxLayout *vboxLayout;
QFrame *mainFrame;
QGridLayout *gridLayout;
QComboBox *nameCombo;
QSpacerItem *spacerItem;
QRadioButton *femaleRadioButton;
QLabel *genderLabel;
QLabel *ageLabel;
QRadioButton *maleRadioButton;
QLabel *nameLabel;
QLabel *passwordLabel;
QSpinBox *ageSpinBox;
QDialogButtonBox *buttonBox;
QCheckBox *agreeCheckBox;
QLineEdit *passwordEdit;
QListWidget *professionList;
QLabel *label;
QComboBox *countryCombo;
QLabel *countryLabel;
QMenuBar *menubar;
QMenu *menu_File;
QMenu *menu_Help;
QStatusBar *statusbar;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
MainWindow->resize(392, 412);
exitAction = new QAction(MainWindow);
exitAction->setObjectName(QString::fromUtf8("exitAction"));
aboutQtAction = new QAction(MainWindow);
aboutQtAction->setObjectName(QString::fromUtf8("aboutQtAction"));
editStyleAction = new QAction(MainWindow);
editStyleAction->setObjectName(QString::fromUtf8("editStyleAction"));
aboutAction = new QAction(MainWindow);
aboutAction->setObjectName(QString::fromUtf8("aboutAction"));
centralwidget = new QWidget(MainWindow);
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
vboxLayout = new QVBoxLayout(centralwidget);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
mainFrame = new QFrame(centralwidget);
mainFrame->setObjectName(QString::fromUtf8("mainFrame"));
mainFrame->setFrameShape(QFrame::StyledPanel);
mainFrame->setFrameShadow(QFrame::Raised);
gridLayout = new QGridLayout(mainFrame);
#ifndef Q_OS_MAC
gridLayout->setSpacing(6);
#endif
#ifndef Q_OS_MAC
gridLayout->setContentsMargins(9, 9, 9, 9);
#endif
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
nameCombo = new QComboBox(mainFrame);
nameCombo->addItem(QString());
nameCombo->addItem(QString());
nameCombo->addItem(QString());
nameCombo->addItem(QString());
nameCombo->setObjectName(QString::fromUtf8("nameCombo"));
nameCombo->setEditable(true);
gridLayout->addWidget(nameCombo, 0, 1, 1, 3);
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(spacerItem, 1, 3, 1, 1);
femaleRadioButton = new QRadioButton(mainFrame);
femaleRadioButton->setObjectName(QString::fromUtf8("femaleRadioButton"));
gridLayout->addWidget(femaleRadioButton, 1, 2, 1, 1);
genderLabel = new QLabel(mainFrame);
genderLabel->setObjectName(QString::fromUtf8("genderLabel"));
gridLayout->addWidget(genderLabel, 1, 0, 1, 1);
ageLabel = new QLabel(mainFrame);
ageLabel->setObjectName(QString::fromUtf8("ageLabel"));
gridLayout->addWidget(ageLabel, 2, 0, 1, 1);
maleRadioButton = new QRadioButton(mainFrame);
maleRadioButton->setObjectName(QString::fromUtf8("maleRadioButton"));
gridLayout->addWidget(maleRadioButton, 1, 1, 1, 1);
nameLabel = new QLabel(mainFrame);
nameLabel->setObjectName(QString::fromUtf8("nameLabel"));
gridLayout->addWidget(nameLabel, 0, 0, 1, 1);
passwordLabel = new QLabel(mainFrame);
passwordLabel->setObjectName(QString::fromUtf8("passwordLabel"));
gridLayout->addWidget(passwordLabel, 3, 0, 1, 1);
ageSpinBox = new QSpinBox(mainFrame);
ageSpinBox->setObjectName(QString::fromUtf8("ageSpinBox"));
ageSpinBox->setMinimum(12);
ageSpinBox->setValue(22);
gridLayout->addWidget(ageSpinBox, 2, 1, 1, 3);
buttonBox = new QDialogButtonBox(mainFrame);
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
gridLayout->addWidget(buttonBox, 7, 2, 1, 2);
agreeCheckBox = new QCheckBox(mainFrame);
agreeCheckBox->setObjectName(QString::fromUtf8("agreeCheckBox"));
gridLayout->addWidget(agreeCheckBox, 6, 0, 1, 4);
passwordEdit = new QLineEdit(mainFrame);
passwordEdit->setObjectName(QString::fromUtf8("passwordEdit"));
passwordEdit->setEchoMode(QLineEdit::Password);
gridLayout->addWidget(passwordEdit, 3, 1, 1, 3);
professionList = new QListWidget(mainFrame);
new QListWidgetItem(professionList);
new QListWidgetItem(professionList);
new QListWidgetItem(professionList);
professionList->setObjectName(QString::fromUtf8("professionList"));
gridLayout->addWidget(professionList, 5, 1, 1, 3);
label = new QLabel(mainFrame);
label->setObjectName(QString::fromUtf8("label"));
gridLayout->addWidget(label, 5, 0, 1, 1);
countryCombo = new QComboBox(mainFrame);
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->addItem(QString());
countryCombo->setObjectName(QString::fromUtf8("countryCombo"));
gridLayout->addWidget(countryCombo, 4, 1, 1, 3);
countryLabel = new QLabel(mainFrame);
countryLabel->setObjectName(QString::fromUtf8("countryLabel"));
gridLayout->addWidget(countryLabel, 4, 0, 1, 1);
vboxLayout->addWidget(mainFrame);
MainWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(MainWindow);
menubar->setObjectName(QString::fromUtf8("menubar"));
menubar->setGeometry(QRect(0, 0, 392, 25));
menu_File = new QMenu(menubar);
menu_File->setObjectName(QString::fromUtf8("menu_File"));
menu_Help = new QMenu(menubar);
menu_Help->setObjectName(QString::fromUtf8("menu_Help"));
MainWindow->setMenuBar(menubar);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
#if QT_CONFIG(shortcut)
ageLabel->setBuddy(ageSpinBox);
nameLabel->setBuddy(nameCombo);
passwordLabel->setBuddy(passwordEdit);
label->setBuddy(professionList);
countryLabel->setBuddy(professionList);
#endif // QT_CONFIG(shortcut)
menubar->addAction(menu_File->menuAction());
menubar->addAction(menu_Help->menuAction());
menu_File->addAction(editStyleAction);
menu_File->addSeparator();
menu_File->addAction(exitAction);
menu_Help->addAction(aboutAction);
menu_Help->addSeparator();
menu_Help->addAction(aboutQtAction);
retranslateUi(MainWindow);
nameCombo->setCurrentIndex(-1);
professionList->setCurrentRow(0);
countryCombo->setCurrentIndex(6);
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", nullptr));
exitAction->setText(QApplication::translate("MainWindow", "&Exit", nullptr));
aboutQtAction->setText(QApplication::translate("MainWindow", "About Qt", nullptr));
editStyleAction->setText(QApplication::translate("MainWindow", "Edit &Style", nullptr));
aboutAction->setText(QApplication::translate("MainWindow", "About", nullptr));
nameCombo->setItemText(0, QApplication::translate("MainWindow", "Girish", nullptr));
nameCombo->setItemText(1, QApplication::translate("MainWindow", "Jasmin", nullptr));
nameCombo->setItemText(2, QApplication::translate("MainWindow", "Simon", nullptr));
nameCombo->setItemText(3, QApplication::translate("MainWindow", "Zack", nullptr));
#if QT_CONFIG(tooltip)
nameCombo->setToolTip(QApplication::translate("MainWindow", "Specify your name", nullptr));
#endif // QT_CONFIG(tooltip)
femaleRadioButton->setStyleSheet(QApplication::translate("MainWindow", "Check this if you are female", nullptr));
femaleRadioButton->setText(QApplication::translate("MainWindow", "&Female", nullptr));
genderLabel->setText(QApplication::translate("MainWindow", "Gender:", nullptr));
ageLabel->setText(QApplication::translate("MainWindow", "&Age:", nullptr));
#if QT_CONFIG(tooltip)
maleRadioButton->setToolTip(QApplication::translate("MainWindow", "Check this if you are male", nullptr));
#endif // QT_CONFIG(tooltip)
maleRadioButton->setText(QApplication::translate("MainWindow", "&Male", nullptr));
nameLabel->setText(QApplication::translate("MainWindow", "&Name:", nullptr));
passwordLabel->setText(QApplication::translate("MainWindow", "&Password:", nullptr));
#if QT_CONFIG(tooltip)
ageSpinBox->setToolTip(QApplication::translate("MainWindow", "Specify your age", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
ageSpinBox->setStatusTip(QApplication::translate("MainWindow", "Specify your age", nullptr));
#endif // QT_CONFIG(statustip)
#if QT_CONFIG(tooltip)
agreeCheckBox->setToolTip(QApplication::translate("MainWindow", "Please read the LICENSE file before checking", nullptr));
#endif // QT_CONFIG(tooltip)
agreeCheckBox->setText(QApplication::translate("MainWindow", "I &accept the terms and &conditions", nullptr));
#if QT_CONFIG(tooltip)
passwordEdit->setToolTip(QApplication::translate("MainWindow", "Specify your password", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
passwordEdit->setStatusTip(QApplication::translate("MainWindow", "Specify your password", nullptr));
#endif // QT_CONFIG(statustip)
passwordEdit->setText(QApplication::translate("MainWindow", "Password", nullptr));
const bool __sortingEnabled = professionList->isSortingEnabled();
professionList->setSortingEnabled(false);
QListWidgetItem *___qlistwidgetitem = professionList->item(0);
___qlistwidgetitem->setText(QApplication::translate("MainWindow", "Developer", nullptr));
QListWidgetItem *___qlistwidgetitem1 = professionList->item(1);
___qlistwidgetitem1->setText(QApplication::translate("MainWindow", "Student", nullptr));
QListWidgetItem *___qlistwidgetitem2 = professionList->item(2);
___qlistwidgetitem2->setText(QApplication::translate("MainWindow", "Fisherman", nullptr));
professionList->setSortingEnabled(__sortingEnabled);
#if QT_CONFIG(tooltip)
professionList->setToolTip(QApplication::translate("MainWindow", "Select your profession", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
professionList->setStatusTip(QApplication::translate("MainWindow", "Specify your name here", nullptr));
#endif // QT_CONFIG(statustip)
#if QT_CONFIG(whatsthis)
professionList->setWhatsThis(QApplication::translate("MainWindow", "Specify your name here", nullptr));
#endif // QT_CONFIG(whatsthis)
label->setText(QApplication::translate("MainWindow", "Profession:", nullptr));
countryCombo->setItemText(0, QApplication::translate("MainWindow", "Egypt", nullptr));
countryCombo->setItemText(1, QApplication::translate("MainWindow", "France", nullptr));
countryCombo->setItemText(2, QApplication::translate("MainWindow", "Germany", nullptr));
countryCombo->setItemText(3, QApplication::translate("MainWindow", "India", nullptr));
countryCombo->setItemText(4, QApplication::translate("MainWindow", "Italy", nullptr));
countryCombo->setItemText(5, QApplication::translate("MainWindow", "Korea", nullptr));
countryCombo->setItemText(6, QApplication::translate("MainWindow", "Norway", nullptr));
#if QT_CONFIG(tooltip)
countryCombo->setToolTip(QApplication::translate("MainWindow", "Specify country of origin", nullptr));
#endif // QT_CONFIG(tooltip)
#if QT_CONFIG(statustip)
countryCombo->setStatusTip(QApplication::translate("MainWindow", "Specify country of origin", nullptr));
#endif // QT_CONFIG(statustip)
countryLabel->setText(QApplication::translate("MainWindow", "Pro&fession", nullptr));
menu_File->setTitle(QApplication::translate("MainWindow", "&File", nullptr));
menu_Help->setTitle(QApplication::translate("MainWindow", "&Help", nullptr));
} // retranslateUi
};
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // PAGEFOLD_H