This is the verbatim text of the qlabel.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.
/********************************************************************** ** $Id: qlabel.h,v 1.11 1995/05/14 17:58:29 eiriken Exp $ ** ** Definition of QLabel widget class ** ** Author : Eirik Eng ** Created : 941215 ** ** Copyright (C) 1994,1995 by Troll Tech AS. All rights reserved. ** ***********************************************************************/ #ifndef QLABEL_H #define QLABEL_H #include "qframe.h" class QLabel : public QFrame { Q_OBJECT public: QLabel( QWidget *parent=0, const char *name=0 ); QLabel( const char *text, QWidget *parent=0, const char *name=0 ); const char *text() const { return (const char *)str; } int alignment() const { return align; } void setAlignment( int ); void setAutoResizing( bool ); bool autoResizing() const { return autoResize; } void adjustSize(); public slots: void setText( const char * ); void setNum( int ); void setNum( long ); void setNum( float ); void setNum( double ); protected: void drawContents( QPainter * ); private: void updateLabel(); QString str; int align; bool autoResize; }; inline void QLabel::setNum( int i ) { setNum( (long)i ); } inline void QLabel::setNum( float f ) { setNum( (double)f ); } #endif // QLABEL_H