summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofileselectoritem.cpp
Unidiff
Diffstat (limited to 'libopie/ofileselector/ofileselectoritem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector/ofileselectoritem.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/libopie/ofileselector/ofileselectoritem.cpp b/libopie/ofileselector/ofileselectoritem.cpp
deleted file mode 100644
index 4ef8fe3..0000000
--- a/libopie/ofileselector/ofileselectoritem.cpp
+++ b/dev/null
@@ -1,58 +0,0 @@
1#include "ofileselectoritem.h"
2
3OFileSelectorItem::OFileSelectorItem( QListView*view,
4 const QPixmap& pix,
5 const QString& path,
6 const QString& date,
7 const QString& size,
8 const QString& dir,
9 bool isLocked,
10 const QString& extra,
11 bool isDir )
12 : QListViewItem( view )
13{
14 setPixmap( 0, pix );
15 setText( 1, path );
16 setText( 2, size );
17 setText( 3, date );
18 m_dir = isDir;
19 m_locked = isLocked;
20 m_dirStr = dir;
21 m_extra = extra;
22}
23OFileSelectorItem::~OFileSelectorItem() {
24}
25bool OFileSelectorItem::isLocked()const {
26 return m_locked;
27}
28QString OFileSelectorItem::directory()const {
29 return m_dirStr;
30}
31bool OFileSelectorItem::isDir()const {
32 return m_dir;
33}
34QString OFileSelectorItem::path() const {
35 return text(1);
36}
37QString OFileSelectorItem::key( int id, bool ) {
38 QString ke;
39
40 if( id == 0 || id == 1 ){ // name
41 if( m_dir ){
42 ke.append("0" );
43 ke.append( text(1) );
44 }else{
45 ke.append("1" );
46 ke.append( text(1) );
47 }
48 }else if( id == 2 ){ // size
49 return text(2);
50 }else if( id == 3 ){ // date
51 return text(3);
52 }
53
54 return ke;
55}
56QString OFileSelectorItem::extra()const {
57 return m_extra;
58}