laserpants / qt-material-widgets

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

drawLine( 2.5 #16

Closed fperillo closed 7 years ago

fperillo commented 7 years ago

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

laserpants commented 7 years ago

Good point! I changed it to:

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