mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-26 15:34:59 +01:00
link hover
This commit is contained in:
parent
d6dd8494b4
commit
c666ab062f
@ -27,6 +27,9 @@ void LiteHtmlViewer::bindToBrowser(WebBrowser* browser) {
|
||||
browser->m_actionStop = new QAction(this);
|
||||
|
||||
connect(this, &LiteHtmlViewer::zoomFactorChanged, browser, &WebBrowser::onZoomFactorChanged);
|
||||
connect(this, &LiteHtmlViewer::linkHighlighted, browser, [browser](const QUrl& url) {
|
||||
browser->onLinkHovered(url.toString());
|
||||
});
|
||||
|
||||
// TODO: změna ikon, změna stavu akcí.
|
||||
|
||||
@ -39,7 +42,6 @@ void LiteHtmlViewer::bindToBrowser(WebBrowser* browser) {
|
||||
connect(this, &WebEngineViewer::iconChanged, browser, &WebBrowser::onIconChanged);
|
||||
|
||||
connect(page(), &WebEnginePage::windowCloseRequested, browser, &WebBrowser::closeRequested);
|
||||
connect(page(), &WebEnginePage::linkHovered, browser, &WebBrowser::onLinkHovered);
|
||||
*/
|
||||
}
|
||||
|
||||
|
@ -286,6 +286,7 @@ void WebEngineViewer::bindToBrowser(WebBrowser* browser) {
|
||||
browser->m_actionReload = pageAction(QWebEnginePage::WebAction::Reload);
|
||||
browser->m_actionStop = pageAction(QWebEnginePage::WebAction::Stop);
|
||||
|
||||
connect(this, &WebEngineViewer::zoomFactorChanged, browser, &WebBrowser::onZoomFactorChanged);
|
||||
connect(this, &WebEngineViewer::urlChanged, browser, &WebBrowser::updateUrl);
|
||||
connect(this, &WebEngineViewer::loadStarted, browser, &WebBrowser::onLoadingStarted);
|
||||
connect(this, &WebEngineViewer::loadProgress, browser, &WebBrowser::onLoadingProgress);
|
||||
|
Loading…
Reference in New Issue
Block a user