Warning, /plasma-mobile/mycroft-plasmoid-mobile/plasmoid/contents/ui/StockPriceWidget.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.0 0021 import QtQuick.Window 2.2 0022 import QtQuick.Layouts 1.3 0023 import QtQuick.Controls 2.0 0024 import QtQml.Models 2.2 0025 import org.kde.plasma.core 2.0 as PlasmaCore 0026 import org.kde.plasma.plasmoid 2.0 0027 import org.kde.plasma.components 2.0 as PlasmaComponents 0028 import org.kde.plasma.extras 2.0 as PlasmaExtras 0029 0030 Column { 0031 spacing: 6 0032 //anchors.right: parent.right 0033 //anchors.left: parent.left 0034 0035 //readonly property bool sentByMe: model.recipient !== "Me" 0036 // property alias mssg: messageText.text 0037 property alias currentstockprice: stockWidgetPrice.text 0038 property alias currentstocksymbol: stockWidgetSymbol.text 0039 0040 0041 Row { 0042 id: messageRow 0043 spacing: 6 0044 0045 Rectangle{ 0046 id: messageWrapper 0047 width: cbwidth 0048 height: messageRect.height 0049 color: theme.backgroundColor 0050 0051 Rectangle { 0052 id: messageRect 0053 width: cbwidth / 1.1 0054 height: messageText.implicitHeight + 24 0055 //anchors.right: avatar.right 0056 color: theme.backgroundColor 0057 0058 PlasmaComponents.Label { 0059 id: stockWidgetHeader 0060 color: "#ffffff" 0061 text: i18n("Stock Price Info") 0062 style: Text.Raised 0063 font.italic: false 0064 textFormat: Text.AutoText 0065 anchors.top: parent.top 0066 anchors.topMargin: 30 0067 wrapMode: Text.NoWrap 0068 font.bold: true 0069 font.family: "Times New Roman" 0070 anchors.right: parent.right 0071 anchors.rightMargin: 0 0072 anchors.left: parent.left 0073 anchors.leftMargin: 10 0074 font.pixelSize: 30 0075 } 0076 0077 PlasmaComponents.Label { 0078 id: stockWidgetSymbol 0079 color: "#ffffff" 0080 text: i18n("Text") 0081 font.bold: true 0082 anchors.top: stockWidgetHeader.bottom 0083 anchors.topMargin: 15 0084 anchors.right: parent.right 0085 style: Text.Raised 0086 font.family: "Times New Roman" 0087 anchors.rightMargin: 0 0088 anchors.left: parent.left 0089 anchors.leftMargin: 40 0090 font.pixelSize: 35 0091 0092 PlasmaComponents.Label { 0093 id: stockWidgetPriceLabel 0094 color: "#ffffff" 0095 text: i18n("Stock Price:") 0096 font.italic: true 0097 font.family: "Times New Roman" 0098 style: Text.Raised 0099 anchors.verticalCenter: parent.verticalCenter 0100 anchors.right: parent.right 0101 anchors.rightMargin: 0 0102 anchors.left: parent.left 0103 anchors.leftMargin: 150 0104 font.pixelSize: 24 0105 0106 PlasmaComponents.Label { 0107 id: stockWidgetPrice 0108 color: "#ffffff" 0109 text: i18n("128.89") 0110 font.italic: true 0111 style: Text.Raised 0112 font.family: "Times New Roman" 0113 font.bold: true 0114 anchors.verticalCenter: parent.verticalCenter 0115 anchors.left: parent.left 0116 anchors.leftMargin: 124 0117 anchors.right: parent.right 0118 anchors.rightMargin: 0 0119 font.pixelSize: 27 0120 } 0121 } 0122 } 0123 0124 } 0125 } 0126 } 0127 }