author | zecke <zecke> | 2003-05-25 17:51:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-25 17:51:52 (UTC) |
commit | 7e1dce1560e45ef7fad91a8da2d0d96c1b166df9 (patch) (side-by-side diff) | |
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) (show 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 @@ -#include "ofileselectoritem.h" - -OFileSelectorItem::OFileSelectorItem( QListView*view, - const QPixmap& pix, - const QString& path, - const QString& date, - const QString& size, - const QString& dir, - bool isLocked, - const QString& extra, - bool isDir ) - : QListViewItem( view ) -{ - setPixmap( 0, pix ); - setText( 1, path ); - setText( 2, size ); - setText( 3, date ); - m_dir = isDir; - m_locked = isLocked; - m_dirStr = dir; - m_extra = extra; -} -OFileSelectorItem::~OFileSelectorItem() { -} -bool OFileSelectorItem::isLocked()const { - return m_locked; -} -QString OFileSelectorItem::directory()const { - return m_dirStr; -} -bool OFileSelectorItem::isDir()const { - return m_dir; -} -QString OFileSelectorItem::path() const { - return text(1); -} -QString OFileSelectorItem::key( int id, bool ) { - QString ke; - - if( id == 0 || id == 1 ){ // name - if( m_dir ){ - ke.append("0" ); - ke.append( text(1) ); - }else{ - ke.append("1" ); - ke.append( text(1) ); - } - }else if( id == 2 ){ // size - return text(2); - }else if( id == 3 ){ // date - return text(3); - } - - return ke; -} -QString OFileSelectorItem::extra()const { - return m_extra; -} |