You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kasablanca/src/kbfile.cpp

55 lines
1.7 KiB

/***************************************************************************
kbfile.cpp - description
-------------------
begin : Die Sep 23 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <tdeglobal.h>
#include <kiconloader.h>
#include "kbfileinfo.h"
#include "kbfile.h"
KbFile::KbFile(KbFileInfo kfi, TQListView * parent, TQListViewItem * after) : KbItem(kfi, parent, after)
{
setPixmap(0, TDEGlobal::iconLoader()->loadIcon("files",TDEIcon::Small));
}
KbFile::KbFile(TQListView * parent, TQListViewItem * after, TQString file, TQString path, TQString date, off64_t size, unsigned int date_int) : KbItem(parent, after)
{
setText(0,file);
TQString s;
s.setNum(size);
setText(1, s);
setText(2, date);
m_path = path;
m_file = file;
m_date = date;
m_size = size;
m_date_int = date_int;
}
KbFile::~KbFile()
{
}
int KbFile::rtti() const
{
return KbItem::file;
}