Skip to content
Browse files

[Desktop] Update to API changes in QtWebKit

This unbreaks the middle-click/ctrl-click and makes the hovered link
be shown in the bottom of the window again.

Reviewed-by: Hugo Parente Lima
  • Loading branch information...
1 parent 724140a commit c60e16c0e2cc3240731baa4b686d68b2b8fa9547 Caio Marcelo de Oliveira Filho committed Mar 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/desktop/qml/PageWidget.qml
View
6 src/desktop/qml/PageWidget.qml
@@ -67,7 +67,7 @@ Item {
}
onLinkHovered: {
- hoveredLink.text = url.toString()
+ hoveredLink.text = hoveredUrl.toString()
}
onTitleChanged: { root.title = title }
@@ -78,8 +78,8 @@ Item {
}
onNavigationRequested: {
- if (request.button == Qt.MiddleButton
- || (request.button == Qt.LeftButton && request.modifiers & Qt.ControlModifier)) {
+ if (request.mouseButton == Qt.MiddleButton
+ || (request.mouseButton == Qt.LeftButton && request.keyboardModifiers & Qt.ControlModifier)) {
browserView.openTabWithUrl(request.url)
request.action = WebView.IgnoreRequest
return

0 comments on commit c60e16c

Please sign in to comment.
Something went wrong with that request. Please try again.