If skin not set, read it from the QRC file instead.

This commit is contained in:
Tobias Rundstrom 2006-03-04 16:37:49 -03:00
parent 726826234b
commit fcf2c543ee
3 changed files with 30 additions and 3 deletions

View file

@ -100,7 +100,12 @@ int
main (int argc, char **argv)
{
QApplication app(argc, argv);
QSettings settings ("XMMS2", "Promoe");
QCoreApplication::setOrganizationName("XMMS2 Team");
QCoreApplication::setOrganizationDomain("xmms.org");
QCoreApplication::setApplicationName("Promoe");
QSettings settings;
#ifdef Q_OS_MACX
/** This is soooo wrong, there must exsist a flag for
@ -120,7 +125,7 @@ main (int argc, char **argv)
* all widgets to get their pixmaps
*/
if (!settings.contains ("skin/path")) {
settings.setValue ("skin/path", "./CleanAMP/");
settings.setValue ("skin/path", ":CleanAMP/");
}
Skin::getInstance()->setSkin (settings.value("skin/path").toString ());