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