mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 13:45:10 -05:00
themeeditor: Make it compile with current Qt5.
- Replace use of obsolete members with their replacements. - Fix type issue that requires explicitly creating the right object now. - Update project file to work with Qt5. Change-Id: I3af2b1520796e977e58c0a01e165c77c469a23b9
This commit is contained in:
parent
ff38666a19
commit
fa330c109d
10 changed files with 35 additions and 35 deletions
|
|
@ -227,7 +227,7 @@ void RBScreen::makeCustomUI(QString id)
|
|||
|
||||
void RBScreen::endSbsRender()
|
||||
{
|
||||
sbsChildren = children();
|
||||
sbsChildren = childItems();
|
||||
|
||||
QList<int> keys = fonts.keys();
|
||||
for(QList<int>::iterator i = keys.begin(); i != keys.end(); i++)
|
||||
|
|
@ -259,7 +259,7 @@ QColor RBScreen::stringToColor(QString str, QColor fallback)
|
|||
{
|
||||
for(int i = 0; i < 6; i++)
|
||||
{
|
||||
char c = str[i].toAscii();
|
||||
char c = str[i].toLatin1();
|
||||
if(!((c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F') ||
|
||||
isdigit(c)))
|
||||
{
|
||||
|
|
@ -274,9 +274,9 @@ QColor RBScreen::stringToColor(QString str, QColor fallback)
|
|||
}
|
||||
else if(str.length() == 1)
|
||||
{
|
||||
if(isdigit(str[0].toAscii()) && str[0].toAscii() <= '3')
|
||||
if(isdigit(str[0].toLatin1()) && str[0].toLatin1() <= '3')
|
||||
{
|
||||
int shade = 255 * (str[0].toAscii() - '0') / 3;
|
||||
int shade = 255 * (str[0].toLatin1() - '0') / 3;
|
||||
retval = QColor(shade, shade, shade);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue