mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
GIT_SILENT SiteSettings: Remove unused method
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
2e3e3749b4
commit
6f0249f78b
|
@ -305,24 +305,6 @@ void SiteSettingsManager::setDefaultPermission(const QWebEnginePage::Feature& fe
|
||||||
setDefaultPermission(option, value);
|
setDefaultPermission(option, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SiteSettingsManager::getDefaultOptionValue(const SiteSettingsManager::PageOptions& option)
|
|
||||||
{
|
|
||||||
switch (option) {
|
|
||||||
case poAllowJavascript:
|
|
||||||
return mApp->webSettings()->testAttribute(QWebEngineSettings::JavascriptEnabled);
|
|
||||||
case poAllowImages:
|
|
||||||
return mApp->webSettings()->testAttribute(QWebEngineSettings::AutoLoadImages);
|
|
||||||
/* At the moment, no idea */
|
|
||||||
case poAllowCookies:
|
|
||||||
return false;
|
|
||||||
case poZoomLevel:
|
|
||||||
return false;
|
|
||||||
default:
|
|
||||||
qWarning() << "Unknown option" << option;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SiteSettingsManager::PageOptions SiteSettingsManager::optionFromWebEngineFeature(const QWebEnginePage::Feature& feature) const
|
SiteSettingsManager::PageOptions SiteSettingsManager::optionFromWebEngineFeature(const QWebEnginePage::Feature& feature) const
|
||||||
{
|
{
|
||||||
switch (feature) {
|
switch (feature) {
|
||||||
|
|
|
@ -116,7 +116,6 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString optionToSqlColumn(const PageOptions &option);
|
QString optionToSqlColumn(const PageOptions &option);
|
||||||
bool getDefaultOptionValue(const PageOptions &option);
|
|
||||||
PageOptions optionFromWebEngineFeature(const QWebEnginePage::Feature &feature) const;
|
PageOptions optionFromWebEngineFeature(const QWebEnginePage::Feature &feature) const;
|
||||||
Permission testAttribute(const QWebEngineSettings::WebAttribute attribute) const;
|
Permission testAttribute(const QWebEngineSettings::WebAttribute attribute) const;
|
||||||
Permission intToPermission(const int permission) const;
|
Permission intToPermission(const int permission) const;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user