Mercurial > minori
comparison src/core/anime_db.cc @ 381:5beae59cf042
anime_db: fix build fail under Qt 5
| author | Paper <paper@tflc.us> |
|---|---|
| date | Thu, 06 Nov 2025 01:17:24 -0500 |
| parents | 5eaafed6c10b |
| children | 27c462bc7815 |
comparison
equal
deleted
inserted
replaced
| 380:861368fd42ff | 381:5beae59cf042 |
|---|---|
| 406 | 406 |
| 407 /* If it's not valid, return dummy QImage */ | 407 /* If it's not valid, return dummy QImage */ |
| 408 if (arr.isNull() || !res.loadFromData(arr)) | 408 if (arr.isNull() || !res.loadFromData(arr)) |
| 409 return QImage(); | 409 return QImage(); |
| 410 | 410 |
| 411 qDebug() << posterfile; | |
| 412 | |
| 413 /* Save the result to disk | 411 /* Save the result to disk |
| 414 * TODO might be more efficient to save with original format, | 412 * TODO probably more efficient to save with original format, |
| 415 * and save filename as well */ | 413 * and save filename as well in the anime class */ |
| 416 if (!res.save(posterfile, "png")) | 414 res.save(posterfile, "png"); |
| 417 qDebug() << "oops\n"; | |
| 418 | 415 |
| 419 return res; | 416 return res; |
| 420 } | 417 } |
| 421 | 418 |
| 422 Database db; | 419 Database db; |
