|
|
@ -1,6 +1,6 @@ |
|
|
|
import QtQuick 2.2 |
|
|
|
import QtQuick.Controls 1.1 |
|
|
|
import QtQuick.Dialogs 1.1 |
|
|
|
import QtQuick.Dialogs 1.2 |
|
|
|
import QtQuick.Layouts 1.1 |
|
|
|
import QtQuick.Window 2.0 |
|
|
|
import QtQuick.Controls.Styles 1.3 |
|
|
@ -9,7 +9,7 @@ import "js/QEtherHelper.js" as QEtherHelper |
|
|
|
import "js/TransactionHelper.js" as TransactionHelper |
|
|
|
import "." |
|
|
|
|
|
|
|
Window { |
|
|
|
Dialog { |
|
|
|
id: modalStateDialog |
|
|
|
modality: Qt.ApplicationModal |
|
|
|
|
|
|
@ -17,7 +17,6 @@ Window { |
|
|
|
height: 480 |
|
|
|
title: qsTr("Edit State") |
|
|
|
visible: false |
|
|
|
color: StateDialogStyle.generic.backgroundColor |
|
|
|
|
|
|
|
property alias stateTitle: titleField.text |
|
|
|
property alias isDefault: defaultCheckBox.checked |
|
|
@ -46,9 +45,6 @@ Window { |
|
|
|
stateAccounts.push(item.accounts[k]); |
|
|
|
} |
|
|
|
|
|
|
|
modalStateDialog.setX((Screen.width - width) / 2); |
|
|
|
modalStateDialog.setY((Screen.height - height) / 2); |
|
|
|
|
|
|
|
visible = true; |
|
|
|
isDefault = setDefault; |
|
|
|
titleField.focus = true; |
|
|
@ -70,14 +66,16 @@ Window { |
|
|
|
item.accounts = stateAccounts; |
|
|
|
return item; |
|
|
|
} |
|
|
|
|
|
|
|
contentItem: |
|
|
|
Rectangle { |
|
|
|
color: StateDialogStyle.generic.backgroundColor |
|
|
|
anchors.fill: parent |
|
|
|
ColumnLayout { |
|
|
|
anchors.fill: parent |
|
|
|
anchors.margins: 10 |
|
|
|
ColumnLayout { |
|
|
|
id: dialogContent |
|
|
|
anchors.top: parent.top |
|
|
|
|
|
|
|
RowLayout |
|
|
|
{ |
|
|
|
Layout.fillWidth: true |
|
|
@ -302,6 +300,7 @@ Window { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ListModel { |
|
|
|
id: accountsModel |
|
|
|