X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilepicker.cpp;h=73ec88b35b72756fe0728a5706a782acdfb2c993;hb=742efd9b7deca399ca92f1c548e97836d626c86a;hp=d7f1507293885e82c4910a6b6967b0bd6390f2ec;hpb=67a95fc0511260daf0a92709e8a835a090b467d8;p=virtualjaguar diff --git a/src/gui/filepicker.cpp b/src/gui/filepicker.cpp index d7f1507..73ec88b 100644 --- a/src/gui/filepicker.cpp +++ b/src/gui/filepicker.cpp @@ -268,11 +268,29 @@ void FilePickerWindow::UpdateSelection(const QModelIndex & current, const QModel // We should try to be intelligent with our updates here, and only redraw when // we're going from a selection with a label to a selection without. Now, we // redraw regardless. +#if 0 QImage cart(":/res/cart-blank.png"); QPainter painter(&cart); // painter.drawPixmap(23, 87, QPixmap::fromImage(QImage(":/res/label-blank.png"))); painter.drawPixmap(27, 89, QPixmap::fromImage(QImage(":/res/label-blank.png"))); painter.end(); +#else + QImage cart; + + if (romList[i].flags & FF_ROM) + { + cart = QImage(":/res/cart-blank.png"); + QPainter painter(&cart); + painter.drawPixmap(27, 89, QPixmap::fromImage(QImage(":/res/label-blank.png"))); + painter.end(); + } + else if (romList[i].flags & FF_ALPINE) + { + cart = QImage(":/res/alpine-file.png"); + } + else + cart = QImage(":/res/unknown-file.png"); +#endif cartImage->setPixmap(QPixmap::fromImage(cart)); } @@ -282,8 +300,17 @@ void FilePickerWindow::UpdateSelection(const QModelIndex & current, const QModel prettyFilename = romList[i].name; title->setText(QString("