author | tille <tille> | 2002-06-26 09:40:05 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-26 09:40:05 (UTC) |
commit | 28d91fba01e6eb728de997757a33f4328ee19e2f (patch) (unidiff) | |
tree | f027967e0d120620c46084101547ca7adabbb16e | |
parent | f49bd645d1537e826e12a3beaafbf291b3ad4d07 (diff) | |
download | opie-28d91fba01e6eb728de997757a33f4328ee19e2f.zip opie-28d91fba01e6eb728de997757a33f4328ee19e2f.tar.gz opie-28d91fba01e6eb728de997757a33f4328ee19e2f.tar.bz2 |
combos update sys
-rw-r--r-- | noncore/settings/netsystemtime/ntp.cpp | 2 | ||||
-rw-r--r-- | noncore/settings/netsystemtime/opie-netsystemtime.control | 3 | ||||
-rw-r--r-- | noncore/settings/netsystemtime/settime.cpp | 25 | ||||
-rw-r--r-- | noncore/settings/netsystemtime/settime.h | 2 |
4 files changed, 29 insertions, 3 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp index 4a7959e..b2f192a 100644 --- a/noncore/settings/netsystemtime/ntp.cpp +++ b/noncore/settings/netsystemtime/ntp.cpp | |||
@@ -44,3 +44,3 @@ Ntp::Ntp( QWidget* parent, const char* name, WFlags fl ) | |||
44 | connect(PushButtonPredict, SIGNAL(clicked()), this, SLOT(preditctTime())); | 44 | connect(PushButtonPredict, SIGNAL(clicked()), this, SLOT(preditctTime())); |
45 | 45 | slotCheckNtp(-1); | |
46 | // slotRunNtp(); | 46 | // slotRunNtp(); |
diff --git a/noncore/settings/netsystemtime/opie-netsystemtime.control b/noncore/settings/netsystemtime/opie-netsystemtime.control index a5809b0..406d7b0 100644 --- a/noncore/settings/netsystemtime/opie-netsystemtime.control +++ b/noncore/settings/netsystemtime/opie-netsystemtime.control | |||
@@ -4,2 +4,3 @@ Section: opie/settings | |||
4 | Depends: ntpdate | 4 | Depends: ntpdate |
5 | Conflicts: opie-systemtime | ||
5 | Maintainer: Patrick S. Vogt <tille@handhelds.org> | 6 | Maintainer: Patrick S. Vogt <tille@handhelds.org> |
@@ -9,2 +10,2 @@ Depends: opie-base ($QPE_VERSION), ntpdate | |||
9 | Description: ntp ( Network Time Protocol) gui | 10 | Description: ntp ( Network Time Protocol) gui |
10 | This utility syncs system time with a atomic timerserver via internet \ No newline at end of file | 11 | This utility syncs system time with a atomic timerserver via internet |
diff --git a/noncore/settings/netsystemtime/settime.cpp b/noncore/settings/netsystemtime/settime.cpp index 2cef6e8..b456012 100644 --- a/noncore/settings/netsystemtime/settime.cpp +++ b/noncore/settings/netsystemtime/settime.cpp | |||
@@ -194,2 +194,11 @@ SetDateTime::SetDateTime(QWidget *parent, const char *name, WFlags f ) | |||
194 | SLOT( tzChange( const QString& ) ) ); | 194 | SLOT( tzChange( const QString& ) ) ); |
195 | |||
196 | QObject::connect( weekStartCombo, SIGNAL( activated ( int )), | ||
197 | SLOT(updateSystem(int ) )); | ||
198 | QObject::connect( ampmCombo, SIGNAL( activated ( int )), | ||
199 | SLOT(updateSystem(int ) )); | ||
200 | QObject::connect( dateFormatCombo, SIGNAL( activated ( int )), | ||
201 | SLOT(updateSystem(int ) )); | ||
202 | QObject::connect( clockAppletCombo, SIGNAL( activated ( int )), | ||
203 | SLOT(updateSystem(int ) )); | ||
195 | } | 204 | } |
@@ -198,3 +207,8 @@ SetDateTime::~SetDateTime() | |||
198 | { | 207 | { |
208 | writeSettings(); | ||
209 | |||
210 | } | ||
199 | 211 | ||
212 | void SetDateTime::writeSettings() | ||
213 | { | ||
200 | Config config("qpe"); | 214 | Config config("qpe"); |
@@ -249,2 +263,8 @@ void SetDateTime::setTime(QDateTime dt) | |||
249 | Global::writeHWClock(); | 263 | Global::writeHWClock(); |
264 | } | ||
265 | |||
266 | void SetDateTime::updateSystem(int i) | ||
267 | { | ||
268 | qDebug("SetDateTime::updateSystem(int %i)",i); | ||
269 | writeSettings(); | ||
250 | // since time has changed quickly load in the datebookdb | 270 | // since time has changed quickly load in the datebookdb |
@@ -252,3 +272,3 @@ void SetDateTime::setTime(QDateTime dt) | |||
252 | // (example re-trigger alarms for when we travel back in time) | 272 | // (example re-trigger alarms for when we travel back in time) |
253 | DateBookDB db; | 273 | // DateBookDB db; |
254 | 274 | ||
@@ -278,2 +298,3 @@ void SetDateTime::tzChange( const QString &tz ) | |||
278 | { | 298 | { |
299 | qDebug("SetDateTime::tzChange"); | ||
279 | // set the TZ get the time and leave gracefully... | 300 | // set the TZ get the time and leave gracefully... |
@@ -289,2 +310,3 @@ void SetDateTime::tzChange( const QString &tz ) | |||
289 | dateButton->setDate( d ); | 310 | dateButton->setDate( d ); |
311 | updateSystem(); | ||
290 | } | 312 | } |
@@ -432,2 +454,3 @@ void SetTime::slotTzChange( const QString &tz ) | |||
432 | { | 454 | { |
455 | qDebug("SetTime::slotTzChange"); | ||
433 | // set the TZ get the time and leave gracefully... | 456 | // set the TZ get the time and leave gracefully... |
diff --git a/noncore/settings/netsystemtime/settime.h b/noncore/settings/netsystemtime/settime.h index 60423e7..778cb9c 100644 --- a/noncore/settings/netsystemtime/settime.h +++ b/noncore/settings/netsystemtime/settime.h | |||
@@ -76,2 +76,3 @@ protected slots: | |||
76 | void formatChanged(int); | 76 | void formatChanged(int); |
77 | void updateSystem(int i=0); | ||
77 | 78 | ||
@@ -79,2 +80,3 @@ protected: | |||
79 | void setTime(QDateTime dt); | 80 | void setTime(QDateTime dt); |
81 | void writeSettings(); | ||
80 | 82 | ||