diff --git a/src/designer/qmake.pro.in b/src/designer/qmake.pro.in
index c286ee1..492d820 100644
--- a/src/designer/qmake.pro.in
+++ b/src/designer/qmake.pro.in
@@ -28,13 +28,13 @@ win32 {
QMAKE_LIBS += /opt/local/i586-mingw32msvc/lib/winscard.a
CONFIG += release
}
-SOURCES = webviewwidgetifc.cxx
+SOURCES = webviewwidgetifc.cxx
HEADERS = webviewwidgetifc.hxx
FORMS =
-RESOURCES = resources.qrc.in
+RESOURCES = resources.qrc
TEMPLATE = lib
TARGET = qbrowserlib-plugin
diff --git a/src/designer/resources.qrc.in b/src/designer/resources.qrc.in
index e1b54e8..a9390af 100644
--- a/src/designer/resources.qrc.in
+++ b/src/designer/resources.qrc.in
@@ -1,5 +1,5 @@
-
+
webview.png
diff --git a/src/designer/webviewwidgetifc.hxx b/src/designer/webviewwidgetifc.hxx
index 47f4ba1..7fdcbc8 100644
--- a/src/designer/webviewwidgetifc.hxx
+++ b/src/designer/webviewwidgetifc.hxx
@@ -11,55 +11,60 @@
#include
#include
+#define LOG qDebug()<<__PRETTY_FUNCTION__
+
//! WebView widget for Qt Designer
class WebViewWidgetIfc: public QObject, public QDesignerCustomWidgetInterface {
Q_OBJECT;
Q_INTERFACES(QDesignerCustomWidgetInterface);
public:
bool isContainer() const {
+ LOG;
return false;
}
- bool isInitialized() const {
- return _initialized;
- }
QIcon icon() const {
- return QIcon(QPixmap("qrc:/icons/webview.png"));
+ LOG;
+ return QIcon(":/icons/webview.png");
}
QString domXml() const {
+ LOG;
return
- " \n"
- " \n"
- " 0\n"
- " 0\n"
- " 100\n"
- " 100\n"
- " \n"
- " \n";
+ QString
+ (""
+ " "
+ " "
+ " "
+ " %1"
+ " "
+ " "
+ "")
+ .arg(name())
+ .arg(name().toLower());
}
QString group() const {
- return "DisplayWidgets";
+ LOG;
+ return "Display Widgets [Examples]";
}
QString includeFile() const {
+ LOG;
return "qbrowserlib/webview.hxx";
}
QString name() const {
- return "SwissWebView";
+ LOG;
+ return "WebView";
}
QString toolTip() const {
- return "SwissWebView";
+ LOG;
+ return "";
}
QString whatsThis() const {
- return "SwissWebView";
+ LOG;
+ return "";
}
QWidget *createWidget(QWidget *parent) {
+ LOG;
return new WebView(parent);
}
- void initialize(QDesignerFormEditorInterface *core) {
- _initialized = true;
- }
-
- private:
- bool _initialized;
};
#endif
diff --git a/src/qbrowserlib/webview.hxx b/src/qbrowserlib/webview.hxx
index da48028..2b4777a 100644
--- a/src/qbrowserlib/webview.hxx
+++ b/src/qbrowserlib/webview.hxx
@@ -12,10 +12,11 @@
#include
#include
+#include
#include
-class WebView: public QWebView {
+class QDESIGNER_WIDGET_EXPORT WebView: public QWebView {
Q_OBJECT;
signals:
void newView(WebView*);