Skip to content

Commit 7c65560

Browse files
committed
Changed icon source
1 parent 245ffb1 commit 7c65560

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

ethereal/assets/qml/views/chain.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Ethereum 1.0
99
Rectangle {
1010
id: root
1111
property var title: "Network"
12-
property var iconFile: "../net.png"
12+
property var iconSource: "../net.png"
1313
property var secondary: "Hi"
1414
property var menuItem
1515

ethereal/assets/qml/views/history.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import QtQuick.Controls.Styles 1.1
77
import Ethereum 1.0
88

99
Rectangle {
10-
property var iconFile: "../tx.png"
10+
property var iconSource: "../tx.png"
1111
property var title: "Transactions"
1212
property var menuItem
1313

ethereal/assets/qml/views/info.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Ethereum 1.0
88

99
Rectangle {
1010
property var title: "Information"
11-
property var iconFile: "../heart.png"
11+
property var iconSource: "../heart.png"
1212
property var menuItem
1313

1414
objectName: "infoView"

ethereal/assets/qml/views/javascript.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Ethereum 1.0
88

99
Rectangle {
1010
property var title: "JavaScript"
11-
property var iconFile: "../tx.png"
11+
property var iconSource: "../tx.png"
1212
property var menuItem
1313

1414
objectName: "javascriptView"

ethereal/assets/qml/views/pending_tx.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Ethereum 1.0
88

99
Rectangle {
1010
property var title: "Pending Transactions"
11-
property var iconFile: "../tx.png"
11+
property var iconSource: "../tx.png"
1212
property var menuItem
1313

1414
objectName: "pendingTxView"

ethereal/assets/qml/views/transaction.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import QtQuick.Controls.Styles 1.1
77
import Ethereum 1.0
88

99
Rectangle {
10-
property var iconFile: "../new.png"
10+
property var iconSource: "../new.png"
1111
property var title: "New transaction"
1212
property var menuItem
1313

ethereal/assets/qml/views/wallet.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import Ethereum 1.0
99
Rectangle {
1010
id: root
1111
property var title: "Wallet"
12-
property var iconFile: "../wallet.png"
12+
property var iconSource: "../wallet.png"
1313
property var menuItem
1414

1515
objectName: "walletView"
1616
anchors.fill: parent
1717

1818
function onReady() {
19-
menuItem.secondary = eth.numberToHuman(eth.balanceAt(eth.key().address))
19+
menuItem.secondaryTitle = eth.numberToHuman(eth.balanceAt(eth.key().address))
2020
}
2121

2222
ListModel {

ethereal/assets/qml/wallet.qml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,12 @@ ApplicationWindow {
292292
view.visible = false
293293
view.anchors.fill = mainView
294294

295-
if( !view.hasOwnProperty("iconFile") ) {
296-
console.log("Could not load plugin. Property 'iconFile' not found on view.");
295+
if( !view.hasOwnProperty("iconSource") ) {
296+
console.log("Could not load plugin. Property 'iconSourc' not found on view.");
297297
return;
298298
}
299299

300-
var menuItem = menu.createMenuItem(view.iconFile, view, options);
300+
var menuItem = menu.createMenuItem(view.iconSource, view, options);
301301
if( view.hasOwnProperty("menuItem") ) {
302302
view.menuItem = menuItem;
303303
}
@@ -333,7 +333,7 @@ ApplicationWindow {
333333

334334
property alias title: label.text
335335
property alias icon: icon.source
336-
property alias secondary: secondary.text
336+
property alias secondaryTitle: secondary.text
337337

338338
width: 180
339339
height: 28
@@ -429,7 +429,7 @@ ApplicationWindow {
429429

430430
comp.view = view
431431
comp.title = view.title
432-
comp.icon = view.iconFile
432+
comp.icon = view.iconSource
433433
/*
434434
if(view.secondary !== undefined) {
435435
comp.secondary = view.secondary

0 commit comments

Comments
 (0)