9 #ifndef UI_PQVIEWRESOLUTIONPROPERTYWIDGET_H 10 #define UI_PQVIEWRESOLUTIONPROPERTYWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtGui/QIcon> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QToolButton> 18 #include <QtWidgets/QWidget> 36 void setupUi(QWidget *ViewResolutionPropertyWidget)
38 if (ViewResolutionPropertyWidget->objectName().isEmpty())
39 ViewResolutionPropertyWidget->setObjectName(QString::fromUtf8(
"ViewResolutionPropertyWidget"));
40 ViewResolutionPropertyWidget->resize(277, 27);
41 horizontalLayout =
new QHBoxLayout(ViewResolutionPropertyWidget);
42 horizontalLayout->setSpacing(2);
43 horizontalLayout->setContentsMargins(0, 0, 0, 0);
44 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
45 width =
new pqLineEdit(ViewResolutionPropertyWidget);
46 width->setObjectName(QString::fromUtf8(
"width"));
48 horizontalLayout->addWidget(width);
50 label =
new QLabel(ViewResolutionPropertyWidget);
51 label->setObjectName(QString::fromUtf8(
"label"));
53 horizontalLayout->addWidget(label);
55 height =
new pqLineEdit(ViewResolutionPropertyWidget);
56 height->setObjectName(QString::fromUtf8(
"height"));
58 horizontalLayout->addWidget(height);
61 scaleBy->setObjectName(QString::fromUtf8(
"scaleBy"));
63 horizontalLayout->addWidget(scaleBy);
65 lockAspectRatio =
new QToolButton(ViewResolutionPropertyWidget);
66 lockAspectRatio->setObjectName(QString::fromUtf8(
"lockAspectRatio"));
68 icon.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqLock24.png"), QSize(), QIcon::Normal, QIcon::Off);
69 lockAspectRatio->setIcon(icon);
70 lockAspectRatio->setCheckable(
true);
71 lockAspectRatio->setChecked(
false);
73 horizontalLayout->addWidget(lockAspectRatio);
76 reset->setObjectName(QString::fromUtf8(
"reset"));
78 icon1.addFile(QString::fromUtf8(
":/pqWidgets/Icons/pqReset.svg"), QSize(), QIcon::Normal, QIcon::Off);
79 reset->setIcon(icon1);
81 horizontalLayout->addWidget(reset);
83 horizontalLayout->setStretch(0, 1);
84 horizontalLayout->setStretch(2, 1);
88 QMetaObject::connectSlotsByName(ViewResolutionPropertyWidget);
93 ViewResolutionPropertyWidget->setWindowTitle(QCoreApplication::translate(
"ViewResolutionPropertyWidget",
"Form",
nullptr));
94 width->setPlaceholderText(QCoreApplication::translate(
"ViewResolutionPropertyWidget",
"width",
nullptr));
95 label->setText(QCoreApplication::translate(
"ViewResolutionPropertyWidget",
"x",
nullptr));
96 height->setPlaceholderText(QCoreApplication::translate(
"ViewResolutionPropertyWidget",
"height",
nullptr));
97 #if QT_CONFIG(tooltip) 98 lockAspectRatio->setToolTip(QCoreApplication::translate(
"ViewResolutionPropertyWidget",
"Lock aspect ratio",
nullptr));
99 #endif // QT_CONFIG(tooltip) 100 lockAspectRatio->setText(QString());
101 #if QT_CONFIG(tooltip) 102 reset->setToolTip(QCoreApplication::translate(
"ViewResolutionPropertyWidget",
"Reset to default based on current values",
nullptr));
103 #endif // QT_CONFIG(tooltip) 104 reset->setText(QString());
115 #endif // UI_PQVIEWRESOLUTIONPROPERTYWIDGET_H
pqLineEdit is a specialization of QLineEdit which provide a new property 'text2'. ...