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

# mainwindow.h Example File
demos/chip/mainwindow.h

     /****************************************************************************
     **
     ** Copyright (C) 2005-$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 MAINWINDOW_H
     #define MAINWINDOW_H

     #include <QtGui/qwidget.h>

     QT_FORWARD_DECLARE_CLASS(QGraphicsScene)
     QT_FORWARD_DECLARE_CLASS(QGraphicsView)
     QT_FORWARD_DECLARE_CLASS(QLabel)
     QT_FORWARD_DECLARE_CLASS(QSlider)
     QT_FORWARD_DECLARE_CLASS(QSplitter)

     class MainWindow : public QWidget
     {
         Q_OBJECT
     public:
         MainWindow(QWidget *parent = 0);

     private:
         void setupMatrix();
         void populateScene();

         QGraphicsScene *scene;
         QSplitter *h1Splitter;
         QSplitter *h2Splitter;
     };

     #endif