From 7e1dce1560e45ef7fad91a8da2d0d96c1b166df9 Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 25 May 2003 17:51:52 +0000 Subject: die here too --- (limited to 'libopie/ofileselector/ofileselectoritem.cpp') 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; -} -- cgit v0.9.0.2