summaryrefslogtreecommitdiff
path: root/utils/themeeditor/graphics/rbscreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/graphics/rbscreen.cpp')
-rw-r--r--utils/themeeditor/graphics/rbscreen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/themeeditor/graphics/rbscreen.cpp b/utils/themeeditor/graphics/rbscreen.cpp
index b01552cc44..2e814a084f 100644
--- a/utils/themeeditor/graphics/rbscreen.cpp
+++ b/utils/themeeditor/graphics/rbscreen.cpp
@@ -227,7 +227,7 @@ void RBScreen::makeCustomUI(QString id)
227 227
228void RBScreen::endSbsRender() 228void RBScreen::endSbsRender()
229{ 229{
230 sbsChildren = children(); 230 sbsChildren = childItems();
231 231
232 QList<int> keys = fonts.keys(); 232 QList<int> keys = fonts.keys();
233 for(QList<int>::iterator i = keys.begin(); i != keys.end(); i++) 233 for(QList<int>::iterator i = keys.begin(); i != keys.end(); i++)
@@ -259,7 +259,7 @@ QColor RBScreen::stringToColor(QString str, QColor fallback)
259 { 259 {
260 for(int i = 0; i < 6; i++) 260 for(int i = 0; i < 6; i++)
261 { 261 {
262 char c = str[i].toAscii(); 262 char c = str[i].toLatin1();
263 if(!((c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F') || 263 if(!((c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F') ||
264 isdigit(c))) 264 isdigit(c)))
265 { 265 {
@@ -274,9 +274,9 @@ QColor RBScreen::stringToColor(QString str, QColor fallback)
274 } 274 }
275 else if(str.length() == 1) 275 else if(str.length() == 1)
276 { 276 {
277 if(isdigit(str[0].toAscii()) && str[0].toAscii() <= '3') 277 if(isdigit(str[0].toLatin1()) && str[0].toLatin1() <= '3')
278 { 278 {
279 int shade = 255 * (str[0].toAscii() - '0') / 3; 279 int shade = 255 * (str[0].toLatin1() - '0') / 3;
280 retval = QColor(shade, shade, shade); 280 retval = QColor(shade, shade, shade);
281 } 281 }
282 else 282 else