+ // Populate the label strings.
+ enabledString = i18nc("Domain settings JavaScript label.", "JavaScript enabled");
+ enabledBoldString = i18nc("Domain settings JavaScript label. The <b> tags should be retained.", "<b>JavaScript enabled</b>");
+ disabledString = i18nc("Domain settings JavaScript label.", "JavaScript disabled");
+ disabledBoldString = i18nc("Domain settings JavaScript label. The <b> tags should be retained.", "<b>JavaScript disabled</b>");
+
+ // Populate the system default bool.
+ systemDefaultEnabled = Settings::javaScriptEnabled();
+
+ // Populate the widget pointers.
+ widgetPointer = javaScriptWidgetPointer;
+ comboBoxPointer = javaScriptComboBoxPointer;
+ labelPointer = javaScriptLabelPointer;
+
+ break;
+ }
+
+ case (LOCAL_STORAGE):
+ {
+ // Populate the label strings.
+ enabledString = i18nc("Domain settings local storage label.", "Local storage enabled");
+ enabledBoldString = i18nc("Domain settings local storage label. The <b> tags should be retained.", "<b>Local storage enabled</b>");
+ disabledString = i18nc("Domain settings local storage label.", "Local storage disabled");
+ disabledBoldString = i18nc("Domain settings local storage label. The <b> tags should be retained.", "<b>Local storage disabled</b>");
+
+ // Populate the system default bool.
+ systemDefaultEnabled = Settings::localStorageEnabled();
+
+ // Populate the widget pointers.
+ widgetPointer = localStorageWidgetPointer;
+ comboBoxPointer = localStorageComboBoxPointer;
+ labelPointer = localStorageLabelPointer;
+
+ break;
+ }
+
+ case (DOM_STORAGE):
+ {
+ // Populate the label strings.
+ enabledString = i18nc("Domain settings DOM storage label.", "DOM storage enabled");
+ enabledBoldString = i18nc("Domain settings DOM storage label. The <b> tags should be retained.", "<b>DOM storage enabled</b>");
+ disabledString = i18nc("Domain settings DOM storage label.", "DOM storage disabled");
+ disabledBoldString = i18nc("Domain settings DOM storage label. The <b> tags should be retained.", "<b>DOM storage disabled</b>");
+
+ // Populate the system default bool.
+ systemDefaultEnabled = Settings::domStorageEnabled();
+
+ // Populate the widget pointers.
+ widgetPointer = domStorageWidgetPointer;
+ comboBoxPointer = domStorageComboBoxPointer;
+ labelPointer = domStorageLabelPointer;
+
+ break;
+ }
+
+ case (ULTRAPRIVACY):
+ {
+ // Populate the label strings.
+ enabledString = i18nc("Domain settings UltraPrivacy enabled label.", "UltraPrivacy enabled");
+ enabledBoldString = i18nc("Domain settings UltraPrivacy enabled bold label. The <b> tags should be retained.", "<b>UltraPrivacy enabled</b>");
+ disabledString = i18nc("Domain settings UltraPrivacy disabled label.", "UltraPrivacy disabled");
+ disabledBoldString = i18nc("Domain settings UltraPrivacy disabled bold label. The <b> tags should be retained.", "<b>UltraPrivacy disabled</b>");
+
+ // Populate the system default bool.
+ systemDefaultEnabled = Settings::ultraPrivacyEnabled();
+
+ // Populate the widget pointers.
+ widgetPointer = ultraPrivacyWidgetPointer;
+ comboBoxPointer = ultraPrivacyComboBoxPointer;
+ labelPointer = ultraPrivacyLabelPointer;
+
+ break;
+ }
+
+ case (ULTRALIST):
+ {
+ // Populate the label strings.
+ enabledString = i18nc("Domain settings UltraList enabled label.", "UltraList enabled");
+ enabledBoldString = i18nc("Domain settings UltraList enabled bold label. The <b> tags should be retained.", "<b>UltraList enabled</b>");
+ disabledString = i18nc("Domain settings UltraList disabled label.", "UltraList disabled");
+ disabledBoldString = i18nc("Domain settings UltraList disabled bold label. The <b> tags should be retained.", "<b>UltraList disabled</b>");
+
+ // Populate the system default bool.
+ systemDefaultEnabled = Settings::ultraListEnabled();
+
+ // Populate the widget pointers.
+ widgetPointer = ultraListWidgetPointer;
+ comboBoxPointer = ultraListComboBoxPointer;
+ labelPointer = ultraListLabelPointer;