[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kopete/libkopete
From:       Matt Rogers <mattrogers () sbcglobal ! net>
Date:       2003-07-13 20:52:02
[Download RAW message or body]

CVS commit by mattr: 

Use writeEntry with a QColor and readColorEntry to fix the account icon overlay
problems.


  M +5 -3      kopeteaccount.cpp   1.36


--- kdenonbeta/kopete/libkopete/kopeteaccount.cpp  #1.35:1.36
@@ -134,5 +134,5 @@ void KopeteAccount::writeConfig( const Q
 
         if( d->color.isValid() )
-                config->writeEntry( "Color", d->color.name() );
+                config->writeEntry( "Color", d->color );
 
         // Store other plugin data
@@ -142,4 +142,5 @@ void KopeteAccount::writeConfig( const Q
 void KopeteAccount::readConfig( const QString &configGroup )
 {
+        QString newColor;
         KConfig *config = KGlobal::config();
         config->setGroup( configGroup );
@@ -147,5 +148,6 @@ void KopeteAccount::readConfig( const QS
         d->password  = cryptStr( config->readEntry( "Password" ) );
         d->autologin = config->readBoolEntry( "AutoConnect", false );
-        d->color     = config->readEntry( "Color", QString::null );
+        d->color = config->readColorEntry( "Color", &d->color );
+
 
         // Handle the plugin data, if any


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic