Explorar o código

Do not use Mac native color dialog

Michael Pitidis %!s(int64=13) %!d(string=hai) anos
pai
achega
115edf9749
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      colorDialog.py

+ 2 - 0
colorDialog.py

@@ -8,6 +8,8 @@ class ColorDialog(QColorDialog):
     def __init__(self, parent=None):
         super(ColorDialog, self).__init__(parent)
         self.setOption(QColorDialog.ShowAlphaChannel)
+        # The Mac native dialog does not support our restore button.
+        self.setOption(QColorDialog.DontUseNativeDialog)
         ## Add a restore defaults button.
         # The default is set at invocation time, so that it
         # works across dialogs for different elements.