diff options
| author | Peter Penz <[email protected]> | 2008-02-12 00:06:21 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-02-12 00:06:21 +0000 |
| commit | bcb1c6b2328ff5dadf16cb4a0355ad2101780939 (patch) | |
| tree | 54c6a9f3d484c3dac0660724af4dc8a4735e6c78 /src/selectiontoggle.cpp | |
| parent | 538192b8bdbc59f76cbe0092894e1c985b942f7f (diff) | |
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
Diffstat (limited to 'src/selectiontoggle.cpp')
| -rw-r--r-- | src/selectiontoggle.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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) |
