fixes #527 - hide web preview setting if compiled without webkit
[quassel.git] / src / qtui / settingspages / appearancesettingspage.cpp
index 23fdb8a..516c81c 100644 (file)
 #include <QStyleFactory>
 
 AppearanceSettingsPage::AppearanceSettingsPage(QWidget *parent)
-  : SettingsPage(tr("Appearance"), tr("General"), parent) {
+  : SettingsPage(tr("Appearance"), tr("General"), parent)
+{
   ui.setupUi(this);
   initStyleComboBox();
   initLanguageComboBox();
 
+#ifndef HAVE_WEBKIT
+  ui.showWebPreview->hide();
+  ui.showWebPreview->setEnabled(false);
+#endif
+
   foreach(QComboBox *comboBox, findChildren<QComboBox *>()) {
     connect(comboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(widgetHasChanged()));
   }