mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-27 07:46:17 +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);
|
browser->m_actionStop = new QAction(this);
|
||||||
|
|
||||||
connect(this, &LiteHtmlViewer::zoomFactorChanged, browser, &WebBrowser::onZoomFactorChanged);
|
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í.
|
// 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(this, &WebEngineViewer::iconChanged, browser, &WebBrowser::onIconChanged);
|
||||||
|
|
||||||
connect(page(), &WebEnginePage::windowCloseRequested, browser, &WebBrowser::closeRequested);
|
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_actionReload = pageAction(QWebEnginePage::WebAction::Reload);
|
||||||
browser->m_actionStop = pageAction(QWebEnginePage::WebAction::Stop);
|
browser->m_actionStop = pageAction(QWebEnginePage::WebAction::Stop);
|
||||||
|
|
||||||
|
connect(this, &WebEngineViewer::zoomFactorChanged, browser, &WebBrowser::onZoomFactorChanged);
|
||||||
connect(this, &WebEngineViewer::urlChanged, browser, &WebBrowser::updateUrl);
|
connect(this, &WebEngineViewer::urlChanged, browser, &WebBrowser::updateUrl);
|
||||||
connect(this, &WebEngineViewer::loadStarted, browser, &WebBrowser::onLoadingStarted);
|
connect(this, &WebEngineViewer::loadStarted, browser, &WebBrowser::onLoadingStarted);
|
||||||
connect(this, &WebEngineViewer::loadProgress, browser, &WebBrowser::onLoadingProgress);
|
connect(this, &WebEngineViewer::loadProgress, browser, &WebBrowser::onLoadingProgress);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user