void FullScreenContent::setCurrentUrl(const QUrl &url) { if (url.isEmpty()) { mCurrentDocument = Document::Ptr(); } else { mCurrentDocument = DocumentFactory::instance()->load(url); connect(mCurrentDocument.data(), SIGNAL(metaInfoUpdated()), SLOT(updateCurrentUrlWidgets())); } updateCurrentUrlWidgets(); }
void Preloader::preload(const KUrl& url, const QSize& size) { LOG("url=" << url); if (d->mDocument) { disconnect(d->mDocument.data(), 0, this, 0); } d->mDocument = DocumentFactory::instance()->load(url); d->mSize = size; connect(d->mDocument.data(), SIGNAL(metaInfoUpdated()), SLOT(doPreload())); if (d->mDocument->size().isValid()) { LOG("size is already available"); doPreload(); } }