Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM GrantleeTheme
Commits
fff02d45
Commit
fff02d45
authored
Feb 01, 2021
by
Laurent Montel
😁
Browse files
UTF-8 is the new default for QTextStream.
parent
15dca4bc
Pipeline
#49303
failed with stage
in 4 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/qtresourcetemplateloader.cpp
View file @
fff02d45
...
...
@@ -29,7 +29,9 @@ Grantlee::Template QtResourceTemplateLoader::loadByName(const QString &fileName,
}
QTextStream
fstream
(
&
file
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
fstream
.
setCodec
(
"UTF-8"
);
#endif
const
auto
fileContent
=
fstream
.
readAll
();
return
engine
->
newTemplate
(
fileContent
,
fileName
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment