author | zautrix <zautrix> | 2004-12-13 13:00:08 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-12-13 13:00:08 (UTC) |
commit | b8410daa179dbff2ebb833071ba50b9da36e6330 (patch) (unidiff) | |
tree | 9ae559c8ecc68a78e52003daa2240c8861a0fa34 | |
parent | 7ac6c21e832b7d16bd0888d0b66252b6e152005a (diff) | |
download | kdepimpi-b8410daa179dbff2ebb833071ba50b9da36e6330.zip kdepimpi-b8410daa179dbff2ebb833071ba50b9da36e6330.tar.gz kdepimpi-b8410daa179dbff2ebb833071ba50b9da36e6330.tar.bz2 |
fixed height of global confog dialog
-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 | |||
@@ -98,25 +98,25 @@ KDEPIMConfigWidget::KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, | |||
98 | tabWidget = new QTabWidget( this ); | 98 | tabWidget = new QTabWidget( this ); |
99 | topLayout->addWidget( tabWidget ); | 99 | topLayout->addWidget( tabWidget ); |
100 | 100 | ||
101 | 101 | ||
102 | setupLocaleTab(); | 102 | setupLocaleTab(); |
103 | setupLocaleDateTab(); | 103 | setupLocaleDateTab(); |
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() ); |
117 | 117 | ||
118 | mExternalApps = new QComboBox( externalAppsPage ); | 118 | mExternalApps = new QComboBox( externalAppsPage ); |
119 | 119 | ||
120 | QMap<ExternalAppHandler::Types, QString>::Iterator it; | 120 | QMap<ExternalAppHandler::Types, QString>::Iterator it; |
121 | for( it = mExternalAppsMap.begin(); it != mExternalAppsMap.end(); ++it ) | 121 | for( it = mExternalAppsMap.begin(); it != mExternalAppsMap.end(); ++it ) |
122 | mExternalApps->insertItem( it.data(), it.key() ); | 122 | mExternalApps->insertItem( it.data(), it.key() ); |
@@ -266,41 +266,49 @@ void KDEPIMConfigWidget::setupLocaleTab() | |||
266 | syncPrefsGroup->addRadio(i18n("English")); | 266 | syncPrefsGroup->addRadio(i18n("English")); |
267 | syncPrefsGroup->addRadio(i18n("German")); | 267 | syncPrefsGroup->addRadio(i18n("German")); |
268 | syncPrefsGroup->addRadio(i18n("French")); | 268 | syncPrefsGroup->addRadio(i18n("French")); |
269 | syncPrefsGroup->addRadio(i18n("Italian")); | 269 | syncPrefsGroup->addRadio(i18n("Italian")); |
270 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); | 270 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); |
271 | if ( QApplication::desktop()->width() < 300 ) { | 271 | if ( QApplication::desktop()->width() < 300 ) { |
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")); |
284 | syncPrefsGroup->groupBox()->setOrientation (Qt::Vertical); | 292 | syncPrefsGroup->groupBox()->setOrientation (Qt::Vertical); |
285 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 293 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
286 | ++iii; | 294 | ++iii; |
287 | 295 | ||
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 | { |
301 | QWidget *topFrame = new QWidget( this ); | 309 | QWidget *topFrame = new QWidget( this ); |
302 | QGridLayout *topLayout = new QGridLayout( topFrame, 5, 2); | 310 | QGridLayout *topLayout = new QGridLayout( topFrame, 5, 2); |
303 | topLayout->setSpacing(KDialog::spacingHintSmall()); | 311 | topLayout->setSpacing(KDialog::spacingHintSmall()); |
304 | topLayout->setMargin(KDialog::marginHintSmall()); | 312 | topLayout->setMargin(KDialog::marginHintSmall()); |
305 | 313 | ||
306 | QHBox *timeZoneBox = new QHBox( topFrame ); | 314 | QHBox *timeZoneBox = new QHBox( topFrame ); |