[Qgis-developer] Theme support in plugins

Tim Sutton tim at linfiniti.com
Sat Dec 20 13:02:21 EST 2008


Hi Borys

I am happy to have this change (grass plugin theme support). I would
have liked to have all plugins themeable but I had too many things on my
plate. It will be great if you patch plugin theming support after I tag
the 1.0.0 release this evening.

Regards

Tim

On Sat, 2008-12-20 at 14:55 +0100, Borys Jurgiel wrote:
> Hi Folks,
> We have a new shining 'gis' buttons for plugins, but most plugins 
> don't support themes yet. I need to add a few lines of code to each 
> plugin, so I'll wait for 1.0.1. 
> 
> Only one plugin where the fix is simple and safe is the grass plugin, 
> which used to support themes already, but only themes compiled with qgis:
> 
> -  QString myPath = ":/" + QgsApplication::themeName() + "/grass/" + theName;
> +  QString myPath = QgsApplication::activeThemePath() + QDir::separator() + "grass" + QDir::separator() + theName;
> 
> -  QString myDefaultPath = ":/default/grass/" + theName;
> +  QString myDefaultPath = QgsApplication::defaultThemePath() + QDir::separator() + "grass" + QDir::separator() + theName;
> 
> I've commited in rev 9873. I believe it's completely safe change - however 
> if anybody disagree to implement it in a last minute, I can revert it.
> 
> Regards,
> B.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Visit http://linfiniti.com to find out about:
 * QGIS programming services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting & Support Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
==============================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/qgis-developer/attachments/20081220/52672dfc/attachment.bin


More information about the Qgis-developer mailing list