9 #ifndef UI_PQCUSTOMRESOLUTIONDIALOG_H 10 #define UI_PQCUSTOMRESOLUTIONDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialog> 15 #include <QtWidgets/QDialogButtonBox> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QLineEdit> 20 #include <QtWidgets/QSpacerItem> 39 void setupUi(QDialog *CustomResolutionDialog)
41 if (CustomResolutionDialog->objectName().isEmpty())
42 CustomResolutionDialog->setObjectName(QString::fromUtf8(
"CustomResolutionDialog"));
43 CustomResolutionDialog->resize(323, 144);
44 gridLayout =
new QGridLayout(CustomResolutionDialog);
45 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
46 label =
new QLabel(CustomResolutionDialog);
47 label->setObjectName(QString::fromUtf8(
"label"));
49 gridLayout->addWidget(label, 1, 0, 1, 1);
51 horizontalLayout =
new QHBoxLayout();
52 horizontalLayout->setSpacing(2);
53 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
54 resolutionX =
new QLineEdit(CustomResolutionDialog);
55 resolutionX->setObjectName(QString::fromUtf8(
"resolutionX"));
57 horizontalLayout->addWidget(resolutionX);
59 label_3 =
new QLabel(CustomResolutionDialog);
60 label_3->setObjectName(QString::fromUtf8(
"label_3"));
62 horizontalLayout->addWidget(label_3);
64 resolutionY =
new QLineEdit(CustomResolutionDialog);
65 resolutionY->setObjectName(QString::fromUtf8(
"resolutionY"));
67 horizontalLayout->addWidget(resolutionY);
69 horizontalLayout->setStretch(0, 1);
70 horizontalLayout->setStretch(2, 1);
72 gridLayout->addLayout(horizontalLayout, 2, 1, 1, 1);
74 label_2 =
new QLabel(CustomResolutionDialog);
75 label_2->setObjectName(QString::fromUtf8(
"label_2"));
77 gridLayout->addWidget(label_2, 2, 0, 1, 1);
79 buttonBox =
new QDialogButtonBox(CustomResolutionDialog);
80 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
81 buttonBox->setOrientation(Qt::Horizontal);
82 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
84 gridLayout->addWidget(buttonBox, 4, 0, 1, 2);
86 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
88 gridLayout->addItem(verticalSpacer, 3, 0, 1, 1);
90 resolutionLabel =
new QLineEdit(CustomResolutionDialog);
91 resolutionLabel->setObjectName(QString::fromUtf8(
"resolutionLabel"));
93 gridLayout->addWidget(resolutionLabel, 1, 1, 1, 1);
95 label_4 =
new QLabel(CustomResolutionDialog);
96 label_4->setObjectName(QString::fromUtf8(
"label_4"));
98 gridLayout->addWidget(label_4, 0, 0, 1, 2);
100 QWidget::setTabOrder(resolutionLabel, resolutionX);
101 QWidget::setTabOrder(resolutionX, resolutionY);
102 QWidget::setTabOrder(resolutionY, buttonBox);
105 QObject::connect(buttonBox, SIGNAL(accepted()), CustomResolutionDialog, SLOT(accept()));
106 QObject::connect(buttonBox, SIGNAL(rejected()), CustomResolutionDialog, SLOT(reject()));
108 QMetaObject::connectSlotsByName(CustomResolutionDialog);
113 CustomResolutionDialog->setWindowTitle(QCoreApplication::translate(
"CustomResolutionDialog",
"Custom Resolution",
nullptr));
114 label->setText(QCoreApplication::translate(
"CustomResolutionDialog",
"Label",
nullptr));
115 resolutionX->setPlaceholderText(QCoreApplication::translate(
"CustomResolutionDialog",
"width",
nullptr));
116 label_3->setText(QCoreApplication::translate(
"CustomResolutionDialog",
"x",
nullptr));
117 resolutionY->setPlaceholderText(QCoreApplication::translate(
"CustomResolutionDialog",
"height",
nullptr));
118 label_2->setText(QCoreApplication::translate(
"CustomResolutionDialog",
"Resolution",
nullptr));
119 resolutionLabel->setPlaceholderText(QCoreApplication::translate(
"CustomResolutionDialog",
"(optional)",
nullptr));
120 label_4->setText(QCoreApplication::translate(
"CustomResolutionDialog",
"Add custom resolution",
nullptr));
131 #endif // UI_PQCUSTOMRESOLUTIONDIALOG_H void retranslateUi(QDialog *CustomResolutionDialog)
QHBoxLayout * horizontalLayout
QSpacerItem * verticalSpacer
void setupUi(QDialog *CustomResolutionDialog)
QLineEdit * resolutionLabel
QDialogButtonBox * buttonBox