author | tille <tille> | 2002-07-06 14:34:09 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-06 14:34:09 (UTC) |
commit | 76685f88ebcfd475c2d3c6d8c69271883053b09f (patch) (unidiff) | |
tree | 35289cc1378ac48a3781c049ba657455d5c18d98 | |
parent | 2d2eda28dd68bb989c3af8bb7f95d8255e886dda (diff) | |
download | opie-76685f88ebcfd475c2d3c6d8c69271883053b09f.zip opie-76685f88ebcfd475c2d3c6d8c69271883053b09f.tar.gz opie-76685f88ebcfd475c2d3c6d8c69271883053b09f.tar.bz2 |
clockapplet uses qcop call to open settime dialog
-rw-r--r-- | core/applets/clockapplet/clock.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/core/applets/clockapplet/clock.cpp b/core/applets/clockapplet/clock.cpp index c186fb3..ba079bf 100644 --- a/core/applets/clockapplet/clock.cpp +++ b/core/applets/clockapplet/clock.cpp | |||
@@ -22,6 +22,7 @@ | |||
22 | 22 | ||
23 | #include <qpe/global.h> | 23 | #include <qpe/global.h> |
24 | #include <qpe/qpeapplication.h> | 24 | #include <qpe/qpeapplication.h> |
25 | #include <qpe/qcopenvelope_qws.h> | ||
25 | #include <qpe/config.h> | 26 | #include <qpe/config.h> |
26 | 27 | ||
27 | #include <qmainwindow.h> | 28 | #include <qmainwindow.h> |
@@ -31,6 +32,7 @@ | |||
31 | #include <qdatetime.h> | 32 | #include <qdatetime.h> |
32 | #include <qtimer.h> | 33 | #include <qtimer.h> |
33 | #include <qpopupmenu.h> | 34 | #include <qpopupmenu.h> |
35 | #include <qfile.h> | ||
34 | #include <stdlib.h> | 36 | #include <stdlib.h> |
35 | 37 | ||
36 | 38 | ||
@@ -58,7 +60,16 @@ void LauncherClock::readConfig() { | |||
58 | 60 | ||
59 | void LauncherClock::mouseReleaseEvent( QMouseEvent * ) | 61 | void LauncherClock::mouseReleaseEvent( QMouseEvent * ) |
60 | { | 62 | { |
61 | Global::execute( "systemtime" ); | 63 | QCString setTimeApp; |
64 | if (QFile::exists(QPEApplication::qpeDir()+"bin/netsystemtime")) | ||
65 | setTimeApp="netsystemtime"; | ||
66 | else setTimeApp="systemtime"; | ||
67 | qDebug("app "+setTimeApp); | ||
68 | QCopEnvelope e("QPE/Application/"+setTimeApp, "setDocument(QString)"); | ||
69 | QString lf = QString::null; | ||
70 | |||
71 | e << lf; | ||
72 | |||
62 | } | 73 | } |
63 | 74 | ||
64 | 75 | ||