Warning, /plasma-mobile/mycroft-plasmoid-mobile/plasmoid/contents/ui/WebViewType.qml is written in an unsupported language. File is not indexed.

0001 /* Copyright 2016 Aditya Mehra <aix.m@outlook.com>                            
0002 
0003     This library is free software; you can redistribute it and/or
0004     modify it under the terms of the GNU Lesser General Public
0005     License as published by the Free Software Foundation; either
0006     version 2.1 of the License, or (at your option) version 3, or any
0007     later version accepted by the membership of KDE e.V. (or its
0008     successor approved by the membership of KDE e.V.), which shall
0009     act as a proxy defined in Section 6 of version 3 of the license.
0010     
0011     This library is distributed in the hope that it will be useful,
0012     but WITHOUT ANY WARRANTY; without even the implied warranty of
0013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014     Lesser General Public License for more details.
0015     
0016     You should have received a copy of the GNU Lesser General Public
0017     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
0018 */
0019 
0020 import QtQuick 2.9
0021 import QtQml.Models 2.2
0022 import QtQuick.Controls 2.2
0023 import org.kde.plasma.components 2.0 as PlasmaComponents
0024 import org.kde.plasma.extras 2.0 as PlasmaExtras
0025 import org.kde.private.mycroftplasmoidmobile 1.0 as PlasmaLa
0026 import QtWebKit 3.0
0027 import QtWebKit.experimental 1.0
0028 
0029 Column {
0030                     spacing: 6
0031                     anchors.right: parent.right
0032                         
0033                     Row {
0034                         id: messageRow
0035                         spacing: 6
0036                             
0037                     Rectangle {
0038                         id: messageRect
0039                         width: cbwidth
0040                         radius: 2
0041                         height: newikiFlick.height
0042                         color: theme.backgroundColor
0043 
0044                         Flickable {
0045                             id: newikiFlick
0046                             width: messageRect.width
0047                             height: units.gridUnit * 10
0048 
0049                             WebView {
0050                                 id: wikiview
0051                                 anchors.fill: parent
0052                                 experimental.preferredMinimumContentsWidth: 450
0053                                 url: model.InputQuery
0054                                 
0055                                 Rectangle {
0056                                 id: hoverBg1
0057                                 anchors.right: parent.right
0058                                 anchors.rightMargin: 15
0059                                 anchors.top: parent.top
0060                                 anchors.topMargin: 5
0061                                 visible: true
0062                                 height: units.gridUnit * 2.2
0063                                 width: units.gridUnit * 2.2
0064                                 radius: 10
0065                                 z: 2
0066                                 color: theme.backgroundColor
0067                             
0068                             PlasmaComponents.ToolButton {
0069                                 id: viewExtendedScreen
0070                                 anchors.verticalCenter: parent.verticalCenter
0071                                 anchors.horizontalCenter: parent.horizontalCenter
0072                                 visible: true
0073                                 iconSource: "file-zoom-in"
0074                                 flat: false
0075                                 checked: false
0076                                 focus: false
0077                                 height: units.gridUnit * 2
0078                                 width: units.gridUnit * 2
0079                                 z: 10
0080                            
0081                            onClicked: {
0082                                 var browsrUrl  = model.InputQuery
0083                                 PlasmaLa.LaunchApp.runCommand("x-www-browser", browsrUrl) 
0084                                     }
0085                                 }
0086                             }
0087                             
0088                             }
0089                             ScrollIndicator.vertical: ScrollIndicator { }
0090                             
0091                                     }   
0092                                         }
0093                                             }
0094                                                 }