+// painter->drawPixmap(option.rect.x(), option.rect.y(), 488/2, 395/2, QPixmap(":/res/cart-blank.png"));
+
+
+ // This is crappy. We really should have a properly scaled image ready to go so we
+ // don't get Qt's default ugly looking fast scaling...
+
+#warning "!!! FIX !!! Need to create properly scaled down cart/label images!"
+//We've got the carts, now just need to do the labels...
+
+ unsigned long i = index.model()->data(index, FLM_INDEX).toUInt();
+ QString filename = index.model()->data(index, FLM_FILENAME).toString();
+ QImage label = index.model()->data(index, FLM_LABEL).value<QImage>();
+ QString nameToDraw;
+
+ if (i == 0xFFFFFFFF) // Not found...
+ {
+ int lastSlashPos = filename.lastIndexOf('/');
+ nameToDraw = "\"" + filename.mid(lastSlashPos + 1) + "\"";
+ }
+ else
+ nameToDraw = romList[i].name;
+
+ if (label.isNull())
+ {
+// painter->drawPixmap(option.rect.x()+14, option.rect.y()+50, 433/2, 203/2, QPixmap(":/res/label-blank.png"));
+// painter->drawPixmap(option.rect.x()+7, option.rect.y()+25, 433/4, 203/4, QPixmap(":/res/label-blank.png"));
+ painter->drawImage(option.rect.x() + 2, option.rect.y() + 2, cartSmall);