This is the verbatim text of the qradiobt.h include file. It is is provided only for illustration; the copyright remains with Troll Tech
/**************************************************************************** ** $Id: qradiobt.h,v 2.4 1997/09/29 11:34:52 eiriken Exp $ ** ** Definition of QRadioButton class ** ** Created : 940222 ** ** Copyright (C) 1994-1997 by Troll Tech AS. All rights reserved. ** *****************************************************************************/ #ifndef QRADIOBT_H #define QRADIOBT_H #include "qbutton.h" class QRadioButton : public QButton { Q_OBJECT public: QRadioButton( QWidget *parent=0, const char *name=0 ); QRadioButton( const char *text, QWidget *parent=0, const char *name=0 ); bool isChecked() const; void setChecked( bool check ); QSize sizeHint() const; protected: bool hitButton( const QPoint & ) const; void drawButton( QPainter * ); void drawButtonLabel( QPainter * ); void mouseReleaseEvent( QMouseEvent * ); void keyPressEvent( QKeyEvent * ); private: void init(); uint noHit : 1; private: // Disabled copy constructor and operator= QRadioButton( const QRadioButton & ) {} QRadioButton &operator=( const QRadioButton & ) { return *this; } }; inline bool QRadioButton::isChecked() const { return isOn(); } inline void QRadioButton::setChecked( bool check ) { setOn( check ); } #endif // QRADIOBT_H