-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 | |||
@@ -68,7 +68,7 @@ class OFileSelectorItem : public QListViewItem { | |||
68 | public: | 68 | public: |
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 ); |
74 | setText(2, size ); | 74 | setText(2, size ); |
@@ -76,6 +76,10 @@ class OFileSelectorItem : public QListViewItem { | |||
76 | //setText(4, mDir ); | 76 | //setText(4, mDir ); |
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{ |
81 | return m_dir; | 85 | return m_dir; |
@@ -104,6 +108,7 @@ class OFileSelectorItem : public QListViewItem { | |||
104 | return ke; | 108 | return ke; |
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; |
109 | }; | 114 | }; |
@@ -136,7 +141,7 @@ class OFileSelector : public QWidget { | |||
136 | bool showDirs()const { return m_dir; } | 141 | bool showDirs()const { return m_dir; } |
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; } |
142 | void setCaseSensetive(bool caSe ); | 147 | void setCaseSensetive(bool caSe ); |
@@ -169,7 +174,7 @@ class OFileSelector : public QWidget { | |||
169 | /* the user needs to delete it */ | 174 | /* the user needs to delete it */ |
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: |
175 | void fileSelected( const DocLnk & ); | 180 | void fileSelected( const DocLnk & ); |