Commit 7a73988c authored by Tim Jenssen's avatar Tim Jenssen Committed by Thomas Hartmann

QmlDesigner: add widget method to viewManager

Change-Id: I468bd7e33b42c50bbb4dbe0d857b657fa207f0a6
Reviewed-by: Thomas Hartmann's avatarThomas Hartmann <>
parent dff1f744
......@@ -73,7 +73,8 @@ public:
void registerFormEditorToolTakingOwnership(AbstractCustomTool *tool);
void registerViewTakingOwnership(AbstractView *view);
QList<WidgetInfo> widgetInfos();
QList<WidgetInfo> widgetInfos() const;
QWidget *widget(const QString & uniqueId) const;
void disableWidgets();
void enableWidgets();
......@@ -251,7 +251,7 @@ void QmlDesigner::ViewManager::setNodeInstanceViewProject(ProjectExplorer::Proje
QList<WidgetInfo> ViewManager::widgetInfos()
QList<WidgetInfo> ViewManager::widgetInfos() const
QList<WidgetInfo> widgetInfoList;
......@@ -276,6 +276,15 @@ QList<WidgetInfo> ViewManager::widgetInfos()
return widgetInfoList;
QWidget *ViewManager::widget(const QString &uniqueId) const
foreach (const WidgetInfo &widgetInfo, widgetInfos()) {
if (widgetInfo.uniqueId == uniqueId)
return widgetInfo.widget;
return nullptr;
void ViewManager::disableWidgets()
foreach (const WidgetInfo &widgetInfo, widgetInfos())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment