/*! @file @id $Id$ */ // 1 2 3 4 5 6 7 8 // 45678901234567890123456789012345678901234567890123456789012345678901234567890 #ifndef __WEBWIDGETIFC_HXX #define __WEBWIDGETIFC_HXX #include #include #include //! @defgroup designer //! @{ //! WebWidget widget for Qt Designer class WebWidgetIfc: public QObject, public QDesignerCustomWidgetInterface { Q_OBJECT; Q_INTERFACES(QDesignerCustomWidgetInterface); #if QT_VERSION >= 0x050000 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface" FILE "webwidgetifc.json"); #endif public: bool isContainer() const { TRC; return false; } QIcon icon() const { TRC; return QIcon(":/icons/webwidget.png"); } QString domXml() const { TRC; return QString ("" " " " " " " " %1" " " " " "") .arg(name()) .arg(className()) .arg(className().toLower()); } QString group() const { TRC; return "Input Widgets"; } QString includeFile() const { TRC; return "qbrowserlib/webwidget.hxx"; } QString namespaceName() const { TRC; return "qbrowserlib"; } QString className() const { TRC; return "WebWidget"; } QString name() const { TRC; return QString("%1::%2").arg(namespaceName()).arg(className()); } QString toolTip() const { TRC; return ""; } QString whatsThis() const { TRC; return ""; } QWidget *createWidget(QWidget *parent) { TRC; return new qbrowserlib::WebWidget(parent); } bool isInitialized() { TRC; return true; } }; //! @} #endif