mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 00:58:15 -04:00
Bump Qt deprecation level to 6.4
This commit is contained in:
parent
560d0483ae
commit
d34c1668aa
@ -78,8 +78,8 @@ set_package_properties(LibRaw PROPERTIES
|
|||||||
)
|
)
|
||||||
|
|
||||||
ecm_set_disabled_deprecation_versions(
|
ecm_set_disabled_deprecation_versions(
|
||||||
QT 5.15.2
|
QT 6.4
|
||||||
KF 5.95
|
KF 5.102
|
||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
@ -162,9 +162,9 @@ int main(int argc, char **argv)
|
|||||||
if (!fi.suffix().compare("png", Qt::CaseInsensitive)) {
|
if (!fi.suffix().compare("png", Qt::CaseInsensitive)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
int suffixPos = fi.filePath().count() - suffix.count();
|
int suffixPos = fi.filePath().size() - suffix.size();
|
||||||
QString inputfile = fi.filePath();
|
QString inputfile = fi.filePath();
|
||||||
QString expfile = fi.filePath().replace(suffixPos, suffix.count(), QStringLiteral("png"));
|
QString expfile = fi.filePath().replace(suffixPos, suffix.size(), QStringLiteral("png"));
|
||||||
QString expfilename = QFileInfo(expfile).fileName();
|
QString expfilename = QFileInfo(expfile).fileName();
|
||||||
|
|
||||||
std::unique_ptr<QIODevice> inputDevice(seq ? new SequentialFile(inputfile) : new QFile(inputfile));
|
std::unique_ptr<QIODevice> inputDevice(seq ? new SequentialFile(inputfile) : new QFile(inputfile));
|
||||||
|
@ -85,8 +85,8 @@ int main(int argc, char **argv)
|
|||||||
if (parser.isSet(ignoreDataCheck)) {
|
if (parser.isSet(ignoreDataCheck)) {
|
||||||
pngfile = fi.filePath();
|
pngfile = fi.filePath();
|
||||||
} else {
|
} else {
|
||||||
int suffixPos = fi.filePath().count() - suffix.count();
|
int suffixPos = fi.filePath().size() - suffix.size();
|
||||||
pngfile = fi.filePath().replace(suffixPos, suffix.count(), QStringLiteral("png"));
|
pngfile = fi.filePath().replace(suffixPos, suffix.size(), QStringLiteral("png"));
|
||||||
}
|
}
|
||||||
QString pngfilename = QFileInfo(pngfile).fileName();
|
QString pngfilename = QFileInfo(pngfile).fileName();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user