mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Add spatial navigation option
This commit is contained in:
parent
655259456c
commit
aac0956a0f
@ -405,6 +405,7 @@ void MainApplication::loadSettings()
|
||||
m_websettings->setAttribute(QWebSettings::XSSAuditingEnabled, settings.value("XSSAuditing", false).toBool());
|
||||
m_websettings->setMaximumPagesInCache(settings.value("maximumCachedPages", 3).toInt());
|
||||
m_websettings->setDefaultTextEncoding(settings.value("DefaultEncoding", m_websettings->defaultTextEncoding()).toString());
|
||||
m_websettings->setAttribute(QWebSettings::SpatialNavigationEnabled, settings.value("SpatialNavigation", false).toBool());
|
||||
|
||||
#if QTWEBKIT_FROM_2_3
|
||||
m_websettings->setAttribute(QWebSettings::CaretBrowsingEnabled, settings.value("CaretBrowsing", false).toBool());
|
||||
|
@ -249,6 +249,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
|
||||
ui->allowDNSPrefetch->setChecked(settings.value("DNS-Prefetch", false).toBool());
|
||||
ui->linksInFocusChain->setChecked(settings.value("IncludeLinkInFocusChain", false).toBool());
|
||||
ui->zoomTextOnly->setChecked(settings.value("zoomTextOnly", false).toBool());
|
||||
ui->spatialNavigation->setChecked(settings.value("SpatialNavigation", false).toBool());
|
||||
ui->caretBrowsing->setChecked(settings.value("CaretBrowsing", false).toBool());
|
||||
ui->animateScrolling->setChecked(settings.value("AnimateScrolling", true).toBool());
|
||||
ui->printEBackground->setChecked(settings.value("PrintElementBackground", true).toBool());
|
||||
@ -925,6 +926,7 @@ void Preferences::saveSettings()
|
||||
settings.setValue("DNS-Prefetch", ui->allowDNSPrefetch->isChecked());
|
||||
settings.setValue("IncludeLinkInFocusChain", ui->linksInFocusChain->isChecked());
|
||||
settings.setValue("zoomTextOnly", ui->zoomTextOnly->isChecked());
|
||||
settings.setValue("SpatialNavigation", ui->spatialNavigation->isChecked());
|
||||
settings.setValue("CaretBrowsing", ui->caretBrowsing->isChecked());
|
||||
settings.setValue("AnimateScrolling", ui->animateScrolling->isChecked());
|
||||
settings.setValue("PrintElementBackground", ui->printEBackground->isChecked());
|
||||
|
@ -140,8 +140,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>596</width>
|
||||
<height>456</height>
|
||||
<width>602</width>
|
||||
<height>469</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
@ -1086,6 +1086,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="spatialNavigation">
|
||||
<property name="text">
|
||||
<string>Enable spatial navigation</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="zoomTextOnly">
|
||||
<property name="text">
|
||||
|
Loading…
Reference in New Issue
Block a user