From: Peter Penz Date: Sun, 8 Jul 2007 20:32:41 +0000 (+0000) Subject: adapt signature of requestDelayedItemInfo() slot to recent changes X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/77d3d3724676103b29bf80bbe9c8a0f5b1fee57c?ds=sidebyside adapt signature of requestDelayedItemInfo() slot to recent changes svn path=/trunk/KDE/kdebase/apps/; revision=685421 --- diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index fb422ec89..d1f88524d 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -117,13 +117,16 @@ void InfoSidebarPage::setSelection(const KFileItemList& selection) m_timer->start(TimerDelay); } -void InfoSidebarPage::requestDelayedItemInfo(const KUrl& url) +void InfoSidebarPage::requestDelayedItemInfo(const KFileItem& item) { cancelRequest(); - if (!url.isEmpty() && (selection().size() <= 1)) { - m_urlCandidate = url; - m_timer->start(TimerDelay); + if (!item.isNull() && (selection().size() <= 1)) { + const KUrl url = item.url(); + if (!url.isEmpty()) { + m_urlCandidate = url; + m_timer->start(TimerDelay); + } } } diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index fb00fee8d..d17fb94ea 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -59,12 +59,12 @@ public slots: virtual void setSelection(const KFileItemList& selection); /** - * Does a delayed request of information for the item of the given URL. + * Does a delayed request of information for the item \a item. * If within this delay InfoSidebarPage::setUrl() or InfoSidebarPage::setSelection() * are invoked, then the request will be skipped. Requesting a delayed item information * makes sense when hovering items. */ - void requestDelayedItemInfo(const KUrl& url); + void requestDelayedItemInfo(const KFileItem& item); protected: /** @see QWidget::showEvent() */