9 #ifndef UI_GUI_LANGUAGEPREFERENCES_H 10 #define UI_GUI_LANGUAGEPREFERENCES_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QFrame> 15 #include <QtWidgets/QGridLayout> 16 #include <QtWidgets/QHBoxLayout> 17 #include <QtWidgets/QLabel> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QWidget> 21 #include "Gui/Utils/Widgets/ComboBox.h" 28 QGridLayout *gridLayout;
30 QHBoxLayout *horizontalLayout;
31 QPushButton *btnCheckForUpdate;
32 QPushButton *btnDownload;
33 QLabel *labUpdateInfo;
34 QSpacerItem *verticalSpacer;
46 gridLayout->setSpacing(7);
47 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
49 line_2->setObjectName(QString::fromUtf8(
"line_2"));
50 line_2->setFrameShape(QFrame::HLine);
51 line_2->setFrameShadow(QFrame::Sunken);
53 gridLayout->addWidget(line_2, 6, 0, 1, 1);
55 horizontalLayout =
new QHBoxLayout();
56 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
58 btnCheckForUpdate->setObjectName(QString::fromUtf8(
"btnCheckForUpdate"));
60 horizontalLayout->addWidget(btnCheckForUpdate);
63 btnDownload->setObjectName(QString::fromUtf8(
"btnDownload"));
65 horizontalLayout->addWidget(btnDownload);
68 gridLayout->addLayout(horizontalLayout, 4, 0, 1, 1);
71 labUpdateInfo->setObjectName(QString::fromUtf8(
"labUpdateInfo"));
72 labUpdateInfo->setText(QString::fromUtf8(
""));
74 gridLayout->addWidget(labUpdateInfo, 5, 0, 1, 1);
76 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
78 gridLayout->addItem(verticalSpacer, 9, 0, 1, 1);
81 comboLanguages->addItem(QString());
82 comboLanguages->setObjectName(QString::fromUtf8(
"comboLanguages"));
83 comboLanguages->setCurrentText(QString::fromUtf8(
"English"));
85 gridLayout->addWidget(comboLanguages, 0, 0, 1, 1);
88 line->setObjectName(QString::fromUtf8(
"line"));
89 line->setFrameShape(QFrame::HLine);
90 line->setFrameShadow(QFrame::Sunken);
92 gridLayout->addWidget(line, 3, 0, 1, 1);
95 labLink->setObjectName(QString::fromUtf8(
"labLink"));
96 labLink->setText(QString::fromUtf8(
""));
97 labLink->setTextFormat(Qt::RichText);
98 labLink->setOpenExternalLinks(
true);
100 gridLayout->addWidget(labLink, 8, 0, 1, 1);
103 label_2->setObjectName(QString::fromUtf8(
"label_2"));
104 label_2->setWordWrap(
true);
106 gridLayout->addWidget(label_2, 7, 0, 1, 1);
116 btnCheckForUpdate->setText(QCoreApplication::translate(
"GUI_LanguagePreferences",
"Check for update",
nullptr));
117 btnDownload->setText(QCoreApplication::translate(
"GUI_LanguagePreferences",
"Download update",
nullptr));
118 comboLanguages->setItemText(0, QCoreApplication::translate(
"GUI_LanguagePreferences",
"English",
nullptr));
120 label_2->setText(QCoreApplication::translate(
"GUI_LanguagePreferences",
"For new languages I am always looking for translators",
nullptr));
132 #endif // UI_GUI_LANGUAGEPREFERENCES_H Definition: ui_GUI_LanguagePreferences.h:25
Definition: GUI_LanguagePreferences.h:29
A custom combobox which also uses the Gui::ComboBoxDelegate.
Definition: ComboBox.h:33
Definition: ui_GUI_LanguagePreferences.h:127