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

# window.h Example File
itemviews/simplewidgetmapper/window.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 WINDOW_H
     #define WINDOW_H

     #include <QWidget>

     class QDataWidgetMapper;
     class QLabel;
     class QLineEdit;
     class QPushButton;
     class QSpinBox;
     class QStandardItemModel;
     class QTextEdit;

     class Window : public QWidget
     {
         Q_OBJECT

     public:
         Window(QWidget *parent = 0);

     private slots:
         void updateButtons(int row);

     private:
         void setupModel();

         QLabel *nameLabel;
         QLabel *addressLabel;
         QLabel *ageLabel;
         QLineEdit *nameEdit;
         QTextEdit *addressEdit;
         QSpinBox *ageSpinBox;
         QPushButton *nextButton;
         QPushButton *previousButton;

         QStandardItemModel *model;
         QDataWidgetMapper *mapper;
     };

     #endif