Extend application branding

This commit is contained in:
wmayer
2012-02-23 20:25:33 +01:00
parent 68c9d5e0fb
commit d6511969cd
11 changed files with 104 additions and 58 deletions

View File

@@ -77,6 +77,10 @@ BitmapFactoryInst& BitmapFactoryInst::instance(void)
if (_pcSingleton == NULL)
{
_pcSingleton = new BitmapFactoryInst;
std::map<std::string,std::string>::const_iterator it;
it = App::GetApplication().Config().find("ProgramIcons");
if (it != App::GetApplication().Config().end())
_pcSingleton->addPath(QString::fromUtf8(it->second.c_str()));
_pcSingleton->addPath(QLatin1String(":/icons/"));
_pcSingleton->addPath(QLatin1String(":/Icons/"));
_pcSingleton->addPath(QString::fromUtf8(App::GetApplication().GetHomePath()));