Skip to content
This repository has been archived by the owner on May 10, 2018. It is now read-only.

Commit

Permalink
Add spatial navigation option
Browse files Browse the repository at this point in the history
  • Loading branch information
Mladen Pejaković committed Apr 23, 2013
1 parent 6552594 commit aac0956
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib/app/mainapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 2 additions & 0 deletions src/lib/preferences/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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());
Expand Down
11 changes: 9 additions & 2 deletions src/lib/preferences/preferences.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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">
Expand Down

0 comments on commit aac0956

Please sign in to comment.