Skip to content

Commit 10ef777

Browse files
committed
Merge branch '2.9'
2 parents dda5dd0 + 5d033a8 commit 10ef777

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

14.2 KB
Loading

lib/python/qtvcp/widgets/simple_widgets.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -705,10 +705,10 @@ def paintIndicator(self):
705705
grad.setColorAt(.5, QtCore.Qt.white)
706706
grad.setColorAt(.8, color)
707707
p.setBrush(QtGui.QBrush(grad))
708-
p.drawRoundedRect(topLeft.x()+(self.width()*((1-self._w_fraction)/2)) + self._top_edge_offset,
709-
topLeft.y()+self._right_edge_offset,
710-
self.width()*self._w_fraction+2,
711-
self.height()*self._h_fraction,
708+
p.drawRoundedRect(int(topLeft.x()+(self.width()*((1-self._w_fraction)/2)) + self._top_edge_offset),
709+
int(topLeft.y()+self._right_edge_offset),
710+
int(self.width()*self._w_fraction+2),
711+
int(self.height()*self._h_fraction),
712712
self._corner_radius, self._corner_radius)
713713

714714

@@ -726,10 +726,10 @@ def paintIndicator(self):
726726
grad.setColorAt(.5, QtCore.Qt.white)
727727
grad.setColorAt(.8, color)
728728
p.setBrush(QtGui.QBrush(grad))
729-
p.drawRoundedRect(topRight.x()- self.width()*self._w_fraction-self._right_edge_offset,
730-
topRight.y()+(self.height()*((1-self._h_fraction)/2)) + self._top_edge_offset,
731-
self.width()*self._w_fraction,
732-
self.height()*self._h_fraction,
729+
p.drawRoundedRect(int(topRight.x()- self.width()*self._w_fraction-self._right_edge_offset),
730+
int(topRight.y()+(self.height()*((1-self._h_fraction)/2)) + self._top_edge_offset),
731+
int(self.width()*self._w_fraction),
732+
int(self.height()*self._h_fraction),
733733
self._corner_radius, self._corner_radius)
734734

735735
def set_indicator(self, data):

0 commit comments

Comments
 (0)