![]() |
Qt 6.x
The Qt SDK
|
#include <private/qtqmlcompilerexports_p.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_PRIVATE_EXPORT | qRelocateResourceFile (const QString &input, const QString &output) |
| QT_BEGIN_NAMESPACE int Q_QMLCOMPILER_PRIVATE_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(), QDir::absoluteFilePath(), QXmlStreamAttributes::append(), QString::append(), QString::endsWith(), file, QXmlStreamAttributes::hasAttribute(), QString::isEmpty(), QStringView::isEmpty(), QFileDevice::NoError, QFile::open(), output, outputFile, QString::prepend(), qPrintable, QStringLiteral, QIODeviceBase::ReadOnly, QDir::relativeFilePath(), QByteArray::size(), QString::startsWith(), state, QImageReader::text(), QStringView::toString(), QString::toUtf8(), QIODeviceBase::Truncate, QXmlStreamAttributes::value(), and QIODeviceBase::WriteOnly.
Here is the call graph for this function: