forked from qt-creator/qt-creator
QmlDesigner: Remove QmlModelView
And use NodeInstanceView directly. There is still more cleanup required for the view handling. Change-Id: I62417644ceefb25fb9f3bb93a894b71ae0929cb0 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -56,7 +56,7 @@ namespace QmlDesigner {
|
||||
|
||||
namespace Internal {
|
||||
|
||||
DebugView::DebugView(QObject *parent) : QmlModelView(parent),
|
||||
DebugView::DebugView(QObject *parent) : AbstractView(parent),
|
||||
m_debugViewWidget(new DebugViewWidget)
|
||||
{
|
||||
}
|
||||
@@ -70,13 +70,13 @@ void DebugView::modelAttached(Model *model)
|
||||
log(tr("Model attached"), tr("FileName %1").arg(model->fileUrl().toLocalFile()));
|
||||
m_debugViewWidget->setDebugViewEnabled(isDebugViewEnabled());
|
||||
qDebug() << "enabled: " << isDebugViewEnabled();
|
||||
QmlModelView::modelAttached(model);
|
||||
AbstractView::modelAttached(model);
|
||||
}
|
||||
|
||||
void DebugView::modelAboutToBeDetached(Model *model)
|
||||
{
|
||||
log(tr("Model detached"), tr("FileName %1").arg(model->fileUrl().toLocalFile()));
|
||||
QmlModelView::modelAboutToBeDetached(model);
|
||||
AbstractView::modelAboutToBeDetached(model);
|
||||
}
|
||||
|
||||
void DebugView::importsChanged(const QList<Import> &addedImports, const QList<Import> &removedImports)
|
||||
|
||||
Reference in New Issue
Block a user