svn path=/trunk/KDE/kdebase/apps/; revision=685421
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);
+ }
}
}
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() */