- 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user