Skip to content

Commit 4b00c76

Browse files
committed
Removed unused QwtPlotItem.defaultIcon method
1 parent c941c04 commit 4b00c76

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

qwt/plot.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,25 +2073,6 @@ def legendIcon(self, index, size):
20732073
"""
20742074
return QwtGraphic()
20752075

2076-
def defaultIcon(self, brush, size):
2077-
"""
2078-
Return a default icon from a brush
2079-
2080-
The default icon is a filled rectangle used
2081-
in several derived classes as legendIcon().
2082-
2083-
:param QBrush brush: Fill brush
2084-
:param QSizeF size: Icon size
2085-
:return: A filled rectangle
2086-
"""
2087-
icon = QwtGraphic()
2088-
if not size.isEmpty():
2089-
icon.setDefaultSize(size)
2090-
r = QRectF(0, 0, size.width(), size.height())
2091-
painter = QPainter(icon)
2092-
painter.fillRect(r, brush)
2093-
return icon
2094-
20952076
def show(self):
20962077
"""Show the item"""
20972078
self.setVisible(True)

0 commit comments

Comments
 (0)