Diffstat (limited to 'core/applets/clockapplet/clock.cpp') (more/less context) (show whitespace changes)
-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 | |||
@@ -41,28 +41,25 @@ LauncherClock::LauncherClock( QWidget *parent ) : QLabel( parent ) | |||
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 { |