author | zecke <zecke> | 2004-01-27 11:38:38 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-01-27 11:38:38 (UTC) |
commit | 068604863e009b20790cd2aa482e216eb40b8876 (patch) (unidiff) | |
tree | bdc61cbe8826d083ba5b52c8b8e3db7ae108dee6 | |
parent | 60d37f75d5189fbf7bea0850399abc57b6d60097 (diff) | |
download | opie-068604863e009b20790cd2aa482e216eb40b8876.zip opie-068604863e009b20790cd2aa482e216eb40b8876.tar.gz opie-068604863e009b20790cd2aa482e216eb40b8876.tar.bz2 |
Do not setDocument if systemtime is not document centric
use raise()
-rw-r--r-- | core/applets/clockapplet/clock.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/applets/clockapplet/clock.cpp b/core/applets/clockapplet/clock.cpp index 5fb8f44..aadd9b6 100644 --- a/core/applets/clockapplet/clock.cpp +++ b/core/applets/clockapplet/clock.cpp | |||
@@ -37,36 +37,33 @@ LauncherClock::LauncherClock( QWidget *parent ) : QLabel( parent ) | |||
37 | timerEvent( 0 ); | 37 | timerEvent( 0 ); |
38 | show(); | 38 | show(); |
39 | } | 39 | } |
40 | 40 | ||
41 | void LauncherClock::readConfig() { | 41 | void LauncherClock::readConfig() { |
42 | Config config( "qpe" ); | 42 | Config config( "qpe" ); |
43 | config.setGroup( "Time" ); | 43 | config.setGroup( "Time" ); |
44 | ampmFormat = config.readBoolEntry( "AMPM", TRUE ); | 44 | ampmFormat = config.readBoolEntry( "AMPM", TRUE ); |
45 | config.setGroup( "Date" ); | 45 | config.setGroup( "Date" ); |
46 | format = config.readNumEntry("ClockApplet",0); | 46 | format = config.readNumEntry("ClockApplet",0); |
47 | } | 47 | } |
48 | 48 | ||
49 | void LauncherClock::mouseReleaseEvent( QMouseEvent * ) | 49 | void LauncherClock::mouseReleaseEvent( QMouseEvent * ) |
50 | { | 50 | { |
51 | QCString setTimeApp; | 51 | QCString setTimeApp; |
52 | setTimeApp="systemtime"; | 52 | setTimeApp="systemtime"; |
53 | QCopEnvelope e("QPE/Application/"+setTimeApp, "setDocument(QString)"); | 53 | QCopEnvelope e("QPE/Application/"+setTimeApp, "raise()"); |
54 | QString lf = QString::null; | ||
55 | |||
56 | e << lf; | ||
57 | } | 54 | } |
58 | 55 | ||
59 | 56 | ||
60 | void LauncherClock::timerEvent( QTimerEvent *e ) | 57 | void LauncherClock::timerEvent( QTimerEvent *e ) |
61 | { | 58 | { |
62 | if ( !e || e->timerId() == timerId ) { | 59 | if ( !e || e->timerId() == timerId ) { |
63 | killTimer( timerId ); | 60 | killTimer( timerId ); |
64 | changeTime(); | 61 | changeTime(); |
65 | QTime t = QTime::currentTime(); | 62 | QTime t = QTime::currentTime(); |
66 | int ms = (60 - t.second())*1000 - t.msec(); | 63 | int ms = (60 - t.second())*1000 - t.msec(); |
67 | timerId = startTimer( ms ); | 64 | timerId = startTimer( ms ); |
68 | } else { | 65 | } else { |
69 | QLabel::timerEvent( e ); | 66 | QLabel::timerEvent( e ); |
70 | } | 67 | } |
71 | } | 68 | } |
72 | 69 | ||