X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Ffilepicker.cpp;h=f64257126750898659b6586cff9dbb04b1d1d76b;hb=caf1236884015695c52910a75b8420be7c63d574;hp=1129d17ca905e165ec5672e9a39e70ad922a6967;hpb=8cecfa4150ad7bc9d2a95f9753e2666456f98243;p=virtualjaguar diff --git a/src/gui/filepicker.cpp b/src/gui/filepicker.cpp index 1129d17..f642571 100644 --- a/src/gui/filepicker.cpp +++ b/src/gui/filepicker.cpp @@ -57,7 +57,8 @@ FilePickerWindow::FilePickerWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt: layout->addWidget(fileList); fileThread = new FileThread(this); - connect(fileThread, SIGNAL(FoundAFile(unsigned long)), this, SLOT(AddFileToList(unsigned long))); +// connect(fileThread, SIGNAL(FoundAFile(unsigned long)), this, SLOT(AddFileToList(unsigned long))); + connect(fileThread, SIGNAL(FoundAFile2(unsigned long, QString, QImage *)), this, SLOT(AddFileToList2(unsigned long, QString, QImage *))); fileThread->Go(); } @@ -68,7 +69,17 @@ FilePickerWindow::FilePickerWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt: void FilePickerWindow::AddFileToList(unsigned long index) { printf("FilePickerWindow: Found match [%s]...\n", romList[index].name); - // NOTE: The model *ignores* what you send it, so this is crap. !!! FIX !!! + // NOTE: The model *ignores* what you send it, so this is crap. !!! FIX !!! [DONE, somewhat] // model->AddData(QIcon(":/res/generic.png")); model->AddData(index); } + +void FilePickerWindow::AddFileToList2(unsigned long index, QString str, QImage * img) +{ +printf("FilePickerWindow(2): Found match [%s]...\n", romList[index].name); + if (img) + model->AddData(index, str, *img); + else + model->AddData(index, str, QImage()); +} +