8000 BUG FIX · mspacek/matplotlib@a1f3814 · GitHub
[go: up one dir, main page]

Skip to content

Commit a1f3814

Browse files
author
Patrick Marsh
committed
BUG FIX
Fix the incorrectly named Qt.pyqtSignature and Qt.pyqtProperty functions introduced in a previous merge
1 parent c001797 commit a1f3814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/qt4_editor/formlayout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def choose_color(self):
7979
def get_color(self):
8080
return self._color
8181

82-
@QtCore.pyqtSignature("QColor")
82+
@QtCore.Slot("QColor")
8383
def set_color(self, color):
8484
if color != self._color:
8585
self._color = color
@@ -88,7 +88,7 @@ def set_color(self, color):
8888
pixmap.fill(color)
8989
self.setIcon(QtGui.QIcon(pixmap))
9090

91-
color = QtCore.pyqtProperty("QColor", get_color, set_color)
91+
color = QtCore.Property("QColor", get_color, set_color)
9292

9393
def col2hex(color):
9494
"""Convert matplotlib color to hex before passing to Qt"""

0 commit comments

Comments
 (0)
0