author | zecke <zecke> | 2004-04-03 20:10:15 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-04-03 20:10:15 (UTC) |
commit | 1f03371e4c5d9db806e941bf3687b4bf340aa4fa (patch) (unidiff) | |
tree | 08d4855e6babf252493ad677f30e5e35ba7a5751 /noncore/tools/clock/analogclock.cpp | |
parent | 93aeaa0de75ba89bd565c845e79e470a80816b0a (diff) | |
download | opie-1f03371e4c5d9db806e941bf3687b4bf340aa4fa.zip opie-1f03371e4c5d9db806e941bf3687b4bf340aa4fa.tar.gz opie-1f03371e4c5d9db806e941bf3687b4bf340aa4fa.tar.bz2 |
This is the merged Qtopia Clock with our changes included
-Seperate Clock, StopWatch, Alarm
-Allow starting stopping the stop watch by QCOP
-Allow Daily alarms
-Call OpiePlayer on resume
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 ); |