summaryrefslogtreecommitdiff
authorpaule <paule>2007-01-14 03:01:16 (UTC)
committer paule <paule>2007-01-14 03:01:16 (UTC)
commit81de0baf254bd2d935d0fdf035143e5510354fa7 (patch) (unidiff)
treec80e1903bc4b7e5c93ba2bfd70a75c5e5ae44036
parent2e26f72390e18260c6fc3fedc5378a6ca9ddfffb (diff)
downloadopie-81de0baf254bd2d935d0fdf035143e5510354fa7.zip
opie-81de0baf254bd2d935d0fdf035143e5510354fa7.tar.gz
opie-81de0baf254bd2d935d0fdf035143e5510354fa7.tar.bz2
Add setting to show date/time settings on every restart (useful on devices where the date/time slips or is reset when the device is reset)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/settingstabwidget.cpp18
-rw-r--r--noncore/settings/netsystemtime/settingstabwidget.h1
2 files changed, 16 insertions, 3 deletions
diff --git a/noncore/settings/netsystemtime/settingstabwidget.cpp b/noncore/settings/netsystemtime/settingstabwidget.cpp
index b26e751..5b52a07 100644
--- a/noncore/settings/netsystemtime/settingstabwidget.cpp
+++ b/noncore/settings/netsystemtime/settingstabwidget.cpp
@@ -80,2 +80,6 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
80 80
81 // Show system time options on every restart
82 chShowOnRestart = new QCheckBox( tr( "Show time settings on every restart" ), container );
83 layout->addMultiCellWidget( chShowOnRestart, 5, 5, 0, 1 );
84
81 // Display time server information selector 85 // Display time server information selector
@@ -83,3 +87,3 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
83 connect( chNtpTab, SIGNAL( toggled(bool) ), this, SIGNAL( displayNTPTab(bool) ) ); 87 connect( chNtpTab, SIGNAL( toggled(bool) ), this, SIGNAL( displayNTPTab(bool) ) );
84 layout->addMultiCellWidget( chNtpTab, 5, 5, 0, 1 ); 88 layout->addMultiCellWidget( chNtpTab, 6, 6, 0, 1 );
85 89
@@ -88,6 +92,6 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
88 connect( chPredictTab, SIGNAL( toggled(bool) ), this, SIGNAL( displayPredictTab(bool) ) ); 92 connect( chPredictTab, SIGNAL( toggled(bool) ), this, SIGNAL( displayPredictTab(bool) ) );
89 layout->addMultiCellWidget( chPredictTab, 6, 6, 0, 1 ); 93 layout->addMultiCellWidget( chPredictTab, 7, 7, 0, 1 );
90 94
91 // Space filler 95 // Space filler
92 layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 7, 0 ); 96 layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 8, 0 );
93 97
@@ -116,2 +120,6 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
116 chPredictTab->setChecked( config.readBoolEntry( "displayPredictTab", FALSE ) ); 120 chPredictTab->setChecked( config.readBoolEntry( "displayPredictTab", FALSE ) );
121
122 Config config_qpe( "qpe" );
123 config_qpe.setGroup( "Startup" );
124 chShowOnRestart->setChecked( config_qpe.readBoolEntry( "ShowTimeSettings", FALSE ) );
117} 125}
@@ -157,2 +165,6 @@ void SettingsTabWidget::saveSettings()
157 config.writeEntry( "displayPredictTab", chPredictTab->isChecked() ); 165 config.writeEntry( "displayPredictTab", chPredictTab->isChecked() );
166
167 Config config_qpe( "qpe" );
168 config_qpe.setGroup( "Startup" );
169 config_qpe.writeEntry( "ShowTimeSettings", chShowOnRestart->isChecked() );
158} 170}
diff --git a/noncore/settings/netsystemtime/settingstabwidget.h b/noncore/settings/netsystemtime/settingstabwidget.h
index 9578245..17e7989 100644
--- a/noncore/settings/netsystemtime/settingstabwidget.h
+++ b/noncore/settings/netsystemtime/settingstabwidget.h
@@ -54,2 +54,3 @@ private:
54 QSpinBox *sbPredictDelay; 54 QSpinBox *sbPredictDelay;
55 QCheckBox *chShowOnRestart;
55 QCheckBox *chNtpTab; 56 QCheckBox *chNtpTab;