author | zecke <zecke> | 2002-10-28 19:55:18 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-28 19:55:18 (UTC) |
commit | 3ba494eb02e72e1f9a732c46ec8085e843f01eca (patch) (unidiff) | |
tree | cdc0e7af342cd0e205ed4ae1c1da92ced3fd5774 /libopie/ofileselector/ofileselectoritem.cpp | |
parent | e9d8023028b7c996d8ff2a68b87dfde19fcfa892 (diff) | |
download | opie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.zip opie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.tar.gz opie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.tar.bz2 |
This will probably not compile.. i did not even try to compile it
on my machine
I changed the data flow to be more extandable the Olister class
is now playing a bigger role it's dependant on
doing some assembly of the filepath and changedirs.
It now has also to take care of the location bar
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 | |||
@@ -3,23 +3,25 @@ | |||
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 | } |
@@ -48,6 +50,9 @@ QString OFileSelectorItem::key( int id, bool ) { | |||
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 | } | ||