Clean up a lot more namespace flags
This commit is contained in:
@@ -258,7 +258,7 @@ class NColourLabel(QLabel):
|
||||
font.setWeight(QFont.Weight.Bold if bold else QFont.Weight.Normal)
|
||||
if color:
|
||||
colour = self.palette()
|
||||
colour.setColor(QPalette.WindowText, color)
|
||||
colour.setColor(QPalette.ColorRole.WindowText, color)
|
||||
self.setPalette(colour)
|
||||
|
||||
self.setFont(font)
|
||||
|
||||
Reference in New Issue
Block a user