9 #ifndef UI_GUI_PLAYERPREFERENCES_H 10 #define UI_GUI_PLAYERPREFERENCES_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QFrame> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHBoxLayout> 18 #include <QtWidgets/QLabel> 19 #include <QtWidgets/QWidget> 20 #include "Gui/Utils/Widgets/ComboBox.h" 27 QGridLayout *gridLayout;
29 QHBoxLayout *horizontalLayout;
32 QCheckBox *cbShowTrayIcon;
33 QCheckBox *cbCloseToTray;
35 QCheckBox *cbStartInTray;
36 QCheckBox *cbUpdateNotifications;
38 QLabel *labWarningHeader;
46 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
48 labWarning->setObjectName(QString::fromUtf8(
"labWarning"));
49 labWarning->setStyleSheet(QString::fromUtf8(
"color: red;"));
50 labWarning->setText(QString::fromUtf8(
""));
51 labWarning->setWordWrap(
true);
53 gridLayout->addWidget(labWarning, 7, 0, 1, 1);
55 horizontalLayout =
new QHBoxLayout();
56 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
58 labLogger->setObjectName(QString::fromUtf8(
"labLogger"));
59 labLogger->setText(QString::fromUtf8(
"Logger"));
61 horizontalLayout->addWidget(labLogger);
64 cbLogger->setObjectName(QString::fromUtf8(
"cbLogger"));
66 horizontalLayout->addWidget(cbLogger);
69 gridLayout->addLayout(horizontalLayout, 9, 0, 1, 1);
72 cbShowTrayIcon->setObjectName(QString::fromUtf8(
"cbShowTrayIcon"));
74 gridLayout->addWidget(cbShowTrayIcon, 0, 0, 1, 1);
77 cbCloseToTray->setObjectName(QString::fromUtf8(
"cbCloseToTray"));
79 gridLayout->addWidget(cbCloseToTray, 3, 0, 1, 1);
82 line->setObjectName(QString::fromUtf8(
"line"));
83 line->setFrameShape(QFrame::HLine);
84 line->setFrameShadow(QFrame::Sunken);
86 gridLayout->addWidget(line, 8, 0, 1, 1);
89 cbStartInTray->setObjectName(QString::fromUtf8(
"cbStartInTray"));
91 gridLayout->addWidget(cbStartInTray, 1, 0, 1, 1);
94 cbUpdateNotifications->setObjectName(QString::fromUtf8(
"cbUpdateNotifications"));
96 gridLayout->addWidget(cbUpdateNotifications, 4, 0, 1, 1);
99 line_2->setObjectName(QString::fromUtf8(
"line_2"));
100 line_2->setFrameShape(QFrame::HLine);
101 line_2->setFrameShadow(QFrame::Sunken);
103 gridLayout->addWidget(line_2, 5, 0, 1, 1);
106 labWarningHeader->setObjectName(QString::fromUtf8(
"labWarningHeader"));
107 labWarningHeader->setText(QString::fromUtf8(
""));
109 gridLayout->addWidget(labWarningHeader, 6, 0, 1, 1);
111 QWidget::setTabOrder(cbShowTrayIcon, cbStartInTray);
112 QWidget::setTabOrder(cbStartInTray, cbCloseToTray);
113 QWidget::setTabOrder(cbCloseToTray, cbUpdateNotifications);
114 QWidget::setTabOrder(cbUpdateNotifications, cbLogger);
123 cbShowTrayIcon->setText(QApplication::translate(
"GUI_PlayerPreferences",
"Show system tray icon",
nullptr));
124 cbCloseToTray->setText(QApplication::translate(
"GUI_PlayerPreferences",
"Hide instead of close",
nullptr));
125 cbStartInTray->setText(QApplication::translate(
"GUI_PlayerPreferences",
"Start hidden",
nullptr));
126 cbUpdateNotifications->setText(QApplication::translate(
"GUI_PlayerPreferences",
"Update notifications",
nullptr));
138 #endif // UI_GUI_PLAYERPREFERENCES_H Definition: ui_GUI_PlayerPreferences.h:133
Definition: GUI_PlayerPreferences.h:28
Definition: ui_GUI_PlayerPreferences.h:24
A custom combobox which also uses the Gui::ComboBoxDelegate.
Definition: ComboBox.h:33