Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:Staging:adi:134
kchmviewer
qtwebengine-3-synchronize-url.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qtwebengine-3-synchronize-url.patch of Package kchmviewer
From 6b9e95ba8abfc5601e43b7a4d63ff0faa846fe13 Mon Sep 17 00:00:00 2001 From: "i.Dark_Templar" <darktemplar@dark-templar-archives.net> Date: Fri, 11 Jun 2021 21:02:23 +0300 Subject: [PATCH 3/3] qtwebengine: synchronize url with navigation panel --- src/viewwindow_webengine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/viewwindow_webengine.cpp b/src/viewwindow_webengine.cpp index df3859f..1bcdf6f 100644 --- a/src/viewwindow_webengine.cpp +++ b/src/viewwindow_webengine.cpp @@ -30,6 +30,7 @@ #include "config.h" #include "viewwindow_webengine.h" #include "mainwindow.h" +#include "navigationpanel.h" #include "viewwindowmgr.h" #include "ebook_chm.h" #include "ebook_epub.h" @@ -86,10 +87,15 @@ ViewWindow::ViewWindow( QWidget * parent ) pal.setColor( QPalette::Inactive, QPalette::Highlight, pal.color(QPalette::Active, QPalette::Highlight) ); pal.setColor( QPalette::Inactive, QPalette::HighlightedText, pal.color(QPalette::Active, QPalette::HighlightedText) ); setPalette( pal ); + + connect(this, &QWebEngineView::urlChanged, [this] (const QUrl &url) { + ::mainWindow->navigator()->findUrlInContents(url); + }); } ViewWindow::~ViewWindow() { + disconnect(this, &QWebEngineView::urlChanged, nullptr, nullptr); } void ViewWindow::invalidate( )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor