ff18b02f21
This reverts the following commits:d12d2949d1
26c3bec09b
49b08f96e8
We can't easily predict all code paths for QDesigner with such a microoptimization. We also don't want to generate three different string constructions depending on some sophisticated heuristics. [ChangeLog][uic] The -no-stringliteral option is now deprecated and UIC will not generate QStringLiteral anymore. Task-number: QTBUG-65251 Task-number: QTBUG-51602 Change-Id: I34a5a1934a8df19c5c84ac2ba8e5168ce5665037 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
180 lines
6.1 KiB
C++
180 lines
6.1 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'bookwindow.ui'
|
|
**
|
|
** Created by: Qt User Interface Compiler version 5.0.0
|
|
**
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
********************************************************************************/
|
|
|
|
#ifndef BOOKWINDOW_H
|
|
#define BOOKWINDOW_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QComboBox>
|
|
#include <QtWidgets/QFormLayout>
|
|
#include <QtWidgets/QGroupBox>
|
|
#include <QtWidgets/QHeaderView>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QLineEdit>
|
|
#include <QtWidgets/QMainWindow>
|
|
#include <QtWidgets/QSpinBox>
|
|
#include <QtWidgets/QTableView>
|
|
#include <QtWidgets/QVBoxLayout>
|
|
#include <QtWidgets/QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_BookWindow
|
|
{
|
|
public:
|
|
QWidget *centralWidget;
|
|
QVBoxLayout *vboxLayout;
|
|
QGroupBox *groupBox;
|
|
QVBoxLayout *vboxLayout1;
|
|
QTableView *bookTable;
|
|
QGroupBox *groupBox_2;
|
|
QFormLayout *formLayout;
|
|
QLabel *label_5;
|
|
QLineEdit *titleEdit;
|
|
QLabel *label_2_2_2_2;
|
|
QComboBox *authorEdit;
|
|
QLabel *label_3;
|
|
QComboBox *genreEdit;
|
|
QLabel *label_4;
|
|
QSpinBox *yearEdit;
|
|
QLabel *label;
|
|
QSpinBox *ratingEdit;
|
|
|
|
void setupUi(QMainWindow *BookWindow)
|
|
{
|
|
if (BookWindow->objectName().isEmpty())
|
|
BookWindow->setObjectName(QString::fromUtf8("BookWindow"));
|
|
BookWindow->resize(601, 420);
|
|
centralWidget = new QWidget(BookWindow);
|
|
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"));
|
|
groupBox = new QGroupBox(centralWidget);
|
|
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
|
vboxLayout1 = new QVBoxLayout(groupBox);
|
|
#ifndef Q_OS_MAC
|
|
vboxLayout1->setSpacing(6);
|
|
#endif
|
|
#ifndef Q_OS_MAC
|
|
vboxLayout1->setContentsMargins(9, 9, 9, 9);
|
|
#endif
|
|
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
|
|
bookTable = new QTableView(groupBox);
|
|
bookTable->setObjectName(QString::fromUtf8("bookTable"));
|
|
bookTable->setSelectionBehavior(QAbstractItemView::SelectRows);
|
|
|
|
vboxLayout1->addWidget(bookTable);
|
|
|
|
groupBox_2 = new QGroupBox(groupBox);
|
|
groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
|
|
formLayout = new QFormLayout(groupBox_2);
|
|
formLayout->setObjectName(QString::fromUtf8("formLayout"));
|
|
label_5 = new QLabel(groupBox_2);
|
|
label_5->setObjectName(QString::fromUtf8("label_5"));
|
|
|
|
formLayout->setWidget(0, QFormLayout::LabelRole, label_5);
|
|
|
|
titleEdit = new QLineEdit(groupBox_2);
|
|
titleEdit->setObjectName(QString::fromUtf8("titleEdit"));
|
|
titleEdit->setEnabled(true);
|
|
|
|
formLayout->setWidget(0, QFormLayout::FieldRole, titleEdit);
|
|
|
|
label_2_2_2_2 = new QLabel(groupBox_2);
|
|
label_2_2_2_2->setObjectName(QString::fromUtf8("label_2_2_2_2"));
|
|
|
|
formLayout->setWidget(1, QFormLayout::LabelRole, label_2_2_2_2);
|
|
|
|
authorEdit = new QComboBox(groupBox_2);
|
|
authorEdit->setObjectName(QString::fromUtf8("authorEdit"));
|
|
authorEdit->setEnabled(true);
|
|
|
|
formLayout->setWidget(1, QFormLayout::FieldRole, authorEdit);
|
|
|
|
label_3 = new QLabel(groupBox_2);
|
|
label_3->setObjectName(QString::fromUtf8("label_3"));
|
|
|
|
formLayout->setWidget(2, QFormLayout::LabelRole, label_3);
|
|
|
|
genreEdit = new QComboBox(groupBox_2);
|
|
genreEdit->setObjectName(QString::fromUtf8("genreEdit"));
|
|
genreEdit->setEnabled(true);
|
|
|
|
formLayout->setWidget(2, QFormLayout::FieldRole, genreEdit);
|
|
|
|
label_4 = new QLabel(groupBox_2);
|
|
label_4->setObjectName(QString::fromUtf8("label_4"));
|
|
|
|
formLayout->setWidget(3, QFormLayout::LabelRole, label_4);
|
|
|
|
yearEdit = new QSpinBox(groupBox_2);
|
|
yearEdit->setObjectName(QString::fromUtf8("yearEdit"));
|
|
yearEdit->setEnabled(true);
|
|
yearEdit->setMaximum(2100);
|
|
yearEdit->setMinimum(-1000);
|
|
|
|
formLayout->setWidget(3, QFormLayout::FieldRole, yearEdit);
|
|
|
|
label = new QLabel(groupBox_2);
|
|
label->setObjectName(QString::fromUtf8("label"));
|
|
|
|
formLayout->setWidget(4, QFormLayout::LabelRole, label);
|
|
|
|
ratingEdit = new QSpinBox(groupBox_2);
|
|
ratingEdit->setObjectName(QString::fromUtf8("ratingEdit"));
|
|
ratingEdit->setMaximum(5);
|
|
|
|
formLayout->setWidget(4, QFormLayout::FieldRole, ratingEdit);
|
|
|
|
|
|
vboxLayout1->addWidget(groupBox_2);
|
|
|
|
|
|
vboxLayout->addWidget(groupBox);
|
|
|
|
BookWindow->setCentralWidget(centralWidget);
|
|
QWidget::setTabOrder(bookTable, titleEdit);
|
|
QWidget::setTabOrder(titleEdit, authorEdit);
|
|
QWidget::setTabOrder(authorEdit, genreEdit);
|
|
QWidget::setTabOrder(genreEdit, yearEdit);
|
|
|
|
retranslateUi(BookWindow);
|
|
|
|
QMetaObject::connectSlotsByName(BookWindow);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QMainWindow *BookWindow)
|
|
{
|
|
BookWindow->setWindowTitle(QApplication::translate("BookWindow", "Books", nullptr));
|
|
groupBox->setTitle(QApplication::translate("BookWindow", "Books", nullptr));
|
|
groupBox_2->setTitle(QApplication::translate("BookWindow", "Details", nullptr));
|
|
label_5->setText(QApplication::translate("BookWindow", "<b>Title:</b>", nullptr));
|
|
label_2_2_2_2->setText(QApplication::translate("BookWindow", "<b>Author: </b>", nullptr));
|
|
label_3->setText(QApplication::translate("BookWindow", "<b>Genre:</b>", nullptr));
|
|
label_4->setText(QApplication::translate("BookWindow", "<b>Year:</b>", nullptr));
|
|
yearEdit->setPrefix(QString());
|
|
label->setText(QApplication::translate("BookWindow", "<b>Rating:</b>", nullptr));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class BookWindow: public Ui_BookWindow {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // BOOKWINDOW_H
|