summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/gui/skinhighlighter.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-09-03 18:33:12 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-09-03 18:45:48 +0200
commitfa330c109dcf3399b5fdc27b188c0bafbb6e6016 (patch)
treee9e96d7f507404e4936ef681f03630aa1e3affae /utils/themeeditor/gui/skinhighlighter.cpp
parentff38666a19b09169b1a7cf1f0eda20374bc390de (diff)
downloadrockbox-fa330c109d.tar.gz
rockbox-fa330c109d.tar.bz2
rockbox-fa330c109d.zip
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
Diffstat (limited to 'utils/themeeditor/gui/skinhighlighter.cpp')
-rw-r--r--utils/themeeditor/gui/skinhighlighter.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/utils/themeeditor/gui/skinhighlighter.cpp b/utils/themeeditor/gui/skinhighlighter.cpp
index 92475dc5fd..9236cce2b6 100644
--- a/utils/themeeditor/gui/skinhighlighter.cpp
+++ b/utils/themeeditor/gui/skinhighlighter.cpp
@@ -63,7 +63,7 @@ void SkinHighlighter::highlightBlock(const QString& text)
if(text.length() - i < 2)
return;
- if(find_escape_character(text[i + 1].toAscii()))
+ if(find_escape_character(text[i + 1].toLatin1()))
{
/* Checking for escaped characters */
@@ -82,8 +82,8 @@ void SkinHighlighter::highlightBlock(const QString& text)
if(text.length() - i >= 3)
{
- lookup[0] = text[i + 1].toAscii();
- lookup[1] = text[i + 2].toAscii();
+ lookup[0] = text[i + 1].toLatin1();
+ lookup[1] = text[i + 2].toLatin1();
found = find_tag(lookup);
}
@@ -96,7 +96,7 @@ void SkinHighlighter::highlightBlock(const QString& text)
else
{
lookup[1] = '\0';
- lookup[0] = text[i + 1].toAscii();
+ lookup[0] = text[i + 1].toLatin1();
found = find_tag(lookup);
if(found)
@@ -121,8 +121,8 @@ void SkinHighlighter::highlightBlock(const QString& text)
if(text.length() - i >= 4)
{
- lookup[0] = text[i + 2].toAscii();
- lookup[1] = text[i + 3].toAscii();
+ lookup[0] = text[i + 2].toLatin1();
+ lookup[1] = text[i + 3].toLatin1();
found = find_tag(lookup);
}
@@ -135,7 +135,7 @@ void SkinHighlighter::highlightBlock(const QString& text)
else
{
lookup[1] = '\0';
- lookup[0] = text[i + 2].toAscii();
+ lookup[0] = text[i + 2].toLatin1();
found = find_tag(lookup);