Skip to content

Commit

Permalink
Revert color_map: do not derive from QObject to allow color map deepcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Jul 26, 2024
1 parent f23b52f commit cbff786
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions qwt/color_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
:members:
"""

from qtpy.QtCore import QObject, Qt, qIsNaN
from qtpy.QtCore import Qt, qIsNaN
from qtpy.QtGui import QColor, qAlpha, qBlue, qGreen, qRed, qRgb, qRgba


Expand Down Expand Up @@ -211,10 +211,8 @@ def colorIndex(self, interval, value):
return 0


class QwtLinearColorMap_PrivateData(QObject):
class QwtLinearColorMap_PrivateData(object):
def __init__(self):
QObject.__init__(self)

self.colorStops = ColorStops()
self.mode = None

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


class QwtAlphaColorMap_PrivateData(QObject):
class QwtAlphaColorMap_PrivateData(object):
def __init__(self):
QObject.__init__(self)

self.color = QColor()
self.rgb = QColor().rgb()
self.rgbMax = QColor().rgb()
Expand Down

0 comments on commit cbff786

Please sign in to comment.