161
165
void FingerPrintsGenerator::slotGotImagePreview(const LoadingDescription& desc, const DImg& img)
163
167
if (d->allPicturesPath.isEmpty())
166
172
if (d->allPicturesPath.first() != desc.filePath)
171
179
// compute Haar fingerprint
172
180
d->haarIface.indexImage(desc.filePath, img);
174
183
QPixmap pix = DImg(img).smoothScale(128, 128, Qt::KeepAspectRatio).convertToPixmap();
175
184
addedAction(pix, desc.filePath);
177
187
if (!d->allPicturesPath.isEmpty())
178
189
d->allPicturesPath.removeFirst();
179
192
if (d->allPicturesPath.isEmpty())
185
202
void FingerPrintsGenerator::slotCancel()