more porting errors

svn path=/trunk/KDE/kdepim/; revision=631915
wilder-work
Stephan Kulow 19 years ago
parent edcb82b6ae
commit 2ebce6f21b
  1. 2
      antispamconfig.cpp
  2. 15
      configuredialog.cpp
  3. 8
      htmlstatusbar.cpp
  4. 2
      identitydialog.cpp

@ -60,7 +60,7 @@ void AntiSpamConfig::readConfig()
KConfig config( "kmail.antispamrc", true );
config.setReadDefaults( true );
KConfigGroup general( &config, "General" );
unsigned int totalTools = general.readEntry( "tools", QVariant( (uint) 0 ) ).toUInt();
unsigned int totalTools = general.readEntry( "tools", 0 );
for ( unsigned int i = 1; i <= totalTools; ++i ) {
KConfigGroup tool( &config, QString("Spamtool #%1").arg( i ) );
if ( tool.hasKey( "ScoreHeader" ) ) {

@ -372,7 +372,7 @@ void IdentityPage::save() {
// have more than one identity, so better show the combo in the
// composer now:
KConfigGroup composer( KMKernel::config(), "Composer" );
int showHeaders = composer.readEntry( "headers", QVariant( HDR_STANDARD ) ).toInt();
int showHeaders = composer.readEntry( "headers", HDR_STANDARD );
showHeaders |= HDR_IDENTITY;
composer.writeEntry( "headers", showHeaders );
}
@ -380,7 +380,7 @@ void IdentityPage::save() {
if( mOldNumberOfIdentities > 1 && mIdentityList->childCount() < 2 ) {
// have only one identity, so remove the combo in the composer:
KConfigGroup composer( KMKernel::config(), "Composer" );
int showHeaders = composer.readEntry( "headers", QVariant( HDR_STANDARD ) ).toInt();
int showHeaders = composer.readEntry( "headers", HDR_STANDARD );
showHeaders &= ~HDR_IDENTITY;
composer.writeEntry( "headers", showHeaders );
}
@ -1660,7 +1660,7 @@ void AppearancePage::FontsTab::doLoadOther() {
QFont fixedFont = KGlobalSettings::fixedFont();
for ( int i = 0 ; i < numFontNames ; i++ )
mFont[i] = fonts.readEntry( fontNames[i].configName,
QVariant( (fontNames[i].onlyFixed) ? fixedFont : mFont[0] ) ).value<QFont>();
(fontNames[i].onlyFixed) ? fixedFont : mFont[0] );
mCustomFontCheck->setChecked( !fonts.readEntry( "defaultFonts", true ) );
mFontLocationCombo->setCurrentIndex( 0 );
@ -1675,7 +1675,7 @@ void AppearancePage::FontsTab::installProfile( KConfig * profile ) {
for ( int i = 0 ; i < numFontNames ; i++ )
if ( fonts.hasKey( fontNames[i].configName ) ) {
needChange = true;
mFont[i] = fonts.readEntry( fontNames[i].configName, QVariant( QFont() ) ).value<QFont>();
mFont[i] = fonts.readEntry( fontNames[i].configName, QFont() );
kDebug(5006) << "got font \"" << fontNames[i].configName
<< "\" thusly: \"" << mFont[i].toString() << "\"" << endl;
}
@ -1811,8 +1811,7 @@ void AppearancePage::ColorsTab::doLoadOther() {
for ( int i = 0 ; i < numColorNames ; i++ )
mColorList->setColor( i,
reader.readEntry( colorNames[i].configName, QVariant( &defaultColor[i] ) )
.value<QColor>() );
reader.readEntry( colorNames[i].configName, defaultColor[i] ));
connect( mColorList, SIGNAL( changed( ) ),
this, SLOT( slotEmitChanged( void ) ) );
}
@ -1828,7 +1827,7 @@ void AppearancePage::ColorsTab::installProfile( KConfig * profile ) {
for ( int i = 0 ; i < numColorNames ; i++ )
if ( reader.hasKey( colorNames[i].configName ) )
mColorList->setColor( i,
reader.readEntry( colorNames[i].configName, QVariant( QColor() ) ).value<QColor>() );
reader.readEntry( colorNames[i].configName, QColor() ));
}
void AppearancePage::ColorsTab::save() {
@ -2118,7 +2117,7 @@ void AppearancePage::HeadersTab::doLoadOther() {
// "Date Display":
setDateDisplay( general.readEntry( "dateFormat",
QVariant( DateFormatter::Fancy ) ).toInt(),
(int) DateFormatter::Fancy ),
general.readEntry( "customDateFormat" ) );
}

@ -121,10 +121,10 @@ QColor KMail::HtmlStatusBar::fgColor() const {
switch ( mode() ) {
case Html:
def = Qt::white;
return conf.readEntry( "ColorbarForegroundHTML", QVariant( &def ) ).value<QColor>();
return conf.readEntry( "ColorbarForegroundHTML", def );
case Normal:
def = Qt::black;
return conf.readEntry( "ColorbarForegroundPlain", QVariant( &def ) ).value<QColor>();
return conf.readEntry( "ColorbarForegroundPlain", def );
default:
case Neutral:
return Qt::black;
@ -138,10 +138,10 @@ QColor KMail::HtmlStatusBar::bgColor() const {
switch ( mode() ) {
case Html:
def = Qt::black;
return conf.readEntry( "ColorbarBackgroundHTML", QVariant( &def ) ).value<QColor>();
return conf.readEntry( "ColorbarBackgroundHTML", def );
case Normal:
def = Qt::lightGray;
return conf.readEntry( "ColorbarBackgroundPlain", QVariant( &def ) ).value<QColor>();
return conf.readEntry( "ColorbarBackgroundPlain", def );
default:
case Neutral:
return Qt::white;

@ -447,7 +447,7 @@ namespace KMail {
KConfigGroup geometry( KMKernel::config(), "Geometry" );
if ( geometry.hasKey( "Identity Dialog size" ) )
resize( geometry.readEntry( "Identity Dialog size", QVariant( QSize() ) ).toSize() );
resize( geometry.readEntry( "Identity Dialog size", QSize() ));
mNameEdit->setFocus();
connect( tabWidget, SIGNAL(currentChanged(QWidget*)),

Loading…
Cancel
Save