If skin not set, read it from the QRC file instead.
This commit is contained in:
parent
726826234b
commit
fcf2c543ee
3 changed files with 30 additions and 3 deletions
|
@ -100,7 +100,12 @@ int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
QApplication app(argc, 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
|
#ifdef Q_OS_MACX
|
||||||
/** This is soooo wrong, there must exsist a flag for
|
/** 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
|
* all widgets to get their pixmaps
|
||||||
*/
|
*/
|
||||||
if (!settings.contains ("skin/path")) {
|
if (!settings.contains ("skin/path")) {
|
||||||
settings.setValue ("skin/path", "./CleanAMP/");
|
settings.setValue ("skin/path", ":CleanAMP/");
|
||||||
}
|
}
|
||||||
|
|
||||||
Skin::getInstance()->setSkin (settings.value("skin/path").toString ());
|
Skin::getInstance()->setSkin (settings.value("skin/path").toString ());
|
||||||
|
|
1
TODO
1
TODO
|
@ -21,7 +21,6 @@ Todo:
|
||||||
* Compressed file reader
|
* Compressed file reader
|
||||||
* Manage with faulty skins
|
* Manage with faulty skins
|
||||||
* make cool effects when switching skin?
|
* make cool effects when switching skin?
|
||||||
* Make default skin live in a qt resource
|
|
||||||
* Medialib browser
|
* Medialib browser
|
||||||
* Keep it very simple
|
* Keep it very simple
|
||||||
* browse by album art
|
* browse by album art
|
||||||
|
|
23
promoe.qrc
23
promoe.qrc
|
@ -2,5 +2,28 @@
|
||||||
<qresource>
|
<qresource>
|
||||||
<file>icon.png</file>
|
<file>icon.png</file>
|
||||||
<file>nocover.jpg</file>
|
<file>nocover.jpg</file>
|
||||||
|
<file>CleanAMP/Eq_ex.bmp</file>
|
||||||
|
<file>CleanAMP/GENEX.bmp</file>
|
||||||
|
<file>CleanAMP/Gen.bmp</file>
|
||||||
|
<file>CleanAMP/MONOSTER.BMP</file>
|
||||||
|
<file>CleanAMP/PLEDIT.TXT</file>
|
||||||
|
<file>CleanAMP/ReadMe.txt</file>
|
||||||
|
<file>CleanAMP/Thumbs.db</file>
|
||||||
|
<file>CleanAMP/VIDEO.bmp</file>
|
||||||
|
<file>CleanAMP/Volume.bmp</file>
|
||||||
|
<file>CleanAMP/balance.bmp</file>
|
||||||
|
<file>CleanAMP/cbuttons.bmp</file>
|
||||||
|
<file>CleanAMP/eqmain.bmp</file>
|
||||||
|
<file>CleanAMP/main.bmp</file>
|
||||||
|
<file>CleanAMP/mb.bmp</file>
|
||||||
|
<file>CleanAMP/numbers.bmp</file>
|
||||||
|
<file>CleanAMP/playpaus.bmp</file>
|
||||||
|
<file>CleanAMP/pledit.bmp</file>
|
||||||
|
<file>CleanAMP/posbar.bmp</file>
|
||||||
|
<file>CleanAMP/shufrep.bmp</file>
|
||||||
|
<file>CleanAMP/text.bmp</file>
|
||||||
|
<file>CleanAMP/titlebar.bmp</file>
|
||||||
|
<file>CleanAMP/viscolor.txt</file>
|
||||||
|
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue