Changeset View
Changeset View
Standalone View
Standalone View
BUILD/kteatime-17.08.3/src/toplevel.cpp
Context not available. | |||||
254 | const QRectF rectangle( 1, icon.height() / 3 + 1, icon.width() / 1.5 - 2, icon.height() / 1.5 - 2 ); | 254 | const QRectF rectangle( 1, icon.height() / 3 + 1, icon.width() / 1.5 - 2, icon.height() / 1.5 - 2 ); | ||
---|---|---|---|---|---|
255 | 255 | | |||
256 | const int startAngle = 90 * 16; | 256 | const int startAngle = 90 * 16; | ||
257 | const int angleSpan = -( 360*16 / m_runningTea.time() * m_runningTeaTime ); | 257 | const int angleSpan = -( 360*16.0 / m_runningTea.time() * m_runningTeaTime ); | ||
258 | 258 | | |||
259 | painter.setBrush( QColor( 0, 255, 0, 90 ) ); | 259 | painter.setBrush( QColor( 0, 255, 0, 90 ) ); | ||
260 | painter.drawPie( rectangle, startAngle, 360*16 + angleSpan ); | 260 | painter.drawPie( rectangle, startAngle, 360*16 + angleSpan ); | ||
Context not available. |