- some fixed due of recent changes and some strings changed

- added a validator for the FCColorEntry GUI element such that only the valid chars are accepted
This commit is contained in:
Marius Stanciu
2020-06-01 21:22:03 +03:00
committed by Marius
parent 54407f6e50
commit cb5a20fda6
7 changed files with 11 additions and 21 deletions

View File

@@ -689,6 +689,9 @@ class FCColorEntry(QtWidgets.QFrame):
super().__init__(**kwargs)
self.entry = FCEntry()
regex = QtCore.QRegExp("[#A-Fa-f0-9]*")
validator = QtGui.QRegExpValidator(regex, self.entry)
self.entry.setValidator(validator)
self.button = QtWidgets.QPushButton()
self.button.setFixedSize(15, 15)