summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-06-27 20:51:25 +0200
committerMontel Laurent <[email protected]>2016-06-27 20:51:25 +0200
commit1b3e4ba4238b0dc85015640c9f4b48a9f2f938ec (patch)
tree9b3399258b388e7326506ddb3e60507f91553a42
parent567703932c37742138c4e5f0d836a0f52f6d5744 (diff)
Clean up
-rw-r--r--akregator/src/feed/feed.cpp11
-rw-r--r--akregator/src/frame/frame.cpp1
-rw-r--r--kaddressbook/src/plugininterface/kaddressbookplugininterface.cpp1
-rw-r--r--ktnef/src/ktnefmain.cpp3
4 files changed, 1 insertions, 15 deletions
diff --git a/akregator/src/feed/feed.cpp b/akregator/src/feed/feed.cpp
index c31d964..f3901b6 100644
--- a/akregator/src/feed/feed.cpp
+++ b/akregator/src/feed/feed.cpp
@@ -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()) {
diff --git a/akregator/src/frame/frame.cpp b/akregator/src/frame/frame.cpp
index 4ad38f7..d3965c3 100644
--- a/akregator/src/frame/frame.cpp
+++ b/akregator/src/frame/frame.cpp
@@ -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);
}
diff --git a/kaddressbook/src/plugininterface/kaddressbookplugininterface.cpp b/kaddressbook/src/plugininterface/kaddressbookplugininterface.cpp
index 274ba83..4df7a7a 100644
--- a/kaddressbook/src/plugininterface/kaddressbookplugininterface.cpp
+++ b/kaddressbook/src/plugininterface/kaddressbookplugininterface.cpp
@@ -58,7 +58,6 @@ void KAddressBookPluginInterface::initializeInterfaceRequires(PimCommon::Generic
}
if (requires & PimCommon::GenericPluginInterface::Collections) {
qCDebug(KADDRESSBOOK_LOG) << "PimCommon::GenericPluginInterface::Collections not implemented";
- //TODO
}
}
diff --git a/ktnef/src/ktnefmain.cpp b/ktnef/src/ktnefmain.cpp
index 65c67d8..a06bc0d 100644
--- a/ktnef/src/ktnefmain.cpp
+++ b/ktnef/src/ktnefmain.cpp
@@ -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)