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>.
|
#include <qtqmlcompilerexports.h>
#include <QtCore/qstring.h>
#include <QtCore/private/qglobal_p.h>
Go to the source code of this file.
Functions | |
QT_BEGIN_NAMESPACE int Q_QMLCOMPILER_EXPORT | qRelocateResourceFile (const QString &input, const QString &output) |
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.