From bcb1c6b2328ff5dadf16cb4a0355ad2101780939 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 12 Feb 2008 00:06:21 +0000 Subject: don't keep a KFileItem inside the selection manager for the whole lifetime, work with the URL internally instead svn path=/trunk/KDE/kdebase/apps/; revision=773890 --- src/selectiontoggle.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/selectiontoggle.cpp') diff --git a/src/selectiontoggle.cpp b/src/selectiontoggle.cpp index 7a3f0ef56..16d3c5979 100644 --- a/src/selectiontoggle.cpp +++ b/src/selectiontoggle.cpp @@ -54,21 +54,21 @@ QSize SelectionToggle::sizeHint() const void SelectionToggle::reset() { - m_item = KFileItem(); + m_url = KUrl(); hide(); } -void SelectionToggle::setFileItem(const KFileItem& item) +void SelectionToggle::setUrl(const KUrl& url) { - m_item = item; - if (!item.isNull()) { + m_url = url; + if (!url.isEmpty()) { startFading(); } } -KFileItem SelectionToggle::fileItem() const +KUrl SelectionToggle::url() const { - return m_item; + return m_url; } void SelectionToggle::setVisible(bool visible) -- cgit v1.3