9 #ifndef UI_UPDATEWINDOW_H
10 #define UI_UPDATEWINDOW_H
12 #include <QtCore/QVariant>
13 #include <QtGui/QIcon>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QGroupBox>
16 #include <QtWidgets/QHBoxLayout>
17 #include <QtWidgets/QLabel>
18 #include <QtWidgets/QPushButton>
19 #include <QtWidgets/QSpacerItem>
20 #include <QtWidgets/QTextEdit>
21 #include <QtWidgets/QVBoxLayout>
22 #include <QtWidgets/QWidget>
48 if (UpdateWindow->objectName().isEmpty())
49 UpdateWindow->setObjectName(QString::fromUtf8(
"UpdateWindow"));
50 UpdateWindow->setWindowModality(Qt::ApplicationModal);
51 UpdateWindow->resize(600, 450);
53 icon.addFile(QString::fromUtf8(
":/images/npa.svg"), QSize(), QIcon::Normal, QIcon::Off);
54 UpdateWindow->setWindowIcon(icon);
58 vLayout->setObjectName(QString::fromUtf8(
"vLayout"));
60 availableLabel->setObjectName(QString::fromUtf8(
"availableLabel"));
70 downloadLabel->setObjectName(QString::fromUtf8(
"downloadLabel"));
76 locationLabel->setObjectName(QString::fromUtf8(
"locationLabel"));
82 linkLabel->setObjectName(QString::fromUtf8(
"linkLabel"));
84 linkLabel->setText(QString::fromUtf8(
"LinkLabel"));
86 linkLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
90 groupBox =
new QGroupBox(UpdateWindow);
91 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
93 groupBox->setFocusPolicy(Qt::TabFocus);
97 releaseNotes->setObjectName(QString::fromUtf8(
"releaseNotes"));
100 releaseNotes->setTextInteractionFlags(Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse);
113 dlLabel =
new QLabel(UpdateWindow);
114 dlLabel->setObjectName(QString::fromUtf8(
"dlLabel"));
115 dlLabel->setFocusPolicy(Qt::TabFocus);
120 hLayout->setObjectName(QString::fromUtf8(
"hLayout"));
122 skipButton->setObjectName(QString::fromUtf8(
"skipButton"));
126 spacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
131 reminderButton->setObjectName(QString::fromUtf8(
"reminderButton"));
136 downloadButton->setObjectName(QString::fromUtf8(
"downloadButton"));
153 QMetaObject::connectSlotsByName(UpdateWindow);
158 UpdateWindow->setWindowTitle(QCoreApplication::translate(
"UpdateWindow",
"Software Update",
nullptr));
159 availableLabel->setText(QCoreApplication::translate(
"UpdateWindow",
"A new version of AusweisApp2 is available!",
nullptr));
160 locationLabel->setText(QCoreApplication::translate(
"UpdateWindow",
"The update file is located at:",
nullptr));
161 groupBox->setTitle(QCoreApplication::translate(
"UpdateWindow",
"Release notes:",
nullptr));
162 downloadThisUpdateLabel->setText(QCoreApplication::translate(
"UpdateWindow",
"Download this update and close current \"AusweisApp2\". Install the update and start \"AusweisApp2\" again.",
nullptr));
163 dlLabel->setText(QCoreApplication::translate(
"UpdateWindow",
"When you click \"Download update\", this link will be opened in your browser.",
nullptr));
164 skipButton->setText(QCoreApplication::translate(
"UpdateWindow",
"Skip update",
nullptr));
165 reminderButton->setText(QCoreApplication::translate(
"UpdateWindow",
"Remind me later",
nullptr));
166 downloadButton->setText(QCoreApplication::translate(
"UpdateWindow",
"Download update",
nullptr));
177 #endif // UI_UPDATEWINDOW_H