mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #25: Windows build without plugins
This commit is contained in:
@ -73,7 +73,7 @@ void GeneratorMainWindow::load(const QString& fileName)
|
||||
if (file.open(QFile::ReadOnly | QFile::Truncate))
|
||||
{
|
||||
QTextStream stream(&file);
|
||||
stream.setCodec("UTF-8");
|
||||
stream.setEncoding(QStringConverter::Utf8);
|
||||
|
||||
QDomDocument document;
|
||||
document.setContent(stream.readAll());
|
||||
@ -370,7 +370,7 @@ void GeneratorMainWindow::save(const QString& fileName)
|
||||
if (file.open(QFile::WriteOnly | QFile::Truncate))
|
||||
{
|
||||
QTextStream stream(&file);
|
||||
stream.setCodec("UTF-8");
|
||||
stream.setEncoding(QStringConverter::Utf8);
|
||||
|
||||
QDomDocument document;
|
||||
m_generator->store(document);
|
||||
|
Reference in New Issue
Block a user