// DkImageContainerT -------------------------------------------------------------------- DkImageContainerT::DkImageContainerT(const QString& filePath) : DkImageContainer(filePath) { // our file watcher mFileUpdateTimer.setSingleShot(false); mFileUpdateTimer.setInterval(500); connect(&mFileUpdateTimer, SIGNAL(timeout()), this, SLOT(checkForFileUpdates()), Qt::UniqueConnection); //connect(&metaDataWatcher, SIGNAL(finished()), this, SLOT(metaDataLoaded())); }
// DkImageContainerT -------------------------------------------------------------------- DkImageContainerT::DkImageContainerT(const QFileInfo& file) : DkImageContainer(file) { thumb = QSharedPointer<DkThumbNailT>(new DkThumbNailT(file)); #ifdef WITH_QUAZIP if(isFromZip()) thumb = QSharedPointer<DkThumbNailT>(new DkThumbNailT(zipData->getEncodedFileInfo())); #endif fetchingImage = false; fetchingBuffer = false; // our file watcher fileUpdateTimer.setSingleShot(false); fileUpdateTimer.setInterval(500); waitForUpdate = false; connect(&fileUpdateTimer, SIGNAL(timeout()), this, SLOT(checkForFileUpdates())); connect(&saveImageWatcher, SIGNAL(finished()), this, SLOT(savingFinished())); connect(&bufferWatcher, SIGNAL(finished()), this, SLOT(bufferLoaded())); connect(&imageWatcher, SIGNAL(finished()), this, SLOT(imageLoaded())); connect(loader.data(), SIGNAL(errorDialogSignal(const QString&)), this, SIGNAL(errorDialogSignal(const QString&))); connect(thumb.data(), SIGNAL(thumbLoadedSignal(bool)), this, SIGNAL(thumbLoadedSignal(bool))); //connect(&metaDataWatcher, SIGNAL(finished()), this, SLOT(metaDataLoaded())); }