forked from qt-creator/qt-creator
QmlJsDebugger: Replace QDDesignView by QDViewObserver
Don't force users to inherit from QDeclarativeDesignView. Instead we're using now event filters to let a user attach a QDeclarativeViewObserver object to a QDeclarativeDesignView.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "boundingrecthighlighter.h"
|
||||
#include "qdeclarativedesignview.h"
|
||||
#include "qdeclarativeviewobserver.h"
|
||||
#include "qmlviewerconstants.h"
|
||||
|
||||
#include <QGraphicsPolygonItem>
|
||||
@@ -48,8 +48,8 @@ int BoundingBoxPolygonItem::type() const
|
||||
return Constants::EditorItemType;
|
||||
}
|
||||
|
||||
BoundingRectHighlighter::BoundingRectHighlighter(QDeclarativeDesignView *view) :
|
||||
LayerItem(view->scene()),
|
||||
BoundingRectHighlighter::BoundingRectHighlighter(QDeclarativeViewObserver *view) :
|
||||
LayerItem(view->declarativeView()->scene()),
|
||||
m_view(view),
|
||||
m_animFrame(0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user