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