mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-26 07:37:15 +03:00
Merge branch 'linktooltips' into findBack
This commit is contained in:
commit
40ba228be1
@ -191,12 +191,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
displayViewActions();
|
||||
});
|
||||
|
||||
// Display tooltip showing link location when hovered over.
|
||||
connect(ui->webView->page(), &QWebPage::linkHovered, [&](const QString &link, const QString &title, const QString &textContent){
|
||||
if( !link.startsWith("file:///") ){
|
||||
setToolTip( link );
|
||||
}
|
||||
});
|
||||
|
||||
connect(&zealSearch, &ZealSearchModel::queryCompleted, [&]() {
|
||||
ui->treeView->setModel(&zealSearch);
|
||||
|
@ -40,6 +40,13 @@ SearchableWebView::SearchableWebView(QWidget *parent) :
|
||||
connect(&webView, &QWebView::loadStarted, [&]() {
|
||||
lineEdit.clear();
|
||||
});
|
||||
|
||||
// Display tooltip showing link location when hovered over.
|
||||
connect(webView.page(), &QWebPage::linkHovered, [&](const QString &link, const QString &title, const QString &textContent){
|
||||
if( !link.startsWith("file:///") ){
|
||||
setToolTip( link );
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void SearchableWebView::moveLineEdit() {
|
||||
|
Loading…
Reference in New Issue
Block a user