forked from len0rd/rockbox
Theme Editor: SkinDocument class now checks file extension when loading a document and sets the cs device setting accordingly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27673 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7cd57a9671
commit
436ed78b6f
1 changed files with 15 additions and 0 deletions
|
@ -73,6 +73,21 @@ SkinDocument::SkinDocument(QLabel* statusLabel, QString file,
|
|||
QStringList decomposed = fileName.split('/');
|
||||
titleText = decomposed.last();
|
||||
|
||||
/* Setting the current screen device setting */
|
||||
QString extension = titleText.split(".").last().toLower().right(3);
|
||||
if(extension == "wps")
|
||||
{
|
||||
device->setData("cs", "WPS");
|
||||
}
|
||||
else if(extension == "sbs")
|
||||
{
|
||||
device->setData("cs", "Menus");
|
||||
}
|
||||
else if(extension == "fms")
|
||||
{
|
||||
device->setData("cs", "FM Radio Screen");
|
||||
}
|
||||
|
||||
lastUpdate = QTime::currentTime();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue