Changed icon source
This commit is contained in:
parent
245ffb1123
commit
7c65560f20
@ -9,7 +9,7 @@ import Ethereum 1.0
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
property var title: "Network"
|
property var title: "Network"
|
||||||
property var iconFile: "../net.png"
|
property var iconSource: "../net.png"
|
||||||
property var secondary: "Hi"
|
property var secondary: "Hi"
|
||||||
property var menuItem
|
property var menuItem
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import QtQuick.Controls.Styles 1.1
|
|||||||
import Ethereum 1.0
|
import Ethereum 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property var iconFile: "../tx.png"
|
property var iconSource: "../tx.png"
|
||||||
property var title: "Transactions"
|
property var title: "Transactions"
|
||||||
property var menuItem
|
property var menuItem
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import Ethereum 1.0
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property var title: "Information"
|
property var title: "Information"
|
||||||
property var iconFile: "../heart.png"
|
property var iconSource: "../heart.png"
|
||||||
property var menuItem
|
property var menuItem
|
||||||
|
|
||||||
objectName: "infoView"
|
objectName: "infoView"
|
||||||
|
@ -8,7 +8,7 @@ import Ethereum 1.0
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property var title: "JavaScript"
|
property var title: "JavaScript"
|
||||||
property var iconFile: "../tx.png"
|
property var iconSource: "../tx.png"
|
||||||
property var menuItem
|
property var menuItem
|
||||||
|
|
||||||
objectName: "javascriptView"
|
objectName: "javascriptView"
|
||||||
|
@ -8,7 +8,7 @@ import Ethereum 1.0
|
|||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property var title: "Pending Transactions"
|
property var title: "Pending Transactions"
|
||||||
property var iconFile: "../tx.png"
|
property var iconSource: "../tx.png"
|
||||||
property var menuItem
|
property var menuItem
|
||||||
|
|
||||||
objectName: "pendingTxView"
|
objectName: "pendingTxView"
|
||||||
|
@ -7,7 +7,7 @@ import QtQuick.Controls.Styles 1.1
|
|||||||
import Ethereum 1.0
|
import Ethereum 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property var iconFile: "../new.png"
|
property var iconSource: "../new.png"
|
||||||
property var title: "New transaction"
|
property var title: "New transaction"
|
||||||
property var menuItem
|
property var menuItem
|
||||||
|
|
||||||
|
@ -9,14 +9,14 @@ import Ethereum 1.0
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
property var title: "Wallet"
|
property var title: "Wallet"
|
||||||
property var iconFile: "../wallet.png"
|
property var iconSource: "../wallet.png"
|
||||||
property var menuItem
|
property var menuItem
|
||||||
|
|
||||||
objectName: "walletView"
|
objectName: "walletView"
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
function onReady() {
|
function onReady() {
|
||||||
menuItem.secondary = eth.numberToHuman(eth.balanceAt(eth.key().address))
|
menuItem.secondaryTitle = eth.numberToHuman(eth.balanceAt(eth.key().address))
|
||||||
}
|
}
|
||||||
|
|
||||||
ListModel {
|
ListModel {
|
||||||
|
@ -292,12 +292,12 @@ ApplicationWindow {
|
|||||||
view.visible = false
|
view.visible = false
|
||||||
view.anchors.fill = mainView
|
view.anchors.fill = mainView
|
||||||
|
|
||||||
if( !view.hasOwnProperty("iconFile") ) {
|
if( !view.hasOwnProperty("iconSource") ) {
|
||||||
console.log("Could not load plugin. Property 'iconFile' not found on view.");
|
console.log("Could not load plugin. Property 'iconSourc' not found on view.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var menuItem = menu.createMenuItem(view.iconFile, view, options);
|
var menuItem = menu.createMenuItem(view.iconSource, view, options);
|
||||||
if( view.hasOwnProperty("menuItem") ) {
|
if( view.hasOwnProperty("menuItem") ) {
|
||||||
view.menuItem = menuItem;
|
view.menuItem = menuItem;
|
||||||
}
|
}
|
||||||
@ -333,7 +333,7 @@ ApplicationWindow {
|
|||||||
|
|
||||||
property alias title: label.text
|
property alias title: label.text
|
||||||
property alias icon: icon.source
|
property alias icon: icon.source
|
||||||
property alias secondary: secondary.text
|
property alias secondaryTitle: secondary.text
|
||||||
|
|
||||||
width: 180
|
width: 180
|
||||||
height: 28
|
height: 28
|
||||||
@ -429,7 +429,7 @@ ApplicationWindow {
|
|||||||
|
|
||||||
comp.view = view
|
comp.view = view
|
||||||
comp.title = view.title
|
comp.title = view.title
|
||||||
comp.icon = view.iconFile
|
comp.icon = view.iconSource
|
||||||
/*
|
/*
|
||||||
if(view.secondary !== undefined) {
|
if(view.secondary !== undefined) {
|
||||||
comp.secondary = view.secondary
|
comp.secondary = view.secondary
|
||||||
|
Loading…
Reference in New Issue
Block a user