SHARE
TWEET

QmlApplicationViewer error

a guest Mar 28th, 2012 68 Never
  1. QmlApplicationViewer::QmlApplicationViewer(QWidget *parent)
  2.     : QDeclarativeView(parent)
  3.     , d(new QmlApplicationViewerPrivate())
  4. {
  5.     connect(engine(), SIGNAL(quit()), SLOT(close()));
  6.     setResizeMode(QDeclarativeView::SizeRootObjectToView);
  7.     // Qt versions prior to 4.8.0 don't have QML/JS debugging services built in
  8. #if defined(QMLJSDEBUGGER) && QT_VERSION < 0x040800
  9. #if !defined(NO_JSDEBUGGER)
  10.     new QmlJSDebugger::JSDebuggerAgent(engine());
  11. #endif
  12. #if !defined(NO_QMLOBSERVER)
  13.     new QmlJSDebugger::QDeclarativeViewObserver(this, this);
  14. #endif
  15. #endif
  16. }
  17.  
  18.  
  19. QmlApplicationViewer::~QmlApplicationViewer()
  20. {
  21.     delete d;
  22. }
RAW Paste Data
Top