This is the verbatim text of the qchkbox.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.
/****************************************************************************
** $Id: qchkbox.h,v 2.0 1996/09/24 10:16:17 agulbra Exp $
**
** Definition of QCheckBox class
**
** Created : 940222
**
** Copyright (C) 1994-1996 by Troll Tech AS. All rights reserved.
**
*****************************************************************************/
#ifndef QCHKBOX_H
#define QCHKBOX_H
#include "qbutton.h"
class QCheckBox : public QButton
{
Q_OBJECT
public:
QCheckBox( QWidget *parent=0, const char *name=0 );
QCheckBox( const char *text, QWidget *parent, const char *name=0 );
bool isChecked() const;
void setChecked( bool check );
QSize sizeHint() const;
protected:
void drawButton( QPainter * );
void drawButtonLabel( QPainter * );
private: // Disabled copy constructor and operator=
QCheckBox( const QCheckBox & ) {}
QCheckBox &operator=( const QCheckBox & ) { return *this; }
};
inline bool QCheckBox::isChecked() const
{ return isOn(); }
inline void QCheckBox::setChecked( bool check )
{ setOn( check ); }
#endif // QCHKBOX_H