Commit 1b3e4ba4 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent 56770393
......@@ -679,7 +679,6 @@ void Akregator::Feed::tryFetch()
d->loader = Syndication::Loader::create(this, SLOT(fetchCompleted(Syndication::Loader *,
Syndication::FeedPtr,
Syndication::ErrorCode)));
//connect(d->loader, SIGNAL(progress(ulong)), this, SLOT(slotSetProgress(ulong)));
d->loader->loadFrom(QUrl(d->xmlUrl));
}
......@@ -718,17 +717,9 @@ void Akregator::Feed::fetchCompleted(Syndication::Loader *l, Syndication::FeedPt
d->fetchErrorCode = Syndication::Success;
if (d->imagePixmap.isNull()) {
//QString u = d->xmlUrl;
QString imageFileName = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + QLatin1Char('/') + QLatin1String("akregator/Media/") + Utils::fileNameForUrl(d->xmlUrl) + QLatin1String(".png");
const QString imageFileName = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + QLatin1Char('/') + QLatin1String("akregator/Media/") + Utils::fileNameForUrl(d->xmlUrl) + QLatin1String(".png");
d->imagePixmap = QPixmap(imageFileName, "PNG");
// if we ain't got the image and the feed provides one, get it....
// TODO: reenable image fetching!
if (false) { // d->imagePixmap.isNull() && doc.image())
//d->image = *doc.image();
//connect(&d->image, SIGNAL(gotPixmap(QPixmap)), this, SLOT(slotImageFetched(QPixmap)));
//d->image.getPixmap();
}
}
if (title().isEmpty()) {
......
......@@ -157,7 +157,6 @@ void Frame::slotSetStarted()
}
m_progressItem = KPIM::ProgressManager::createProgressItem(m_progressId, title(), QString(), false);
m_progressItem->setStatus(i18n("Loading..."));
//connect(m_progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), SLOT(slotAbortFetch()));
m_state = Started;
Q_EMIT signalStarted(this);
}
......
......@@ -58,7 +58,6 @@ void KAddressBookPluginInterface::initializeInterfaceRequires(PimCommon::Generic
}
if (requires & PimCommon::GenericPluginInterface::Collections) {
qCDebug(KADDRESSBOOK_LOG) << "PimCommon::GenericPluginInterface::Collections not implemented";
//TODO
}
}
......
......@@ -189,9 +189,6 @@ void KTNEFMain::setupTNEF()
connect(mView, &QTreeWidget::itemDoubleClicked,
this, &KTNEFMain::viewDoubleClicked);
//PORTME: connect( mView, SIGNAL(dragRequested(QList<KTNEFAttach*>)),
//PORTME: SLOT(viewDragRequested(QList<KTNEFAttach*>)) );
}
void KTNEFMain::loadFile(const QString &filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment