author | zecke <zecke> | 2003-05-25 17:51:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-25 17:51:52 (UTC) |
commit | 7e1dce1560e45ef7fad91a8da2d0d96c1b166df9 (patch) (unidiff) | |
tree | c896c8ab6129414fa80df712a3a5794fa933716f /libopie/ofileselector/ofileselectoritem.cpp | |
parent | f1773ad179cb68b8e7777f3d43667ed5ebf1968d (diff) | |
download | opie-7e1dce1560e45ef7fad91a8da2d0d96c1b166df9.zip opie-7e1dce1560e45ef7fad91a8da2d0d96c1b166df9.tar.gz opie-7e1dce1560e45ef7fad91a8da2d0d96c1b166df9.tar.bz2 |
die here too
Diffstat (limited to 'libopie/ofileselector/ofileselectoritem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileselectoritem.cpp | 58 |
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 | |||
3 | OFileSelectorItem::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 | } | ||
23 | OFileSelectorItem::~OFileSelectorItem() { | ||
24 | } | ||
25 | bool OFileSelectorItem::isLocked()const { | ||
26 | return m_locked; | ||
27 | } | ||
28 | QString OFileSelectorItem::directory()const { | ||
29 | return m_dirStr; | ||
30 | } | ||
31 | bool OFileSelectorItem::isDir()const { | ||
32 | return m_dir; | ||
33 | } | ||
34 | QString OFileSelectorItem::path() const { | ||
35 | return text(1); | ||
36 | } | ||
37 | QString 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 | } | ||
56 | QString OFileSelectorItem::extra()const { | ||
57 | return m_extra; | ||
58 | } | ||