filecreate_listitem.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __FILECREATE_LISTITEM_H__
00013 #define __FILECREATE_LISTITEM_H__
00014
00015 #include <klistview.h>
00016 #include <qobject.h>
00017
00018 #include "filecreate_filetype.h"
00019
00020 class QSimpleRichText;
00021
00022 namespace FileCreate {
00023
00024 class ListItem : public KListViewItem {
00025
00026 public:
00027 ListItem(QListView *listview, const FileType *filetype);
00028 ListItem(ListItem *listitem, const FileType *filetype);
00029 virtual ~ListItem();
00030
00031 const FileType *filetype() const { return m_filetype; }
00032
00033 virtual void setup();
00034 virtual void setHeight( int height );
00035 virtual void paintCell( QPainter* p, const QColorGroup& gc, int column, int width, int align );
00036 virtual void prepareResize();
00037
00038 private:
00039 const FileType *m_filetype;
00040 int m_iconHeight;
00041 void init();
00042 QSimpleRichText *m_filetypeRenderer;
00043
00044 };
00045
00046 }
00047
00048 #endif
00049
This file is part of the documentation for KDevelop Version 3.1.2.