summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/settingstabwidget.cpp
Unidiff
Diffstat (limited to 'noncore/settings/netsystemtime/settingstabwidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/settingstabwidget.cpp18
1 files changed, 15 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
@@ -78,18 +78,22 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
78 // Space filler 78 // Space filler
79 layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 4, 0 ); 79 layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 4, 0 );
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
82 chNtpTab = new QCheckBox( tr( "Display time server information" ), container ); 86 chNtpTab = new QCheckBox( tr( "Display time server information" ), container );
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
86 // Display time prediction information selector 90 // Display time prediction information selector
87 chPredictTab = new QCheckBox( tr( "Display time prediction information" ), container ); 91 chPredictTab = new QCheckBox( tr( "Display time prediction information" ), container );
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
94 // Initialize values 98 // Initialize values
95 QString ntpSrvsFile = QPEApplication::qpeDir(); 99 QString ntpSrvsFile = QPEApplication::qpeDir();
@@ -114,6 +118,10 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
114 cbTimeServer->setCurrentItem( config.readNumEntry( "ntpServer", 0 ) ); 118 cbTimeServer->setCurrentItem( config.readNumEntry( "ntpServer", 0 ) );
115 chNtpTab->setChecked( config.readBoolEntry( "displayNtpTab", FALSE ) ); 119 chNtpTab->setChecked( config.readBoolEntry( "displayNtpTab", FALSE ) );
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}
118 126
119SettingsTabWidget::~SettingsTabWidget() 127SettingsTabWidget::~SettingsTabWidget()
@@ -155,6 +163,10 @@ void SettingsTabWidget::saveSettings()
155 config.writeEntry( "ntpRefreshFreq", sbNtpDelay->value() ); 163 config.writeEntry( "ntpRefreshFreq", sbNtpDelay->value() );
156 config.writeEntry( "displayNtpTab", chNtpTab->isChecked() ); 164 config.writeEntry( "displayNtpTab", chNtpTab->isChecked() );
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}
159 171
160QString SettingsTabWidget::ntpServer() 172QString SettingsTabWidget::ntpServer()