Changeset View
Changeset View
Standalone View
Standalone View
src/context/applets/wikipedia/package/contents/ui/main.qml
Context not available. | |||||
53 | Layout.alignment: Qt.AlignLeft | 53 | Layout.alignment: Qt.AlignLeft | ||
---|---|---|---|---|---|
54 | tooltip: i18n("Refresh") | 54 | tooltip: i18n("Refresh") | ||
55 | 55 | | |||
56 | onClicked: content.reload() | 56 | onClicked: WikipediaEngine.reloadWikipedia() | ||
57 | } | 57 | } | ||
58 | Item { | 58 | Item { | ||
59 | Layout.fillWidth: true | 59 | Layout.fillWidth: true | ||
Context not available. | |||||
98 | Layout.alignment: Qt.AlignBottom | 98 | Layout.alignment: Qt.AlignBottom | ||
99 | 99 | | |||
100 | onNavigationRequested: { | 100 | onNavigationRequested: { | ||
101 | request.action = WebEngineNavigationRequest.IgnoreRequest; | 101 | if (request.navigationType == WebEngineNavigationRequest.LinkClickedNavigation) { | ||
102 | WikipediaEngine.url = request.url; | 102 | request.action = WebEngineNavigationRequest.IgnoreRequest | ||
103 | WikipediaEngine.url = request.url | ||||
104 | } | ||||
103 | } | 105 | } | ||
104 | 106 | | |||
105 | Connections { | 107 | Connections { | ||
Context not available. |