|  | Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# slidersgroup.h Example File
widgets/sliders/slidersgroup.h

     /****************************************************************************
     **
     ** Copyright (C) 2004-$THISYEAR$ $TROLLTECH$. All rights reserved.
     **
     ** This file is part of the $MODULE$ of the Qt Toolkit.
     **
     ** $TROLLTECH_DUAL_LICENSE$
     **
     ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
     ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
     **
     ****************************************************************************/

     #ifndef SLIDERSGROUP_H
     #define SLIDERSGROUP_H

     #include <QGroupBox>

     class QDial;
     class QScrollBar;
     class QSlider;

     class SlidersGroup : public QGroupBox
     {
         Q_OBJECT

     public:
         SlidersGroup(Qt::Orientation orientation, const QString &title,
                      QWidget *parent = 0);

     signals:
         void valueChanged(int value);

     public slots:
         void setValue(int value);
         void setMinimum(int value);
         void setMaximum(int value);
         void invertAppearance(bool invert);
         void invertKeyBindings(bool invert);

     private:
         QSlider *slider;
         QScrollBar *scrollBar;
         QDial *dial;
     };

     #endif