diff options
Diffstat (limited to 'dldialog/src/DLD_QT/dld_listitem.h')
-rw-r--r-- | dldialog/src/DLD_QT/dld_listitem.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dldialog/src/DLD_QT/dld_listitem.h b/dldialog/src/DLD_QT/dld_listitem.h new file mode 100644 index 0000000..0fe1a2f --- /dev/null +++ b/dldialog/src/DLD_QT/dld_listitem.h @@ -0,0 +1,53 @@ +/****************************************************************************** +** +** $Id: dld_listitem.h,v 1.9 2000/03/15 20:02:17 harald Exp $ +** +** 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. +** +** (C) 1999,2000 Harald Hoyer <DLDialog@parzelle.de> +** +******************************************************************************/ + +#ifndef DLD_QTLISTITEM_H +#define DLD_QTLISTITEM_H + +#include "../dld_listitem.h" +#include "dld_qtobj.h" +#include <qlistbox.h> +#include <qpixmap.h> + + +class DLD_QTDialog; +class QWidget; + +/** The listitem in qt style for use with @ref DLD_List. + * + */ +class DLD_QTListItem : public QListBoxText, public DLD_QTObj, + public DLD_ListItem +{ +public: + /// + DLD_QTListItem(QWidget *_parent, const string& name, DLD_QTDialog *pd); + + /// + virtual ~DLD_QTListItem(); + + /// + void create(); + +protected: + virtual void paint( QPainter * ); + virtual int height( const QListBox * ) const; + virtual int width( const QListBox * ) const; + virtual const QPixmap *pixmap() { return ± } + +private: + QPixmap pm; + +}; + +#endif |