Merge branch 'linktooltips' into findBack

This commit is contained in:
MichaelBeeu 2014-02-09 04:03:54 -06:00
commit 40ba228be1
2 changed files with 7 additions and 6 deletions

View File

@ -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);

View File

@ -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() {