- if (size > 0)
- {
-//#warning "!!!"
-//Not sure if this will work properly... Seems to.
- QImage label;
- bool success = label.loadFromData(buffer, size);
- img = new QImage();
-// *img = label.scaled(373, 172, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
- *img = label.scaled(365, 168, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
-//printf("FT: Label %s: %ux%u.\n", (success ? "succeeded" : "did not succeed"), img->width(), img->height());
-// These two are NOT interchangeable!
-//Hm, confusing. It looks like in file.cpp it uses operater new() to create the buffer...
-// delete[] buffer;
- free(buffer);
- }
-//printf("FileThread: Attempted to load image. Size: %u x %u...\n", img.width(), img.height());
+ // See if we can fish out a label. :-)
+ if (haveZIPFile)
+ {
+ uint32_t size = GetFileFromZIP(fileInfo.filePath().toAscii(), FT_LABEL, buffer);
+//printf("FT: Label size = %u bytes.\n", size);