-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp index 4817a3f..20594c6 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp | |||
@@ -104,13 +104,13 @@ KDEPIMConfigWidget::KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, | |||
104 | setupTimeZoneTab(); | 104 | setupTimeZoneTab(); |
105 | setupExternalAppTab(); | 105 | setupExternalAppTab(); |
106 | 106 | ||
107 | } | 107 | } |
108 | void KDEPIMConfigWidget::showTimeZoneTab() | 108 | void KDEPIMConfigWidget::showTimeZoneTab() |
109 | { | 109 | { |
110 | tabWidget->setCurrentPage ( 2 ) ; | 110 | tabWidget->setCurrentPage ( 3 ) ; |
111 | } | 111 | } |
112 | void KDEPIMConfigWidget::setupExternalAppTab() | 112 | void KDEPIMConfigWidget::setupExternalAppTab() |
113 | { | 113 | { |
114 | QWidget *externalAppsPage = new QWidget( this ); | 114 | QWidget *externalAppsPage = new QWidget( this ); |
115 | QVBoxLayout* layout = new QVBoxLayout( externalAppsPage, KDialog::marginHintSmall(), | 115 | QVBoxLayout* layout = new QVBoxLayout( externalAppsPage, KDialog::marginHintSmall(), |
116 | KDialog::spacingHintSmall() ); | 116 | KDialog::spacingHintSmall() ); |
@@ -272,12 +272,20 @@ void KDEPIMConfigWidget::setupLocaleTab() | |||
272 | syncPrefsGroup->groupBox()->layout()->setMargin( 5 ); | 272 | syncPrefsGroup->groupBox()->layout()->setMargin( 5 ); |
273 | syncPrefsGroup->groupBox()->layout()->setSpacing( 0 ); | 273 | syncPrefsGroup->groupBox()->layout()->setSpacing( 0 ); |
274 | } | 274 | } |
275 | topLayout->addMultiCellWidget( (QWidget*)syncPrefsGroup->groupBox(),iii,iii,0,1); | 275 | topLayout->addMultiCellWidget( (QWidget*)syncPrefsGroup->groupBox(),iii,iii,0,1); |
276 | ++iii; | 276 | ++iii; |
277 | 277 | ||
278 | |||
279 | tabWidget->addTab( topFrame, i18n( "Language" ) ); | ||
280 | topFrame = new QWidget( this ); | ||
281 | topLayout = new QGridLayout(topFrame,4,2); | ||
282 | |||
283 | topLayout->setSpacing(KDialog::spacingHint()); | ||
284 | topLayout->setMargin(KDialog::marginHint()); | ||
285 | iii = 0; | ||
278 | syncPrefsGroup = | 286 | syncPrefsGroup = |
279 | addWidRadios(i18n("Time Format(nr):"),&(KPimGlobalPrefs::instance()->mPreferredTime),topFrame); | 287 | addWidRadios(i18n("Time Format(nr):"),&(KPimGlobalPrefs::instance()->mPreferredTime),topFrame); |
280 | if ( QApplication::desktop()->width() > 300 ) | 288 | if ( QApplication::desktop()->width() > 300 ) |
281 | syncPrefsGroup->groupBox()->setOrientation (Qt::Vertical); | 289 | syncPrefsGroup->groupBox()->setOrientation (Qt::Vertical); |
282 | syncPrefsGroup->addRadio(i18n("24:00")); | 290 | syncPrefsGroup->addRadio(i18n("24:00")); |
283 | syncPrefsGroup->addRadio(i18n("12:00am")); | 291 | syncPrefsGroup->addRadio(i18n("12:00am")); |
@@ -288,13 +296,13 @@ void KDEPIMConfigWidget::setupLocaleTab() | |||
288 | KPrefsWidBool *sb = addWidBool(i18n("Week starts on Sunday"), | 296 | KPrefsWidBool *sb = addWidBool(i18n("Week starts on Sunday"), |
289 | &(KPimGlobalPrefs::instance()->mWeekStartsOnSunday),topFrame); | 297 | &(KPimGlobalPrefs::instance()->mWeekStartsOnSunday),topFrame); |
290 | topLayout->addMultiCellWidget((QWidget*)sb->checkBox(), iii,iii,0,1); | 298 | topLayout->addMultiCellWidget((QWidget*)sb->checkBox(), iii,iii,0,1); |
291 | ++iii; | 299 | ++iii; |
292 | 300 | ||
293 | 301 | ||
294 | tabWidget->addTab( topFrame, i18n( "Locale" ) ); | 302 | tabWidget->addTab( topFrame, i18n( "Time Format" ) ); |
295 | 303 | ||
296 | } | 304 | } |
297 | 305 | ||
298 | 306 | ||
299 | void KDEPIMConfigWidget::setupTimeZoneTab() | 307 | void KDEPIMConfigWidget::setupTimeZoneTab() |
300 | { | 308 | { |