File tree 1 file changed +1
-24
lines changed
Filter options
lib/matplotlib/backends/qt4_editor 1 file changed +1
-24
lines changed
Original file line number Diff line number Diff line change @@ -79,42 +79,21 @@ def choose_color(self):
79
79
def get_color (self ):
80
80
return self ._color
81
81
82
- < << << << HEAD
83
82
@QtCore .Slot ("QColor" )
84
- == == == =
85
- << << << < HEAD
86
- @pyqtSignature ("QColor" )
87
- == == == =
88
- @QtCore .Slot ("QColor" )
89
- >> >> >> > 8 bba2a4 ... Merge pull request #2328 from mspacek/qtapi
90
- >> >> >> > upstream / v1 .3 .x
91
83
def set_color (self , color ):
92
84
if color != self ._color :
93
85
self ._color = color
94
86
self .emit (QtCore .SIGNAL ("colorChanged(QColor)" ), self ._color )
95
87
pixmap = QtGui .QPixmap (self .iconSize ())
96
88
pixmap .fill (color )
97
- << << << < HEAD
98
- self .setIcon (QtGui .QIcon (pixmap ))
99
- == == == =
100
- << << << < HEAD
101
- self .setIcon (QIcon (pixmap ))
102
- == == == =
103
89
self .setIcon (QtGui .QIcon (pixmap ))
104
90
105
91
color = QtCore .Property ("QColor" , get_color , set_color )
106
- >> >> >> > 8 bba2a4 ... Merge pull request #2328 from mspacek/qtapi
107
- > >> >> >> upstream / v1 .3. x
108
92
109
- color = QtCore .Property ("QColor" , get_color , set_color )
110
-
111
- < << << << HEAD
112
93
def col2hex (color ):
113
94
"""Convert matplotlib color to hex before passing to Qt"""
114
95
return rgb2hex (colorConverter .to_rgb (color ))
115
- == == == =
116
- << << << < HEAD
117
- == == == =
96
+
118
97
def to_qcolor (color ):
119
98
"""Create a QColor from a matplotlib color"""
120
99
qcolor = QtGui .QColor ()
@@ -126,8 +105,6 @@ def to_qcolor(color):
126
105
return qcolor # return invalid QColor
127
106
qcolor .setNamedColor (color ) # set using hex color
128
107
return qcolor # return valid QColor
129
- > >> >> >> 8 bba2a4 ... Merge pull request #2328 from mspacek/qtapi
130
- > >> >> >> upstream / v1 .3. x
131
108
132
109
def to_qcolor (color ):
133
110
"""Create a QColor from a matplotlib color"""
You can’t perform that action at this time.
0 commit comments