Skip to content

Commit cbff786

Browse files
committed
Revert color_map: do not derive from QObject to allow color map deepcopy
1 parent f23b52f commit cbff786

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

qwt/color_map.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
:members:
2929
"""
3030

31-
from qtpy.QtCore import QObject, Qt, qIsNaN
31+
from qtpy.QtCore import Qt, qIsNaN
3232
from qtpy.QtGui import QColor, qAlpha, qBlue, qGreen, qRed, qRgb, qRgba
3333

3434

@@ -211,10 +211,8 @@ def colorIndex(self, interval, value):
211211
return 0
212212

213213

214-
class QwtLinearColorMap_PrivateData(QObject):
214+
class QwtLinearColorMap_PrivateData(object):
215215
def __init__(self):
216-
QObject.__init__(self)
217-
218216
self.colorStops = ColorStops()
219217
self.mode = None
220218

@@ -324,10 +322,8 @@ def colorIndex(self, interval, value):
324322
return int(ratio * 255 + 0.5)
325323

326324

327-
class QwtAlphaColorMap_PrivateData(QObject):
325+
class QwtAlphaColorMap_PrivateData(object):
328326
def __init__(self):
329-
QObject.__init__(self)
330-
331327
self.color = QColor()
332328
self.rgb = QColor().rgb()
333329
self.rgbMax = QColor().rgb()

0 commit comments

Comments
 (0)