author | llornkcor <llornkcor> | 2002-03-24 22:41:21 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-24 22:41:21 (UTC) |
commit | d8820a9f2bdf9bc98c99542e3613ca9b5d2c6e0c (patch) (unidiff) | |
tree | 195a7cbe7f9577a118d1bc05fb028fbc010279f7 /core/apps/textedit/fileBrowser.cpp | |
parent | 8cada0d43b00686567295e712f9c5c89e3977a7d (diff) | |
download | opie-d8820a9f2bdf9bc98c99542e3613ca9b5d2c6e0c.zip opie-d8820a9f2bdf9bc98c99542e3613ca9b5d2c6e0c.tar.gz opie-d8820a9f2bdf9bc98c99542e3613ca9b5d2c6e0c.tar.bz2 |
added lock icons
Diffstat (limited to 'core/apps/textedit/fileBrowser.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileBrowser.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/core/apps/textedit/fileBrowser.cpp b/core/apps/textedit/fileBrowser.cpp index 41e800c..acd50c2 100644 --- a/core/apps/textedit/fileBrowser.cpp +++ b/core/apps/textedit/fileBrowser.cpp | |||
@@ -198,8 +198,16 @@ void fileBrowser::populateList() | |||
198 | QPixmap pm; | 198 | QPixmap pm; |
199 | pm= Resource::loadPixmap( "folder" ); | 199 | pm= Resource::loadPixmap( "folder" ); |
200 | if(isDir || fileL.find("/",0,TRUE) != -1) | 200 | |
201 | if(isDir || fileL.find("/",0,TRUE) != -1) { | ||
202 | if( !QDir( fi->filePath() ).isReadable()) | ||
203 | pm = Resource::loadPixmap( "lockedfolder" ); | ||
201 | item->setPixmap( 0,pm ); | 204 | item->setPixmap( 0,pm ); |
202 | else | 205 | } else { |
203 | item->setPixmap( 0, Resource::loadPixmap( "fileopen" )); | 206 | if( !fi->isReadable() ) |
207 | pm = Resource::loadPixmap( "locked" ); | ||
208 | else | ||
209 | pm = Resource::loadPixmap( "fileopen" ); | ||
210 | item->setPixmap( 0,pm); | ||
211 | } | ||
204 | if( fileL.find("->",0,TRUE) != -1) { | 212 | if( fileL.find("->",0,TRUE) != -1) { |
205 | // overlay link image | 213 | // overlay link image |