1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

JavaScript privacy options, update, part1

This commit is contained in:
Mladen Pejaković 2012-12-28 01:58:31 +01:00
parent ea604d5bca
commit d8e6f5f483
2 changed files with 37 additions and 1 deletions

View File

@ -33,6 +33,10 @@ JsOptions::JsOptions(QWidget* parent)
settings.beginGroup("Web-Browser-Settings");
ui->jscanCloseWindow->setChecked(settings.value("allowJavaScriptCloseWindow", false).toBool());
ui->jscanOpenWindow->setChecked(settings.value("allowJavaScriptOpenWindow", false).toBool());
ui->jscanChangeSize->setChecked(settings.value("allowJavaScriptGeometryChange", false).toBool());
ui->jscanHideMenu->setChecked(settings.value("allowJavaScriptHideMenuBar", false).toBool());
ui->jscanHideStatus->setChecked(settings.value("allowJavaScriptHideStatusBar", false).toBool());
ui->jscanHideTool->setChecked(settings.value("allowJavaScriptHideToolBar", false).toBool());
ui->jscanAccessClipboard->setChecked(settings.value("allowJavaScriptAccessClipboard", false).toBool());
settings.endGroup();
@ -45,6 +49,10 @@ void JsOptions::accept()
settings.beginGroup("Web-Browser-Settings");
settings.setValue("allowJavaScriptCloseWindow", ui->jscanCloseWindow->isChecked());
settings.setValue("allowJavaScriptOpenWindow", ui->jscanOpenWindow->isChecked());
settings.setValue("allowJavaScriptGeometryChange", ui->jscanChangeSize->isChecked());
settings.setValue("allowJavaScriptHideMenuBar", ui->jscanHideMenu->isChecked());
settings.setValue("allowJavaScriptHideStatusBar", ui->jscanHideStatus->isChecked());
settings.setValue("allowJavaScriptHideToolBar", ui->jscanHideTool->isChecked());
settings.setValue("allowJavaScriptAccessClipboard", ui->jscanAccessClipboard->isChecked());
settings.endGroup();

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>302</width>
<height>126</height>
<height>226</height>
</rect>
</property>
<property name="windowTitle">
@ -46,6 +46,34 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="jscanChangeSize">
<property name="text">
<string>Allow JavaScript to change window size</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="jscanHideMenu">
<property name="text">
<string>Allow JavaScript to hide menu bar</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="jscanHideStatus">
<property name="text">
<string>Allow JavaScript to hide status bar</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="jscanHideTool">
<property name="text">
<string>Allow JavaScript to hide tool bar</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="jscanAccessClipboard">
<property name="text">