mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Bring back Print Element Background option
This commit is contained in:
parent
829e05bdec
commit
1b365f1e86
@ -876,6 +876,7 @@ void MainApplication::loadSettings()
|
||||
webSettings->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, settings.value("allowJavaScriptAccessClipboard", true).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::LinksIncludedInFocusChain, settings.value("IncludeLinkInFocusChain", false).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::XSSAuditingEnabled, settings.value("XSSAuditing", false).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::PrintElementBackgrounds, settings.value("PrintElementBackground", true).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::SpatialNavigationEnabled, settings.value("SpatialNavigation", false).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::ScrollAnimatorEnabled, settings.value("AnimateScrolling", true).toBool());
|
||||
webSettings->setAttribute(QWebEngineSettings::HyperlinkAuditingEnabled, false);
|
||||
|
@ -277,6 +277,7 @@ Preferences::Preferences(BrowserWindow* window)
|
||||
ui->animateScrolling->setChecked(settings.value("AnimateScrolling", true).toBool());
|
||||
ui->wheelScroll->setValue(settings.value("wheelScrollLines", qApp->wheelScrollLines()).toInt());
|
||||
ui->xssAuditing->setChecked(settings.value("XSSAuditing", false).toBool());
|
||||
ui->printEBackground->setChecked(settings.value("PrintElementBackground", true).toBool());
|
||||
ui->useNativeScrollbars->setChecked(settings.value("UseNativeScrollbars", true).toBool());
|
||||
|
||||
foreach (int level, WebView::zoomLevels()) {
|
||||
@ -951,6 +952,7 @@ void Preferences::saveSettings()
|
||||
settings.setValue("LoadTabsOnActivation", ui->dontLoadTabsUntilSelected->isChecked());
|
||||
settings.setValue("DefaultZoomLevel", ui->defaultZoomLevel->currentIndex());
|
||||
settings.setValue("XSSAuditing", ui->xssAuditing->isChecked());
|
||||
settings.setValue("PrintElementBackground", ui->printEBackground->isChecked());
|
||||
settings.setValue("closeAppWithCtrlQ", ui->closeAppWithCtrlQ->isChecked());
|
||||
settings.setValue("UseNativeScrollbars", ui->useNativeScrollbars->isChecked());
|
||||
#ifdef Q_OS_WIN
|
||||
|
@ -1103,6 +1103,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="printEBackground">
|
||||
<property name="text">
|
||||
<string extracomment="when you are printing page (on printer), it determine whether to also print background (color, image) of html elements">Print element background</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="animateScrolling">
|
||||
<property name="text">
|
||||
|
Loading…
Reference in New Issue
Block a user