|
@ -11,7 +11,7 @@ Window { |
|
|
id: modalTransactionDialog |
|
|
id: modalTransactionDialog |
|
|
modality: Qt.ApplicationModal |
|
|
modality: Qt.ApplicationModal |
|
|
width: 520 |
|
|
width: 520 |
|
|
height: 500;//(paramsModel.count > 0 ? 500 : 300) |
|
|
height: 500; |
|
|
visible: false |
|
|
visible: false |
|
|
color: StateDialogStyle.generic.backgroundColor |
|
|
color: StateDialogStyle.generic.backgroundColor |
|
|
title: qsTr("Edit Transaction") |
|
|
title: qsTr("Edit Transaction") |
|
@ -25,7 +25,6 @@ Window { |
|
|
property var paramsModel: []; |
|
|
property var paramsModel: []; |
|
|
property bool useTransactionDefaultValue: false |
|
|
property bool useTransactionDefaultValue: false |
|
|
property alias stateAccounts: senderComboBox.model |
|
|
property alias stateAccounts: senderComboBox.model |
|
|
|
|
|
|
|
|
signal accepted; |
|
|
signal accepted; |
|
|
|
|
|
|
|
|
function open(index, item) { |
|
|
function open(index, item) { |
|
@ -87,6 +86,9 @@ Window { |
|
|
|
|
|
|
|
|
visible = true; |
|
|
visible = true; |
|
|
valueField.focus = true; |
|
|
valueField.focus = true; |
|
|
|
|
|
modalTransactionDialog.height = (paramsModel.length > 0 ? 500 : 300); |
|
|
|
|
|
paramLabel.visible = paramsModel.length > 0; |
|
|
|
|
|
paramScroll.visible = paramsModel.length > 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function loadFunctions(contractId) |
|
|
function loadFunctions(contractId) |
|
@ -326,16 +328,15 @@ Window { |
|
|
id: paramLabel |
|
|
id: paramLabel |
|
|
text: qsTr("Parameters:") |
|
|
text: qsTr("Parameters:") |
|
|
Layout.preferredWidth: 75 |
|
|
Layout.preferredWidth: 75 |
|
|
visible: true;//paramsModel.length > 0 |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ScrollView |
|
|
ScrollView |
|
|
{ |
|
|
{ |
|
|
|
|
|
id: paramScroll |
|
|
anchors.top: paramLabel.bottom |
|
|
anchors.top: paramLabel.bottom |
|
|
anchors.topMargin: 10 |
|
|
anchors.topMargin: 10 |
|
|
Layout.fillWidth: true |
|
|
Layout.fillWidth: true |
|
|
Layout.fillHeight: true |
|
|
Layout.fillHeight: true |
|
|
visible: true;//paramsModel.length > 0 |
|
|
|
|
|
StructView |
|
|
StructView |
|
|
{ |
|
|
{ |
|
|
id: typeLoader |
|
|
id: typeLoader |
|
|