chore(cpn): upgrade to Ubuntu 22.04 and Qt 6.9.0 (#5986)
Co-authored-by: elecpower <elecpower@users.noreply.github.com> Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
co-authored by
elecpower
raphaelcoeffic
parent
7264b28e62
commit
9e86a3ea84
@@ -92,7 +92,7 @@ void SplashLibraryDialog::getFileList()
|
||||
QDir myRes(":/images/library");
|
||||
QStringList tmp = myRes.entryList();
|
||||
for (int i = 0; i < tmp.size(); i++) {
|
||||
QFileInfo fileInfo = tmp.at(i);
|
||||
QFileInfo fileInfo(tmp.at(i));
|
||||
imageList.append(":/images/library/" + fileInfo.fileName());
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ void SplashLibraryDialog::getFileList()
|
||||
myDir.setNameFilters(supportedImageFormats);
|
||||
QStringList tmp = myDir.entryList();
|
||||
for (int i = 0; i < tmp.size(); i++) {
|
||||
QFileInfo fileInfo = tmp.at(i);
|
||||
QFileInfo fileInfo(tmp.at(i));
|
||||
QString filename = libraryPath + "/" + fileInfo.fileName();
|
||||
QImage image(filename);
|
||||
if (!image.isNull()) {
|
||||
|
||||
Reference in New Issue
Block a user