- ui.setupUi(this);
- initAutoWidgets();
- initStyleComboBox();
- initLanguageComboBox();
-
- foreach(QComboBox *comboBox, findChildren<QComboBox *>()) {
- connect(comboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(widgetHasChanged()));
- }
- foreach(QCheckBox *checkBox, findChildren<QCheckBox *>()) {
- connect(checkBox, SIGNAL(clicked()), this, SLOT(widgetHasChanged()));
- }
-
- connect(ui.chooseStyleSheet, SIGNAL(clicked()), SLOT(chooseStyleSheet()));
+ ui.setupUi(this);
+
+#ifdef QT_NO_SYSTEMTRAYICON
+ ui.useSystemTrayIcon->hide();
+#endif
+#if QT_VERSION < 0x050000
+ // We don't support overriding the system icon theme with Qt4
+ ui.overrideSystemIconTheme->hide();
+#endif
+
+ initAutoWidgets();
+ initStyleComboBox();
+ initLanguageComboBox();
+ initIconThemeComboBox();
+
+ foreach(QComboBox *comboBox, findChildren<QComboBox *>()) {
+ connect(comboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(widgetHasChanged()));
+ }
+ foreach(QCheckBox *checkBox, findChildren<QCheckBox *>()) {
+ connect(checkBox, SIGNAL(clicked()), this, SLOT(widgetHasChanged()));
+ }
+
+ connect(ui.chooseStyleSheet, SIGNAL(clicked()), SLOT(chooseStyleSheet()));
+
+ connect(ui.userNoticesInDefaultBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
+ connect(ui.userNoticesInStatusBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
+ connect(ui.userNoticesInCurrentBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
+
+ connect(ui.serverNoticesInDefaultBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
+ connect(ui.serverNoticesInStatusBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
+ connect(ui.serverNoticesInCurrentBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
+
+ connect(ui.errorMsgsInDefaultBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
+ connect(ui.errorMsgsInStatusBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));
+ connect(ui.errorMsgsInCurrentBuffer, SIGNAL(clicked(bool)), this, SLOT(widgetHasChanged()));