|
|
@ -44,8 +44,6 @@ Window { |
|
|
|
isDefault = setDefault; |
|
|
|
titleField.focus = true; |
|
|
|
defaultCheckBox.enabled = !isDefault; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function close() { |
|
|
@ -67,8 +65,7 @@ Window { |
|
|
|
id: regularFont |
|
|
|
} |
|
|
|
|
|
|
|
Rectangle |
|
|
|
{ |
|
|
|
Rectangle { |
|
|
|
anchors.fill: parent |
|
|
|
anchors.margins: 10 |
|
|
|
color: StateDialogStyle.generic.backgroundColor |
|
|
@ -114,8 +111,7 @@ Window { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ColumnLayout |
|
|
|
{ |
|
|
|
ColumnLayout { |
|
|
|
anchors.top: dialogContent.bottom |
|
|
|
anchors.topMargin: 5 |
|
|
|
spacing: 5 |
|
|
@ -132,8 +128,7 @@ Window { |
|
|
|
onClicked: transactionsModel.addTransaction() |
|
|
|
height: 5 |
|
|
|
width: 5 |
|
|
|
style: ButtonStyle |
|
|
|
{ |
|
|
|
style: ButtonStyle { |
|
|
|
label: Text { |
|
|
|
font.family: regularFont.name |
|
|
|
text: qsTr("+") |
|
|
@ -165,7 +160,9 @@ Window { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
RowLayout { |
|
|
|
|
|
|
|
RowLayout |
|
|
|
{ |
|
|
|
anchors.bottom: parent.bottom |
|
|
|
anchors.right: parent.right; |
|
|
|
|
|
|
@ -183,9 +180,6 @@ Window { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ListModel { |
|
|
|
id: transactionsModel |
|
|
|
|
|
|
@ -229,8 +223,7 @@ Window { |
|
|
|
visible: !stdContract |
|
|
|
Layout.fillHeight: true |
|
|
|
onClicked: transactionsModel.editTransaction(index) |
|
|
|
style: ButtonStyle |
|
|
|
{ |
|
|
|
style: ButtonStyle { |
|
|
|
label: Text { |
|
|
|
font.family: regularFont.name |
|
|
|
text: qsTr("Edit") |
|
|
@ -247,8 +240,7 @@ Window { |
|
|
|
text: qsTr("Delete"); |
|
|
|
Layout.fillHeight: true |
|
|
|
onClicked: transactionsModel.deleteTransaction(index) |
|
|
|
style: ButtonStyle |
|
|
|
{ |
|
|
|
style: ButtonStyle { |
|
|
|
label: Text { |
|
|
|
font.family: regularFont.name |
|
|
|
text: qsTr("Delete") |
|
|
@ -264,9 +256,11 @@ Window { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
TransactionDialog { |
|
|
|
TransactionDialog |
|
|
|
{ |
|
|
|
id: transactionDialog |
|
|
|
onAccepted: { |
|
|
|
onAccepted: |
|
|
|
{ |
|
|
|
var item = transactionDialog.getItem(); |
|
|
|
|
|
|
|
if (transactionDialog.transactionIndex < transactionsModel.count) { |
|
|
|