summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show 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 )
+ // Show system time options on every restart
+ chShowOnRestart = new QCheckBox( tr( "Show time settings on every restart" ), container );
+ layout->addMultiCellWidget( chShowOnRestart, 5, 5, 0, 1 );
+
// Display time server information selector
@@ -83,3 +87,3 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
connect( chNtpTab, SIGNAL( toggled(bool) ), this, SIGNAL( displayNTPTab(bool) ) );
- layout->addMultiCellWidget( chNtpTab, 5, 5, 0, 1 );
+ layout->addMultiCellWidget( chNtpTab, 6, 6, 0, 1 );
@@ -88,6 +92,6 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
connect( chPredictTab, SIGNAL( toggled(bool) ), this, SIGNAL( displayPredictTab(bool) ) );
- layout->addMultiCellWidget( chPredictTab, 6, 6, 0, 1 );
+ layout->addMultiCellWidget( chPredictTab, 7, 7, 0, 1 );
// Space filler
- layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 7, 0 );
+ layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 8, 0 );
@@ -116,2 +120,6 @@ SettingsTabWidget::SettingsTabWidget( QWidget *parent )
chPredictTab->setChecked( config.readBoolEntry( "displayPredictTab", FALSE ) );
+
+ Config config_qpe( "qpe" );
+ config_qpe.setGroup( "Startup" );
+ chShowOnRestart->setChecked( config_qpe.readBoolEntry( "ShowTimeSettings", FALSE ) );
}
@@ -157,2 +165,6 @@ void SettingsTabWidget::saveSettings()
config.writeEntry( "displayPredictTab", chPredictTab->isChecked() );
+
+ Config config_qpe( "qpe" );
+ config_qpe.setGroup( "Startup" );
+ config_qpe.writeEntry( "ShowTimeSettings", chShowOnRestart->isChecked() );
}
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:
QSpinBox *sbPredictDelay;
+ QCheckBox *chShowOnRestart;
QCheckBox *chNtpTab;