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_p.h File Reference

(1b17918d16d2de91bd265b092863f96dbe15efbe)

#include <qtqmlcompilerexports.h>
#include <QtCore/qstring.h>
#include <QtCore/private/qglobal_p.h>
+ Include dependency graph for qresourcerelocater_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

Function Documentation

◆ qRelocateResourceFile()

QT_BEGIN_NAMESPACE int Q_QMLCOMPILER_EXPORT 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: