Diffstat (limited to 'noncore/tools/clock/analogclock.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/tools/clock/analogclock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/tools/clock/analogclock.cpp b/noncore/tools/clock/analogclock.cpp index bf358e2..c5f0155 100644 --- a/noncore/tools/clock/analogclock.cpp +++ b/noncore/tools/clock/analogclock.cpp | |||
@@ -35,25 +35,25 @@ AnalogClock::AnalogClock( QWidget *parent, const char *name ) | |||
35 | } | 35 | } |
36 | 36 | ||
37 | QSizePolicy AnalogClock::sizePolicy() const | 37 | QSizePolicy AnalogClock::sizePolicy() const |
38 | { | 38 | { |
39 | return QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); | 39 | return QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); |
40 | } | 40 | } |
41 | 41 | ||
42 | void AnalogClock::drawContents( QPainter *p ) | 42 | void AnalogClock::drawContents( QPainter *p ) |
43 | { | 43 | { |
44 | #if !defined(NO_DEBUG) | 44 | #if !defined(NO_DEBUG) |
45 | static bool first = true; | 45 | static bool first = true; |
46 | if ( first ) { | 46 | if ( first ) { |
47 | QTOPIA_PROFILE("first paint event"); | 47 | //QTOPIA_PROFILE("first paint event"); |
48 | first = false; | 48 | first = false; |
49 | } | 49 | } |
50 | #endif | 50 | #endif |
51 | 51 | ||
52 | QRect r = contentsRect(); | 52 | QRect r = contentsRect(); |
53 | 53 | ||
54 | if ( r.width() < r.height() ) { | 54 | if ( r.width() < r.height() ) { |
55 | r.setY( (r.height() - r.width())/2 ); | 55 | r.setY( (r.height() - r.width())/2 ); |
56 | r.setHeight( r.width() ); | 56 | r.setHeight( r.width() ); |
57 | } | 57 | } |
58 | 58 | ||
59 | QPoint center( r.x() + r.width() / 2, r.y() + r.height() / 2 ); | 59 | QPoint center( r.x() + r.width() / 2, r.y() + r.height() / 2 ); |