Qt Tutorial - t7/lcdrange.h

# Source code for tutorial 7: lcdrange.h

    /****************************************************************
    **
    ** Definition of LCDRange class, Qt tutorial 7
    **
    ****************************************************************/

    #ifndef LCDRANGE_H
    #define LCDRANGE_H

    #include <qwidget.h>

    class QScrollBar;
    class QLCDNumber;

    class LCDRange : public QWidget
    {
        Q_OBJECT
    public:
        LCDRange( QWidget *parent=0, const char *name=0 );

        int value() const;
    public slots:
        void setValue( int );
    signals:
        void valueChanged( int );
    protected:
        void resizeEvent( QResizeEvent * );
    private:
        QScrollBar  *sBar;
        QLCDNumber  *lcd;
    };

    #endif // LCDRANGE_H