Commit ccbf0db8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Update settings

parent 7fc253c1
Pipeline #65746 passed with stage
in 11 minutes and 14 seconds
...@@ -131,6 +131,11 @@ void ArticleViewerWebEngine::execPrintPreviewPage(QPrinter *printer, int timeout ...@@ -131,6 +131,11 @@ void ArticleViewerWebEngine::execPrintPreviewPage(QPrinter *printer, int timeout
} }
} }
void ArticleViewerWebEngine::updateSecurity()
{
mExternalReference->setAllowExternalContent(Settings::self()->loadExternalReferences());
}
void ArticleViewerWebEngine::slotWebPageMutedOrAudibleChanged() void ArticleViewerWebEngine::slotWebPageMutedOrAudibleChanged()
{ {
Q_EMIT webPageMutedOrAudibleChanged(page()->isAudioMuted(), page()->recentlyAudible()); Q_EMIT webPageMutedOrAudibleChanged(page()->isAudioMuted(), page()->recentlyAudible());
......
...@@ -64,6 +64,8 @@ public: ...@@ -64,6 +64,8 @@ public:
void execPrintPreviewPage(QPrinter *printer, int timeout); void execPrintPreviewPage(QPrinter *printer, int timeout);
virtual void updateSecurity();
protected: protected:
QUrl mCurrentUrl; QUrl mCurrentUrl;
KActionCollection *const mActionCollection; KActionCollection *const mActionCollection;
......
...@@ -362,6 +362,7 @@ void ArticleViewerWidget::updateAfterConfigChanged() ...@@ -362,6 +362,7 @@ void ArticleViewerWidget::updateAfterConfigChanged()
slotShowSummary(m_node); slotShowSummary(m_node);
break; break;
} }
m_articleViewerWidgetNg->articleViewerNg()->updateSecurity();
} }
void ArticleViewerWidget::reload() void ArticleViewerWidget::reload()
......
...@@ -56,6 +56,11 @@ AkrWebEngineViewer::~AkrWebEngineViewer() ...@@ -56,6 +56,11 @@ AkrWebEngineViewer::~AkrWebEngineViewer()
{ {
} }
void AkrWebEngineViewer::updateSecurity()
{
// Nothing
}
void AkrWebEngineViewer::contextMenuEvent(QContextMenuEvent *e) void AkrWebEngineViewer::contextMenuEvent(QContextMenuEvent *e)
{ {
displayContextMenu(e->pos()); displayContextMenu(e->pos());
......
...@@ -17,6 +17,7 @@ class AkrWebEngineViewer : public ArticleViewerWebEngine ...@@ -17,6 +17,7 @@ class AkrWebEngineViewer : public ArticleViewerWebEngine
public: public:
explicit AkrWebEngineViewer(KActionCollection *ac, QWidget *parent = nullptr); explicit AkrWebEngineViewer(KActionCollection *ac, QWidget *parent = nullptr);
~AkrWebEngineViewer() override; ~AkrWebEngineViewer() override;
void updateSecurity() override;
protected: protected:
void displayContextMenu(const QPoint &pos) override; void displayContextMenu(const QPoint &pos) override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment