Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
65ef2a5a60 |
@ -182,6 +182,7 @@ class PlotDataItem(GraphicsObject):
|
|||||||
|
|
||||||
'data': None,
|
'data': None,
|
||||||
}
|
}
|
||||||
|
self.setCurveClickable(kargs.get('clickable', False))
|
||||||
self.setData(*args, **kargs)
|
self.setData(*args, **kargs)
|
||||||
|
|
||||||
def implements(self, interface=None):
|
def implements(self, interface=None):
|
||||||
@ -192,7 +193,13 @@ class PlotDataItem(GraphicsObject):
|
|||||||
|
|
||||||
def name(self):
|
def name(self):
|
||||||
return self.opts.get('name', None)
|
return self.opts.get('name', None)
|
||||||
|
|
||||||
|
def setCurveClickable(self, s, width=None):
|
||||||
|
self.curve.setClickable(s, width)
|
||||||
|
|
||||||
|
def curveClickable(self):
|
||||||
|
return self.curve.clickable
|
||||||
|
|
||||||
def boundingRect(self):
|
def boundingRect(self):
|
||||||
return QtCore.QRectF() ## let child items handle this
|
return QtCore.QRectF() ## let child items handle this
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user