summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/settime.cpp
authortille <tille>2002-06-26 09:40:05 (UTC)
committer tille <tille>2002-06-26 09:40:05 (UTC)
commit28d91fba01e6eb728de997757a33f4328ee19e2f (patch) (side-by-side diff)
treef027967e0d120620c46084101547ca7adabbb16e /noncore/settings/netsystemtime/settime.cpp
parentf49bd645d1537e826e12a3beaafbf291b3ad4d07 (diff)
downloadopie-28d91fba01e6eb728de997757a33f4328ee19e2f.zip
opie-28d91fba01e6eb728de997757a33f4328ee19e2f.tar.gz
opie-28d91fba01e6eb728de997757a33f4328ee19e2f.tar.bz2
combos update sys
Diffstat (limited to 'noncore/settings/netsystemtime/settime.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/settime.cpp25
1 files changed, 24 insertions, 1 deletions
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
@@ -193,9 +193,23 @@ SetDateTime::SetDateTime(QWidget *parent, const char *name, WFlags f )
QObject::connect( tz, SIGNAL( signalNewTz( const QString& ) ),
SLOT( tzChange( const QString& ) ) );
+
+ QObject::connect( weekStartCombo, SIGNAL( activated ( int )),
+ SLOT(updateSystem(int ) ));
+ QObject::connect( ampmCombo, SIGNAL( activated ( int )),
+ SLOT(updateSystem(int ) ));
+ QObject::connect( dateFormatCombo, SIGNAL( activated ( int )),
+ SLOT(updateSystem(int ) ));
+ QObject::connect( clockAppletCombo, SIGNAL( activated ( int )),
+ SLOT(updateSystem(int ) ));
}
SetDateTime::~SetDateTime()
{
+ writeSettings();
+
+}
+void SetDateTime::writeSettings()
+{
Config config("qpe");
config.setGroup( "Time" );
@@ -248,8 +262,14 @@ void SetDateTime::setTime(QDateTime dt)
::settimeofday( &myTv, 0 );
Global::writeHWClock();
+}
+
+void SetDateTime::updateSystem(int i)
+{
+ qDebug("SetDateTime::updateSystem(int %i)",i);
+ writeSettings();
// since time has changed quickly load in the datebookdb
// to allow the alarm server to get a better grip on itself
// (example re-trigger alarms for when we travel back in time)
- DateBookDB db;
+ // DateBookDB db;
// set the timezone for everyone else...
@@ -277,4 +297,5 @@ void SetDateTime::setTime(QDateTime dt)
void SetDateTime::tzChange( const QString &tz )
{
+ qDebug("SetDateTime::tzChange");
// set the TZ get the time and leave gracefully...
QString strSave;
@@ -288,4 +309,5 @@ void SetDateTime::tzChange( const QString &tz )
}
dateButton->setDate( d );
+ updateSystem();
}
@@ -431,4 +453,5 @@ void SetTime::checkedPM( int c )
void SetTime::slotTzChange( const QString &tz )
{
+ qDebug("SetTime::slotTzChange");
// set the TZ get the time and leave gracefully...
QString strSave;