-rw-r--r-- | noncore/tools/clock/clock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp index d69c56f..2f81c3a 100644 --- a/noncore/tools/clock/clock.cpp +++ b/noncore/tools/clock/clock.cpp | |||
@@ -476,25 +476,25 @@ void AnalogClock::drawContents( QPainter *p ) | |||
476 | } | 476 | } |
477 | else { | 477 | else { |
478 | drawPointers ( p, fr, colorGroup ( ). color ( QColorGroup::Base ), prevTime, &currTime ); | 478 | drawPointers ( p, fr, colorGroup ( ). color ( QColorGroup::Base ), prevTime, &currTime ); |
479 | } | 479 | } |
480 | 480 | ||
481 | drawPointers ( p, fr, colorGroup ( ). color ( QColorGroup::Text ), currTime ); | 481 | drawPointers ( p, fr, colorGroup ( ). color ( QColorGroup::Text ), currTime ); |
482 | 482 | ||
483 | prevTime = currTime; | 483 | prevTime = currTime; |
484 | } | 484 | } |
485 | 485 | ||
486 | void AnalogClock::drawPointers ( QPainter *p, const QRect &r, const QColor &c, const QTime &t, const QTime *t2 ) | 486 | void AnalogClock::drawPointers ( QPainter *p, const QRect &r, const QColor &c, const QTime &t, const QTime *t2 ) |
487 | { | 487 | { |
488 | QPoint center( r.x() + r.width() / 2, r.y() + r.height() / 2 ); | 488 | QPoint center = r. center ( ); |
489 | 489 | ||
490 | QPoint h1( center. x ( ), r. y ( ) + r. height ( ) / 4 ); | 490 | QPoint h1( center. x ( ), r. y ( ) + r. height ( ) / 4 ); |
491 | QPoint h2( center. x ( ), center. y ( ) ); | 491 | QPoint h2( center. x ( ), center. y ( ) ); |
492 | 492 | ||
493 | QPoint m1( center. x ( ), r.y() + r.height() / 8 ); | 493 | QPoint m1( center. x ( ), r.y() + r.height() / 8 ); |
494 | QPoint m2( center. x ( ), center. y ( ) ); | 494 | QPoint m2( center. x ( ), center. y ( ) ); |
495 | 495 | ||
496 | QPoint s1( center. x ( ), r. y ( ) + 8 ); | 496 | QPoint s1( center. x ( ), r. y ( ) + 8 ); |
497 | QPoint s2( center. x ( ), center. y ( ) ); | 497 | QPoint s2( center. x ( ), center. y ( ) ); |
498 | 498 | ||
499 | 499 | ||
500 | if ( !t2 || ( t. minute ( ) != t2-> minute ( ) || t. hour ( ) != t2-> hour ( ))) { | 500 | if ( !t2 || ( t. minute ( ) != t2-> minute ( ) || t. hour ( ) != t2-> hour ( ))) { |