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

# worldtimeclock.h Example File
designer/worldtimeclockplugin/worldtimeclock.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 WORLDTIMECLOCK_H
     #define WORLDTIMECLOCK_H

     #include <QTime>
     #include <QWidget>
     #include <QtDesigner/QDesignerExportWidget>

     class QDESIGNER_WIDGET_EXPORT WorldTimeClock : public QWidget
     {
         Q_OBJECT

     public:
         WorldTimeClock(QWidget *parent = 0);

     public slots:
         void setTimeZone(int hourOffset);

     signals:
         void updated(QTime currentTime);

     protected:
         void paintEvent(QPaintEvent *event);

     private:
         int timeZoneOffset;
     };

     #endif