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

List:       kde-commits
Subject:    kdenetwork/kopete/kopete/config/appearance
From:       Duncan Mac-Vicar Prett <duncan () kde ! org>
Date:       2004-02-22 1:40:50
Message-ID: 20040222014050.CBE919959 () office ! kde ! org
[Download RAW message or body]

CVS commit by dmacvicar: 

Fix (not tested) style preview
Remove a comment from Martijn since is not loger applicable (addStyle already uses \
locateLocal)


  M +4 -6      appearanceconfig.cpp   1.23


--- kdenetwork/kopete/kopete/config/appearance/appearanceconfig.cpp  #1.22:1.23
@@ -316,5 +316,5 @@ void AppearanceConfig::slotSelectedEmoti
         KopeteEmoticons emoticons( themeName );
         QStringList smileys = emoticons.picList();
-        QString newContentText("<qt>");
+        QString newContentText = "<qt>";
 
         for(QStringList::Iterator it = smileys.begin(); it != smileys.end(); ++it )
@@ -442,7 +442,4 @@ void AppearanceConfig::slotImportStyle()
                         {
                                 QFileInfo fi( stylePath );
-
-                                // FIXME: Isn't it better to copy the style to \
                $KDEHOME/share/apps/kopete/styles
-                                //        using locateLocal() - Martijn
                                 addStyle( fi.fileName().section( '.', 0, 0 ), \
styleSheet );  }
@@ -611,5 +608,6 @@ void AppearanceConfig::slotUpdatePreview
 
                 // Parsing a XSLT message is incredibly slow! that's why I commented \
                out some preview messages
-                d->xsltParser->setXSLT( fileContents( itemMap[ style ] ) );
+                QString stylePath = locate("appdata", \
QString::fromLatin1("styles/%1.xsl").arg(itemMap[ style ]) ); +                \
                d->xsltParser->setXSLT( fileContents(stylePath) );
                 preview->write( d->xsltParser->transform( msgIn.asXML().toString() ) \
                );
                 preview->write( d->xsltParser->transform( msgOut.asXML().toString()) \
);


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

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