[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

QGPluginManager can't handle styles of different KDE versions



Hi,

I'm running self compiled KDE and Qt but from time to time I use apps 
from Sid. But these apps don't use the configured style (plastik), 
instead they use the style highcontrast.

After some time digging in Qt's plugin code I found something in 
QGPluginManager::library() (see attachment). With this patch applied the 
correct style is used.

The bug report at Trolltech is

http://www.trolltech.com/developer/tasktracker.html?method=entry&id=94678

Could you apply this patch to the debian package libqt-mt?


Cheers,
André


P.S.: Please CC me, I'm not subscribed.
Index: qgpluginmanager.cpp
===================================================================
--- qgpluginmanager.cpp	(revision 463588)
+++ qgpluginmanager.cpp	(working copy)
@@ -389,6 +389,7 @@
 	    } else {
 		QPtrList<QComLibrary> same;
 		same.setAutoDelete( TRUE );
+                same.append( new QComLibrary( lib ) );
 		for ( QStringList::ConstIterator bit = sameBasename.begin();
 		      bit != sameBasename.end(); ++bit )
 		    same.append( new QComLibrary( *bit ) );

Reply to: