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

# splashitem.h Example File
graphicsview/padnavigator/splashitem.h

     /****************************************************************************
     **
     ** Copyright (C) 1992-$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.
     **
     ****************************************************************************/

     #include <QtCore/qobject.h>
     #include <QtCore/qtimeline.h>
     #include <QtGui/qgraphicswidget.h>

     class SplashItem : public QGraphicsWidget
     {
         Q_OBJECT
     public:
         SplashItem(QGraphicsItem *parent = 0);
         void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

     protected:
         void keyPressEvent(QKeyEvent *event);

     private Q_SLOTS:
         void setValue(qreal value);

     private:
         QTimeLine *timeLine;
         QString text;
         qreal opacity;
     };