Commit 36cc7667 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: Do not enable states editor for Popup

Items derived from Popup do not support states.

Change-Id: Ib201fc6f2258c4c459f3bcbccc607a7cc5e4a609
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 6e30faba
......@@ -200,7 +200,8 @@ void StatesEditorView::duplicateCurrentState()
void StatesEditorView::checkForWindow()
{
if (m_statesEditorWidget)
m_statesEditorWidget->showAddNewStatesButton(!rootModelNode().metaInfo().isSubclassOf("QtQuick.Window.Window"));
m_statesEditorWidget->showAddNewStatesButton(!rootModelNode().metaInfo().isSubclassOf("QtQuick.Window.Window")
&& !rootModelNode().metaInfo().isSubclassOf("QtQuick.Window.Popup"));
}
void StatesEditorView::setCurrentState(const QmlModelState &state)
......
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