[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.1/kdepim/akregator/src
From: Teemu Rytilahti <tpr () d5k ! net>
Date: 2008-08-22 0:15:17
Message-ID: 1219364117.415039.594.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 850676 by rytilahti:
backport:
use a singleshot timer to add the favicon listener. randomizes the timer's timeout \
between 1-4000ms, hope it isn't too much. this causes gui to show-up before starting \
doing the fetches and behave nicer for the user.
M +6 -0 feed.cpp
M +2 -0 feed.h
--- branches/KDE/4.1/kdepim/akregator/src/feed.cpp #850675:850676
@@ -42,6 +42,7 @@
#include <KIcon>
#include <kstandarddirs.h>
#include <kurl.h>
+#include <KRandom>
//#include <qtl.h>
@@ -52,6 +53,7 @@
#include <QIcon>
#include <QList>
#include <QPixmap>
+#include <QTimer>
#include <boost/bind.hpp>
@@ -447,6 +449,10 @@
}
}
+void Feed::slotAddFeedIconListener()
+{
+ FeedIconManager::self()->addListener( KUrl( d->xmlUrl ), this );
+}
void Feed::appendArticles(const Syndication::FeedPtr feed)
{
--- branches/KDE/4.1/kdepim/akregator/src/feed.h #850675:850676
@@ -228,6 +228,8 @@
/** add this feed to the fetch queue @c queue */
void slotAddToFetchQueue(Akregator::FetchQueue* queue, bool \
intervalFetchOnly=false); +
+ void slotAddFeedIconListener();
signals:
/** emitted when fetching started */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic