Advertisement
Guest User

qtcagraphplugin.hpp

a guest
Jun 24th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  1. #ifndef GRAPHWIDGET_PLUGIN
  2. #define GRAPHWIDGET_PLUGIN
  3.  
  4. #include <QtDesigner/QDesignerCustomWidgetInterface>
  5.  
  6. class QtCAgraphPlugin : public QObject, public QDesignerCustomWidgetInterface {
  7.     Q_OBJECT
  8.     Q_INTERFACES(QDesignerCustomWidgetInterface)
  9.  
  10. public:
  11.     QtCAgraphPlugin(QObject* parent = 0);
  12.  
  13.     // Q designer custom widget interface
  14.     bool isContainer() const;
  15. //    bool isInitialized() const;
  16.     QIcon icon() const;
  17.     QString domXml() const;
  18.     QString group() const;
  19.     QString includeFile() const;
  20.     QString name() const;
  21.     QString toolTip() const;
  22.     QString whatsThis() const;
  23.     QWidget *createWidget(QWidget *parent);
  24. //    void initialize(QDesignerFormEditorInterface *core);
  25.  
  26. };
  27.  
  28. #endif // GRAPHWIDGET_PLUGIN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement