fixes #527 - hide web preview setting if compiled without webkit
authorMarcus Eggenberger <egs@quassel-irc.org>
Wed, 11 Feb 2009 13:31:53 +0000 (14:31 +0100)
committerMarcus Eggenberger <egs@quassel-irc.org>
Wed, 11 Feb 2009 13:31:53 +0000 (14:31 +0100)
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()));
   }