Skip to content

Commit 58a07dc

Browse files
committed
Support trillions in value field
1 parent bed5440 commit 58a07dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

OpenNumismat/EditCoinDialog/FormItems.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def validate(self, input_, pos):
107107

108108
class DenominationValidator(DoubleValidator):
109109
def __init__(self, parent=None):
110-
super().__init__(0, 9999999999., 2, parent)
110+
super().__init__(0, 9999999999999., 2, parent)
111111
self.setNotation(QDoubleValidator.StandardNotation)
112112

113113
def validate(self, input_, pos):
@@ -970,7 +970,8 @@ def _updateText(self):
970970
class DenominationEdit(MoneyEdit):
971971
def __init__(self, parent=None):
972972
super().__init__(parent)
973-
973+
self.setMaxLength(20)
974+
974975
validator = DenominationValidator()
975976
self.setValidator(validator)
976977

0 commit comments

Comments
 (0)