-rw-r--r-- | libopie/ofileselector.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h index 73674e2..6936773 100644 --- a/libopie/ofileselector.h +++ b/libopie/ofileselector.h | |||
@@ -69,5 +69,5 @@ class OFileSelectorItem : public QListViewItem { | |||
69 | OFileSelectorItem(QListView *view, const QPixmap &pixmap, const QString &path, | 69 | OFileSelectorItem(QListView *view, const QPixmap &pixmap, const QString &path, |
70 | const QString &date, const QString &size, const QString &mDir, | 70 | const QString &date, const QString &size, const QString &mDir, |
71 | bool isDir=false ): QListViewItem(view) { | 71 | bool isLocked=false, bool isDir=false ): QListViewItem(view) { |
72 | setPixmap(0, pixmap ); | 72 | setPixmap(0, pixmap ); |
73 | setText(1, path ); | 73 | setText(1, path ); |
@@ -77,4 +77,8 @@ class OFileSelectorItem : public QListViewItem { | |||
77 | m_dir = mDir; | 77 | m_dir = mDir; |
78 | dir = isDir; | 78 | dir = isDir; |
79 | mLocked = isLocked; | ||
80 | } | ||
81 | bool locked() const{ | ||
82 | return mLocked; | ||
79 | } | 83 | } |
80 | QString directory()const{ | 84 | QString directory()const{ |
@@ -105,4 +109,5 @@ class OFileSelectorItem : public QListViewItem { | |||
105 | }; | 109 | }; |
106 | private: | 110 | private: |
111 | bool mLocked:1; | ||
107 | bool dir:1; | 112 | bool dir:1; |
108 | QString m_dir; | 113 | QString m_dir; |
@@ -137,5 +142,5 @@ class OFileSelector : public QWidget { | |||
137 | void setShowDirs(bool ); | 142 | void setShowDirs(bool ); |
138 | 143 | ||
139 | const QListView* listview() { return m_View; }; | 144 | const QListView* listView() { return m_View; }; |
140 | 145 | ||
141 | bool isCaseSensetive()const { return m_case; } | 146 | bool isCaseSensetive()const { return m_case; } |
@@ -170,5 +175,5 @@ class OFileSelector : public QWidget { | |||
170 | DocLnk selectedDocument()const; | 175 | DocLnk selectedDocument()const; |
171 | /* the user needs to delete it */ | 176 | /* the user needs to delete it */ |
172 | QValueList<DocLnk> selectedDocuments(); | 177 | QValueList<DocLnk> selectedDocuments()const; |
173 | 178 | ||
174 | signals: | 179 | signals: |