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