File tree Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Expand file tree Collapse file tree 8 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Ethereum 1.0
9
9
Rectangle {
10
10
id: root
11
11
property var title: " Network"
12
- property var iconFile : " ../net.png"
12
+ property var iconSource : " ../net.png"
13
13
property var secondary: " Hi"
14
14
property var menuItem
15
15
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import QtQuick.Controls.Styles 1.1
7
7
import Ethereum 1.0
8
8
9
9
Rectangle {
10
- property var iconFile : " ../tx.png"
10
+ property var iconSource : " ../tx.png"
11
11
property var title: " Transactions"
12
12
property var menuItem
13
13
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Ethereum 1.0
8
8
9
9
Rectangle {
10
10
property var title: " Information"
11
- property var iconFile : " ../heart.png"
11
+ property var iconSource : " ../heart.png"
12
12
property var menuItem
13
13
14
14
objectName: " infoView"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Ethereum 1.0
8
8
9
9
Rectangle {
10
10
property var title: " JavaScript"
11
- property var iconFile : " ../tx.png"
11
+ property var iconSource : " ../tx.png"
12
12
property var menuItem
13
13
14
14
objectName: " javascriptView"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import Ethereum 1.0
8
8
9
9
Rectangle {
10
10
property var title: " Pending Transactions"
11
- property var iconFile : " ../tx.png"
11
+ property var iconSource : " ../tx.png"
12
12
property var menuItem
13
13
14
14
objectName: " pendingTxView"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import QtQuick.Controls.Styles 1.1
7
7
import Ethereum 1.0
8
8
9
9
Rectangle {
10
- property var iconFile : " ../new.png"
10
+ property var iconSource : " ../new.png"
11
11
property var title: " New transaction"
12
12
property var menuItem
13
13
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ import Ethereum 1.0
9
9
Rectangle {
10
10
id: root
11
11
property var title: " Wallet"
12
- property var iconFile : " ../wallet.png"
12
+ property var iconSource : " ../wallet.png"
13
13
property var menuItem
14
14
15
15
objectName: " walletView"
16
16
anchors .fill : parent
17
17
18
18
function onReady () {
19
- menuItem .secondary = eth .numberToHuman (eth .balanceAt (eth .key ().address ))
19
+ menuItem .secondaryTitle = eth .numberToHuman (eth .balanceAt (eth .key ().address ))
20
20
}
21
21
22
22
ListModel {
Original file line number Diff line number Diff line change @@ -292,12 +292,12 @@ ApplicationWindow {
292
292
view .visible = false
293
293
view .anchors .fill = mainView
294
294
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." );
297
297
return ;
298
298
}
299
299
300
- var menuItem = menu .createMenuItem (view .iconFile , view, options);
300
+ var menuItem = menu .createMenuItem (view .iconSource , view, options);
301
301
if ( view .hasOwnProperty (" menuItem" ) ) {
302
302
view .menuItem = menuItem;
303
303
}
@@ -333,7 +333,7 @@ ApplicationWindow {
333
333
334
334
property alias title: label .text
335
335
property alias icon: icon .source
336
- property alias secondary : secondary .text
336
+ property alias secondaryTitle : secondary .text
337
337
338
338
width: 180
339
339
height: 28
@@ -429,7 +429,7 @@ ApplicationWindow {
429
429
430
430
comp .view = view
431
431
comp .title = view .title
432
- comp .icon = view .iconFile
432
+ comp .icon = view .iconSource
433
433
/*
434
434
if(view.secondary !== undefined) {
435
435
comp.secondary = view.secondary
You can’t perform that action at this time.
0 commit comments