This is the verbatim text of the qiconbt.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.
/****************************************************************************
** $Id: qiconbt.h,v 1.1 1995/06/04 14:56:37 hanord Exp $
**
** Definition of QIconButton class
**
** Author : Haavard Nord
** Created : 950601
**
** Copyright (C) 1995 by Troll Tech AS. All rights reserved.
**
*****************************************************************************/
#ifndef QICONBT_H
#define QICONBT_H
#include "qpushbt.h"
class QIconButton : public QPushButton
{
Q_OBJECT
public:
QIconButton( QWidget *parent=0, const char *name=0 );
QIconButton( const QPixmap &pixmap, QWidget *parent=0, const char *name=0);
QPixmap *pixmap() const { return pm; }
void setPixmap( const QPixmap &pixmap );
void adjustSize();
protected:
void paintEvent( QPaintEvent * );
void drawButtonFace( QPainter * );
private:
QPixmap *pm;
};
#endif // QICONBT_H