From f86b3c6613548c9f59019892233f5f90a17d472c Mon Sep 17 00:00:00 2001 From: sandman Date: Sun, 22 Dec 2002 16:39:25 +0000 Subject: small fix --- (limited to 'noncore') 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 @@ -485,7 +485,7 @@ void AnalogClock::drawContents( QPainter *p ) void AnalogClock::drawPointers ( QPainter *p, const QRect &r, const QColor &c, const QTime &t, const QTime *t2 ) { - QPoint center( r.x() + r.width() / 2, r.y() + r.height() / 2 ); + QPoint center = r. center ( ); QPoint h1( center. x ( ), r. y ( ) + r. height ( ) / 4 ); QPoint h2( center. x ( ), center. y ( ) ); -- cgit v0.9.0.2