author | zautrix <zautrix> | 2005-04-15 20:51:58 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-15 20:51:58 (UTC) |
commit | 85bdc33419eef0ffa9f00eb7222944518fe39b6c (patch) (unidiff) | |
tree | 57000de41f5e29c5ebd07f3ed2951a7b89730fb1 /libkdepim/kcmconfigs | |
parent | e1d62b2afac2b625a3e0b8d4df137647de34e04f (diff) | |
download | kdepimpi-85bdc33419eef0ffa9f00eb7222944518fe39b6c.zip kdepimpi-85bdc33419eef0ffa9f00eb7222944518fe39b6c.tar.gz kdepimpi-85bdc33419eef0ffa9f00eb7222944518fe39b6c.tar.bz2 |
fixxx
-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp index 759b29d..753d90a 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp | |||
@@ -100,49 +100,49 @@ KDEPIMConfigWidget::KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, | |||
100 | QVBoxLayout *topLayout = new QVBoxLayout( this, 0, | 100 | QVBoxLayout *topLayout = new QVBoxLayout( this, 0, |
101 | KDialog::spacingHint() ); | 101 | KDialog::spacingHint() ); |
102 | 102 | ||
103 | tabWidget = new QTabWidget( this ); | 103 | tabWidget = new QTabWidget( this ); |
104 | topLayout->addWidget( tabWidget ); | 104 | topLayout->addWidget( tabWidget ); |
105 | 105 | ||
106 | 106 | ||
107 | setupLocaleTab(); | 107 | setupLocaleTab(); |
108 | setupLocaleDateTab(); | 108 | setupLocaleDateTab(); |
109 | setupTimeZoneTab(); | 109 | setupTimeZoneTab(); |
110 | setupExternalAppTab(); | 110 | setupExternalAppTab(); |
111 | setupStoreTab(); | 111 | setupStoreTab(); |
112 | 112 | ||
113 | } | 113 | } |
114 | void KDEPIMConfigWidget::showTimeZoneTab() | 114 | void KDEPIMConfigWidget::showTimeZoneTab() |
115 | { | 115 | { |
116 | tabWidget->setCurrentPage ( 3 ) ; | 116 | tabWidget->setCurrentPage ( 3 ) ; |
117 | } | 117 | } |
118 | void KDEPIMConfigWidget::setupStoreTab() | 118 | void KDEPIMConfigWidget::setupStoreTab() |
119 | { | 119 | { |
120 | QVBox *colorPage = new QVBox( this ); | 120 | QVBox *colorPage = new QVBox( this ); |
121 | tabWidget->addTab( colorPage, i18n( "Colors" ) ); | 121 | tabWidget->addTab( colorPage, i18n( "Colors" ) ); |
122 | QWidget* cw = new QWidget( colorPage ); | 122 | QWidget* cw = new QWidget( colorPage ); |
123 | KPrefsWidColor *holidayColor = | 123 | KPrefsWidColor *holidayColor = |
124 | addWidColor(i18n("Alternate background"), | 124 | addWidColor(i18n("Alternating background of list views"), |
125 | &(KPimGlobalPrefs::instance()->mAlternateColor),cw); | 125 | &(KPimGlobalPrefs::instance()->mAlternateColor),cw); |
126 | QHBoxLayout *topLayout = new QHBoxLayout(cw); | 126 | QHBoxLayout *topLayout = new QHBoxLayout(cw); |
127 | topLayout->addWidget(holidayColor->label()); | 127 | topLayout->addWidget(holidayColor->label()); |
128 | topLayout->addWidget( (QWidget* )holidayColor->button()); | 128 | topLayout->addWidget( (QWidget* )holidayColor->button()); |
129 | 129 | ||
130 | 130 | ||
131 | QVBox *storePage = new QVBox( this ); | 131 | QVBox *storePage = new QVBox( this ); |
132 | new QLabel( i18n("Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail").arg(KGlobal::dirs()->localkdedir()), storePage ); | 132 | new QLabel( i18n("Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail").arg(KGlobal::dirs()->localkdedir()), storePage ); |
133 | new QLabel( i18n("<b>New data storage dir:</b>"), storePage ); | 133 | new QLabel( i18n("<b>New data storage dir:</b>"), storePage ); |
134 | mStoreUrl = new KURLRequester( storePage ); | 134 | mStoreUrl = new KURLRequester( storePage ); |
135 | mStoreUrl->setURL( KGlobal::dirs()->localkdedir() ); | 135 | mStoreUrl->setURL( KGlobal::dirs()->localkdedir() ); |
136 | #ifdef DESKTOP_VERSION | 136 | #ifdef DESKTOP_VERSION |
137 | QString confFile = qApp->applicationDirPath ()+ "/.microkdehome" ; | 137 | QString confFile = qApp->applicationDirPath ()+ "/.microkdehome" ; |
138 | QFileInfo fi ( confFile ); | 138 | QFileInfo fi ( confFile ); |
139 | if ( fi.exists() ) { | 139 | if ( fi.exists() ) { |
140 | KConfig cfg ( confFile ); | 140 | KConfig cfg ( confFile ); |
141 | cfg.setGroup("Global"); | 141 | cfg.setGroup("Global"); |
142 | QString localKdeDir = cfg.readEntry( "MICROKDEHOME", "x_x_x" ); | 142 | QString localKdeDir = cfg.readEntry( "MICROKDEHOME", "x_x_x" ); |
143 | if ( localKdeDir != "x_x_x" ) { | 143 | if ( localKdeDir != "x_x_x" ) { |
144 | mStoreUrl->setURL( localKdeDir ); | 144 | mStoreUrl->setURL( localKdeDir ); |
145 | qDebug("Reading config from %s ", confFile.latin1()); | 145 | qDebug("Reading config from %s ", confFile.latin1()); |
146 | } | 146 | } |
147 | } | 147 | } |
148 | 148 | ||