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.h | |
| 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.h')
| -rw-r--r-- | src/selectiontoggle.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/selectiontoggle.h b/src/selectiontoggle.h index 653104ab5..a6d5eae58 100644 --- a/src/selectiontoggle.h +++ b/src/selectiontoggle.h @@ -20,7 +20,7 @@ #ifndef SELECTIONTOGGLE_H #define SELECTIONTOGGLE_H -#include <kfileitem.h> +#include <kurl.h> #include <QAbstractButton> #include <QPixmap> @@ -50,8 +50,8 @@ public: */ void reset(); - void setFileItem(const KFileItem& item); - KFileItem fileItem() const; + void setUrl(const KUrl& url); + KUrl url() const; public slots: virtual void setVisible(bool visible); @@ -78,7 +78,7 @@ private: int m_fadingValue; QPixmap m_icon; QTimeLine* m_fadingTimeLine; - KFileItem m_item; + KUrl m_url; }; #endif |
