mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-10-23 22:48:52 -04:00
expose the underlying library version in the image metadata
This commit is contained in:
@@ -198,7 +198,7 @@ int main(int argc, char **argv)
|
||||
QCoreApplication::removeLibraryPath(QStringLiteral(PLUGIN_DIR));
|
||||
QCoreApplication::addLibraryPath(QStringLiteral(PLUGIN_DIR));
|
||||
QCoreApplication::setApplicationName(QStringLiteral("readtest"));
|
||||
QCoreApplication::setApplicationVersion(QStringLiteral("1.3.0"));
|
||||
QCoreApplication::setApplicationVersion(QStringLiteral("1.3.1"));
|
||||
|
||||
QCommandLineParser parser;
|
||||
parser.setApplicationDescription(QStringLiteral("Performs basic image conversion checking."));
|
||||
@@ -352,6 +352,12 @@ int main(int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
|
||||
// version of the underlying library used, if any
|
||||
QString libVer = inputImage.text(QStringLiteral("Library"));
|
||||
if (!libVer.isEmpty()) {
|
||||
QTextStream(stdout) << "INFO : using " << libVer << "\n";
|
||||
}
|
||||
|
||||
if (!optionTest.compare(&inputReader)) {
|
||||
QTextStream(stdout) << "FAIL : " << fi.fileName() << ": error while comparing options\n";
|
||||
++failed;
|
||||
|
||||
Reference in New Issue
Block a user