Changeset View
Changeset View
Standalone View
Standalone View
plasmoid/contents/ui/WebViewType.qml
- This file was added.
1 | import QtQuick 2.0 | ||||
---|---|---|---|---|---|
2 | import QtQml.Models 2.2 | ||||
3 | import QtQuick.Controls 2.0 | ||||
4 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||||
5 | import org.kde.plasma.extras 2.0 as PlasmaExtras | ||||
6 | import org.kde.private.mycroftplasmoid 1.0 as PlasmaLa | ||||
7 | import QtWebKit 3.0 | ||||
8 | import QtWebKit.experimental 1.0 | ||||
9 | | ||||
10 | Column { | ||||
11 | spacing: 6 | ||||
12 | anchors.right: parent.right | ||||
13 | | ||||
14 | Row { | ||||
15 | id: messageRow | ||||
16 | spacing: 6 | ||||
17 | | ||||
18 | Rectangle { | ||||
19 | id: messageRect | ||||
20 | width: cbwidth | ||||
21 | radius: 2 | ||||
22 | height: newikiFlick.height | ||||
23 | color: theme.backgroundColor | ||||
24 | | ||||
25 | Flickable { | ||||
26 | id: newikiFlick | ||||
27 | width: messageRect.width | ||||
28 | height: units.gridUnit * 10 | ||||
29 | | ||||
30 | WebView { | ||||
31 | id: wikiview | ||||
32 | anchors.fill: parent | ||||
33 | experimental.preferredMinimumContentsWidth: 450 | ||||
34 | url: model.InputQuery | ||||
35 | | ||||
36 | Rectangle { | ||||
37 | id: hoverBg1 | ||||
38 | anchors.right: parent.right | ||||
39 | anchors.rightMargin: 15 | ||||
40 | anchors.top: parent.top | ||||
41 | anchors.topMargin: 5 | ||||
42 | visible: true | ||||
43 | height: units.gridUnit * 2.2 | ||||
44 | width: units.gridUnit * 2.2 | ||||
45 | radius: 10 | ||||
46 | z: 2 | ||||
47 | color: theme.backgroundColor | ||||
48 | | ||||
49 | PlasmaComponents.ToolButton { | ||||
50 | id: viewExtendedScreen | ||||
51 | anchors.verticalCenter: parent.verticalCenter | ||||
52 | anchors.horizontalCenter: parent.horizontalCenter | ||||
53 | visible: true | ||||
54 | iconSource: "file-zoom-in" | ||||
55 | flat: false | ||||
56 | checked: false | ||||
57 | focus: false | ||||
58 | height: units.gridUnit * 2 | ||||
59 | width: units.gridUnit * 2 | ||||
60 | z: 10 | ||||
61 | | ||||
62 | onClicked: { | ||||
63 | var browsrUrl = model.InputQuery | ||||
64 | PlasmaLa.LaunchApp.runCommand("x-www-browser", browsrUrl) | ||||
65 | } | ||||
66 | } | ||||
67 | } | ||||
68 | | ||||
69 | } | ||||
70 | ScrollIndicator.vertical: ScrollIndicator { } | ||||
71 | | ||||
72 | } | ||||
73 | } | ||||
74 | } | ||||
75 | } |