Commit ebe4c8d1 authored by Dan Pascu's avatar Dan Pascu

Fixed ElidedLabel to consider the widget's decorations

parent 051cf3d9
......@@ -271,7 +271,7 @@ class ElidedLabel(QLabel):
gradient.setColorAt(1-50.0/label_width, self.palette().color(self.foregroundRole()))
gradient.setColorAt(1.0, Qt.transparent)
painter.setPen(QPen(QBrush(gradient), 1.0))
painter.drawText(self.rect(), Qt.TextSingleLine | int(self.alignment()), self.text())
painter.drawText(self.contentsRect(), Qt.TextSingleLine | int(self.alignment()), self.text())
class StateColor(QColor):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment