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

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

     #include <QDesignerCustomWidgetInterface>

     class WorldTimeClockPlugin : public QObject,
                                  public QDesignerCustomWidgetInterface
     {
         Q_OBJECT
         Q_INTERFACES(QDesignerCustomWidgetInterface)

     public:
         WorldTimeClockPlugin(QObject *parent = 0);

         bool isContainer() const;
         bool isInitialized() const;
         QIcon icon() const;
         QString domXml() const;
         QString group() const;
         QString includeFile() const;
         QString name() const;
         QString toolTip() const;
         QString whatsThis() const;
         QWidget *createWidget(QWidget *parent);
         void initialize(QDesignerFormEditorInterface *core);

     private:
         bool initialized;
     };

     #endif