9 #ifndef UI_PQSELECTREADERDIALOG_H 10 #define UI_PQSELECTREADERDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialog> 15 #include <QtWidgets/QHBoxLayout> 16 #include <QtWidgets/QLabel> 17 #include <QtWidgets/QListWidget> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QVBoxLayout> 39 if (SelectReaderDialog->objectName().isEmpty())
40 SelectReaderDialog->setObjectName(QString::fromUtf8(
"SelectReaderDialog"));
41 SelectReaderDialog->resize(447, 453);
42 vboxLayout =
new QVBoxLayout(SelectReaderDialog);
44 vboxLayout->setSpacing(6);
47 vboxLayout->setContentsMargins(9, 9, 9, 9);
49 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
50 FileInfo =
new QLabel(SelectReaderDialog);
51 FileInfo->setObjectName(QString::fromUtf8(
"FileInfo"));
52 FileInfo->setWordWrap(
true);
54 vboxLayout->addWidget(FileInfo);
56 listWidget =
new QListWidget(SelectReaderDialog);
57 listWidget->setObjectName(QString::fromUtf8(
"listWidget"));
58 listWidget->setSortingEnabled(
true);
60 vboxLayout->addWidget(listWidget);
62 label_2 =
new QLabel(SelectReaderDialog);
63 label_2->setObjectName(QString::fromUtf8(
"label_2"));
64 label_2->setWordWrap(
true);
66 vboxLayout->addWidget(label_2);
68 hboxLayout =
new QHBoxLayout();
70 hboxLayout->setSpacing(6);
72 hboxLayout->setContentsMargins(0, 0, 0, 0);
73 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
74 spacerItem =
new QSpacerItem(131, 31, QSizePolicy::Expanding, QSizePolicy::Minimum);
76 hboxLayout->addItem(spacerItem);
78 okButton =
new QPushButton(SelectReaderDialog);
79 okButton->setObjectName(QString::fromUtf8(
"okButton"));
81 hboxLayout->addWidget(okButton);
83 setAsDefault =
new QPushButton(SelectReaderDialog);
84 setAsDefault->setObjectName(QString::fromUtf8(
"setAsDefault"));
86 hboxLayout->addWidget(setAsDefault);
88 cancelButton =
new QPushButton(SelectReaderDialog);
89 cancelButton->setObjectName(QString::fromUtf8(
"cancelButton"));
91 hboxLayout->addWidget(cancelButton);
94 vboxLayout->addLayout(hboxLayout);
98 QObject::connect(okButton, SIGNAL(clicked()), SelectReaderDialog, SLOT(accept()));
99 QObject::connect(cancelButton, SIGNAL(clicked()), SelectReaderDialog, SLOT(reject()));
100 QObject::connect(listWidget, SIGNAL(doubleClicked(QModelIndex)), SelectReaderDialog, SLOT(accept()));
102 QMetaObject::connectSlotsByName(SelectReaderDialog);
107 SelectReaderDialog->setWindowTitle(QCoreApplication::translate(
"SelectReaderDialog",
"Open Data With...",
nullptr));
108 FileInfo->setText(QCoreApplication::translate(
"SelectReaderDialog",
"A reader for FileName could not be found. Please choose one:",
nullptr));
109 label_2->setText(QCoreApplication::translate(
"SelectReaderDialog",
"Opening the file with an incompatible reader may result in unpredictable behavior or a crash. Please choose the correct reader.",
nullptr));
110 okButton->setText(QCoreApplication::translate(
"SelectReaderDialog",
"OK",
nullptr));
111 setAsDefault->setText(QCoreApplication::translate(
"SelectReaderDialog",
"Set reader as default",
nullptr));
112 cancelButton->setText(QCoreApplication::translate(
"SelectReaderDialog",
"Cancel",
nullptr));
123 #endif // UI_PQSELECTREADERDIALOG_H
QPushButton * cancelButton
void retranslateUi(QDialog *SelectReaderDialog)
QPushButton * setAsDefault
void setupUi(QDialog *SelectReaderDialog)