9 #ifndef UI_PQANIMATIONTIMEWIDGET_H 10 #define UI_PQANIMATIONTIMEWIDGET_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QComboBox> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QWidget> 31 void setupUi(QWidget *AnimationTimeWidget)
33 if (AnimationTimeWidget->objectName().isEmpty())
34 AnimationTimeWidget->setObjectName(QString::fromUtf8(
"AnimationTimeWidget"));
35 AnimationTimeWidget->resize(311, 32);
36 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
37 sizePolicy.setHorizontalStretch(0);
38 sizePolicy.setVerticalStretch(0);
39 sizePolicy.setHeightForWidth(AnimationTimeWidget->sizePolicy().hasHeightForWidth());
40 AnimationTimeWidget->setSizePolicy(sizePolicy);
41 horizontalLayout =
new QHBoxLayout(AnimationTimeWidget);
42 horizontalLayout->setSpacing(2);
43 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
44 horizontalLayout->setContentsMargins(0, 0, 0, 0);
45 timeLabel =
new QLabel(AnimationTimeWidget);
46 timeLabel->setObjectName(QString::fromUtf8(
"timeLabel"));
48 horizontalLayout->addWidget(timeLabel);
50 timeValueComboBox =
new QComboBox(AnimationTimeWidget);
51 timeValueComboBox->setObjectName(QString::fromUtf8(
"timeValueComboBox"));
52 timeValueComboBox->setEditable(
true);
53 timeValueComboBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
55 horizontalLayout->addWidget(timeValueComboBox);
57 timestepValue =
new pqSpinBox(AnimationTimeWidget);
58 timestepValue->setObjectName(QString::fromUtf8(
"timestepValue"));
59 timestepValue->setEnabled(
true);
60 timestepValue->setMaximum(10000);
62 horizontalLayout->addWidget(timestepValue);
64 timestepCountLabel =
new QLabel(AnimationTimeWidget);
65 timestepCountLabel->setObjectName(QString::fromUtf8(
"timestepCountLabel"));
67 horizontalLayout->addWidget(timestepCountLabel);
72 QMetaObject::connectSlotsByName(AnimationTimeWidget);
77 AnimationTimeWidget->setWindowTitle(QCoreApplication::translate(
"AnimationTimeWidget",
"Form",
nullptr));
78 timeLabel->setText(QCoreApplication::translate(
"AnimationTimeWidget",
"Time:",
nullptr));
79 timestepCountLabel->setText(QCoreApplication::translate(
"AnimationTimeWidget",
"max is N",
nullptr));
90 #endif // UI_PQANIMATIONTIMEWIDGET_H QSpinBox which fires editingFinished() signal when the value is changed by steps (increments).