2
* This file is a part of KleanSweep.
4
* Copyright (C) 2005 Pawel Stolowski <pawel.stolowski@wp.pl>
6
* KleanSweep is free software; you can redestribute it and/or modify it
7
* under terms of GNU General Public License by Free Software Foundation.
9
* This program is distributed in the hope that it will be useful, but
10
* WITHOUT ANY WARRANTY. See GPL for more details.
13
#ifndef __FILEVIEWITEM_H
14
#define __FILEVIEWITEM_H
16
#include <qlistview.h>
21
class FileViewItem: public QCheckListItem
24
static const int ScoreW;
25
static const int ScoreH;
26
static const int ScoreTotalW;
29
virtual void stateChange(bool);
31
FileViewItem(FileListView *parent, SweepFileInfo *f);
32
FileViewItem(FileViewItem *parent, SweepFileInfo *f);
33
virtual ~FileViewItem();
35
virtual void setColumns(int cols);
36
SweepFileInfo* fileItem() const;
38
virtual int compare(QListViewItem *i, int col, bool ascending) const;
39
virtual int width(const QFontMetrics &fm, const QListView *lv, int c) const;
40
virtual void paintCell(QPainter *p, const QColorGroup &cg, int col, int width, int align);
41
virtual void paintFocus(QPainter *p, const QColorGroup &cg, const QRect &r);