laserpants / qt-material-widgets

:art: Qt widgets-based implementation of the Material Design specification.
BSD 3-Clause "New" or "Revised" License
2.94k stars 660 forks source link

drawLine( 2.5 #16

Closed fperillo closed 6 years ago

fperillo commented 6 years ago

I could not find a drawLine( float, only int.... isn't 2.5 casted to int by the compiler?

laserpants commented 6 years ago

Good point! I changed it to:

painter.drawLine(QLineF(2.5, y, wd, y));