![]() |
Qt 6.x
The Qt SDK
|
Go to the source code of this file.
Functions | |
QT_BEGIN_NAMESPACE int | qRelocateResourceFile (const QString &input, const QString &output) |
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(), 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.