Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qresourcerelocater.cpp File Reference

(427d47b7ac312e196c8d9a4cdef4a664f8b63788)

#include "qresourcerelocater_p.h"
#include <QXmlStreamReader>
#include <QFile>
#include <QDir>
+ Include dependency graph for qresourcerelocater.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE int qRelocateResourceFile (const QString &input, const QString &output)
 

Function Documentation

◆ qRelocateResourceFile()

QT_BEGIN_NAMESPACE int qRelocateResourceFile ( const QString & input,
const QString & output )

Changes all the paths in resource file input so that they are relative to location output and writes the result to resource file output.

Definition at line 17 of file qresourcerelocater.cpp.

References QFileInfo::absoluteDir(), QString::append(), QString::endsWith(), file, QString::isEmpty(), QStringView::isEmpty(), QFileDevice::NoError, QFile::open(), output, outputFile, QString::prepend(), qPrintable, QStringLiteral, QIODeviceBase::ReadOnly, QDir::relativeFilePath(), QString::startsWith(), state, QImageReader::text(), QStringView::toString(), QString::toUtf8(), QIODeviceBase::Truncate, and QIODeviceBase::WriteOnly.

+ Here is the call graph for this function: