new option --debug to enable debugging and debug window in info; refs #153
This commit is contained in:
@@ -8,13 +8,10 @@
|
||||
#ifndef __BUTTONLINEEDITWIDGETIFC_HXX
|
||||
#define __BUTTONLINEEDITWIDGETIFC_HXX
|
||||
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <qbrowserlib/buttonlineedit.hxx>
|
||||
#include <QtDesigner>
|
||||
|
||||
#ifndef LOG
|
||||
#define LOG qDebug()<<__PRETTY_FUNCTION__
|
||||
#endif
|
||||
|
||||
//! @defgroup designer
|
||||
//! @{
|
||||
|
||||
@@ -25,15 +22,15 @@ class ButtonLineEditWidgetIfc: public QObject,
|
||||
Q_INTERFACES(QDesignerCustomWidgetInterface);
|
||||
public:
|
||||
bool isContainer() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return false;
|
||||
}
|
||||
QIcon icon() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return QIcon(":/icons/buttonlineedit.png");
|
||||
}
|
||||
QString domXml() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return
|
||||
QString
|
||||
("<ui language=\"c++\" displayname=\"%1\">"
|
||||
@@ -48,27 +45,27 @@ class ButtonLineEditWidgetIfc: public QObject,
|
||||
.arg(name().toLower());
|
||||
}
|
||||
QString group() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "Input Widgets";
|
||||
}
|
||||
QString includeFile() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "qbrowserlib/buttonlineedit.hxx";
|
||||
}
|
||||
QString name() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "ButtonLineEdit";
|
||||
}
|
||||
QString toolTip() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "";
|
||||
}
|
||||
QString whatsThis() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "";
|
||||
}
|
||||
QWidget *createWidget(QWidget *parent) {
|
||||
LOG;
|
||||
TRC;
|
||||
return new ButtonLineEdit(parent);
|
||||
}
|
||||
};
|
||||
|
@@ -8,13 +8,10 @@
|
||||
#ifndef __WEBVIEWWIDGETIFC_HXX
|
||||
#define __WEBVIEWWIDGETIFC_HXX
|
||||
|
||||
#include <qbrowserlib/log.hxx>
|
||||
#include <qbrowserlib/swisswebview.hxx>
|
||||
#include <QtDesigner>
|
||||
|
||||
#ifndef LOG
|
||||
#define LOG qDebug()<<__PRETTY_FUNCTION__
|
||||
#endif
|
||||
|
||||
//! @defgroup designer
|
||||
//! @{
|
||||
|
||||
@@ -26,15 +23,15 @@ class SwissWebViewWidgetIfc: public QObject,
|
||||
public:
|
||||
SwissWebViewWidgetIfc(): _initialized(false) {}
|
||||
bool isContainer() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return true;
|
||||
}
|
||||
QIcon icon() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return QIcon(":/icons/swisswebview.png");
|
||||
}
|
||||
QString domXml() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return
|
||||
QString
|
||||
("<ui language=\"c++\" displayname=\"%1\">"
|
||||
@@ -49,35 +46,35 @@ class SwissWebViewWidgetIfc: public QObject,
|
||||
.arg(name().toLower());
|
||||
}
|
||||
QString group() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "Display Widgets [Examples]";
|
||||
}
|
||||
QString includeFile() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "qbrowserlib/swisswebview.hxx";
|
||||
}
|
||||
QString name() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "SwissWebView";
|
||||
}
|
||||
QString toolTip() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "";
|
||||
}
|
||||
QString whatsThis() const {
|
||||
LOG;
|
||||
TRC;
|
||||
return "";
|
||||
}
|
||||
QWidget *createWidget(QWidget *parent) {
|
||||
LOG;
|
||||
TRC;
|
||||
return new qbrowserlib::SwissWebView(&_net, &_executor, parent);
|
||||
}
|
||||
bool isInitialized() {
|
||||
LOG;
|
||||
TRC;
|
||||
return _initialized;
|
||||
}
|
||||
void initialized() {
|
||||
LOG;
|
||||
TRC;
|
||||
_initialized = true;
|
||||
}
|
||||
private:
|
||||
|
Reference in New Issue
Block a user