author | zecke <zecke> | 2002-10-28 21:47:58 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-28 21:47:58 (UTC) |
commit | 98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0 (patch) (unidiff) | |
tree | 3e4a873011de405e5402d7eb53ae1c5c2867246a /libopie/ofileselector/ofileselectoritem.cpp | |
parent | b963230163fc8069731374a19390fd0e5cb42532 (diff) | |
download | opie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.zip opie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.tar.gz opie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.tar.bz2 |
Almost done with the new data flow
only OFileSelector needs to adapt it now...
Besides that make it compile with the new api
Add a configure and a libopie.pro to actually build ofileselector
and a MANIFEST to explain some basics of the now a days
a bit bigger interface
Diffstat (limited to 'libopie/ofileselector/ofileselectoritem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileselectoritem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie/ofileselector/ofileselectoritem.cpp b/libopie/ofileselector/ofileselectoritem.cpp index d31046b..4ef8fe3 100644 --- a/libopie/ofileselector/ofileselectoritem.cpp +++ b/libopie/ofileselector/ofileselectoritem.cpp | |||
@@ -1,22 +1,22 @@ | |||
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, | ||
10 | bool isLocked, | 9 | bool isLocked, |
10 | const QString& extra, | ||
11 | bool isDir ) | 11 | bool isDir ) |
12 | : QListViewItem( view ) | 12 | : QListViewItem( view ) |
13 | { | 13 | { |
14 | setPixmap( 0, pix ); | 14 | setPixmap( 0, pix ); |
15 | setText( 1, path ); | 15 | setText( 1, path ); |
16 | setText( 2, size ); | 16 | setText( 2, size ); |
17 | setText( 3, date ); | 17 | setText( 3, date ); |
18 | m_dir = isDir; | 18 | m_dir = isDir; |
19 | m_locked = isLocked; | 19 | m_locked = isLocked; |
20 | m_dirStr = dir; | 20 | m_dirStr = dir; |
21 | m_extra = extra; | 21 | m_extra = extra; |
22 | } | 22 | } |
@@ -44,15 +44,15 @@ QString OFileSelectorItem::key( int id, bool ) { | |||
44 | }else{ | 44 | }else{ |
45 | ke.append("1" ); | 45 | ke.append("1" ); |
46 | ke.append( text(1) ); | 46 | ke.append( text(1) ); |
47 | } | 47 | } |
48 | }else if( id == 2 ){ // size | 48 | }else if( id == 2 ){ // size |
49 | return text(2); | 49 | return text(2); |
50 | }else if( id == 3 ){ // date | 50 | }else if( id == 3 ){ // date |
51 | return text(3); | 51 | return text(3); |
52 | } | 52 | } |
53 | 53 | ||
54 | return ke; | 54 | return ke; |
55 | } | 55 | } |
56 | QString OFileSelector::extra()const { | 56 | QString OFileSelectorItem::extra()const { |
57 | return m_extra; | 57 | return m_extra; |
58 | } | 58 | } |