summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/skinhighlighter.cpp
diff options
context:
space:
mode:
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)
63 if(text.length() - i < 2) 63 if(text.length() - i < 2)
64 return; 64 return;
65 65
66 if(find_escape_character(text[i + 1].toAscii())) 66 if(find_escape_character(text[i + 1].toLatin1()))
67 { 67 {
68 /* Checking for escaped characters */ 68 /* Checking for escaped characters */
69 69
@@ -82,8 +82,8 @@ void SkinHighlighter::highlightBlock(const QString& text)
82 82
83 if(text.length() - i >= 3) 83 if(text.length() - i >= 3)
84 { 84 {
85 lookup[0] = text[i + 1].toAscii(); 85 lookup[0] = text[i + 1].toLatin1();
86 lookup[1] = text[i + 2].toAscii(); 86 lookup[1] = text[i + 2].toLatin1();
87 87
88 found = find_tag(lookup); 88 found = find_tag(lookup);
89 } 89 }
@@ -96,7 +96,7 @@ void SkinHighlighter::highlightBlock(const QString& text)
96 else 96 else
97 { 97 {
98 lookup[1] = '\0'; 98 lookup[1] = '\0';
99 lookup[0] = text[i + 1].toAscii(); 99 lookup[0] = text[i + 1].toLatin1();
100 found = find_tag(lookup); 100 found = find_tag(lookup);
101 101
102 if(found) 102 if(found)
@@ -121,8 +121,8 @@ void SkinHighlighter::highlightBlock(const QString& text)
121 121
122 if(text.length() - i >= 4) 122 if(text.length() - i >= 4)
123 { 123 {
124 lookup[0] = text[i + 2].toAscii(); 124 lookup[0] = text[i + 2].toLatin1();
125 lookup[1] = text[i + 3].toAscii(); 125 lookup[1] = text[i + 3].toLatin1();
126 126
127 found = find_tag(lookup); 127 found = find_tag(lookup);
128 } 128 }
@@ -135,7 +135,7 @@ void SkinHighlighter::highlightBlock(const QString& text)
135 else 135 else
136 { 136 {
137 lookup[1] = '\0'; 137 lookup[1] = '\0';
138 lookup[0] = text[i + 2].toAscii(); 138 lookup[0] = text[i + 2].toLatin1();
139 139
140 found = find_tag(lookup); 140 found = find_tag(lookup);
141 141