forked from qt-creator/qt-creator
QmlDesigner: Fix Material/Texture Editors toolbars issues
Make sure each toolbar's enum is registered under a different URI. Change-Id: I7613b4018b62188ba3fba5f651d064ada8173066 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -5,7 +5,7 @@ import QtQuick 2.15
|
|||||||
import QtQuickDesignerTheme 1.0
|
import QtQuickDesignerTheme 1.0
|
||||||
import HelperWidgets 2.0
|
import HelperWidgets 2.0
|
||||||
import StudioTheme 1.0 as StudioTheme
|
import StudioTheme 1.0 as StudioTheme
|
||||||
import ToolBarAction 1.0
|
import MaterialToolBarAction 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import QtQuick 2.15
|
|||||||
import QtQuickDesignerTheme 1.0
|
import QtQuickDesignerTheme 1.0
|
||||||
import HelperWidgets 2.0
|
import HelperWidgets 2.0
|
||||||
import StudioTheme 1.0 as StudioTheme
|
import StudioTheme 1.0 as StudioTheme
|
||||||
import ToolBarAction 1.0
|
import TextureToolBarAction 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ MaterialEditorContextObject::MaterialEditorContextObject(QQmlContext *context, Q
|
|||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, m_qmlContext(context)
|
, m_qmlContext(context)
|
||||||
{
|
{
|
||||||
qmlRegisterUncreatableType<MaterialEditorContextObject>("ToolBarAction", 1, 0, "ToolBarAction", "Enum type");
|
qmlRegisterUncreatableType<MaterialEditorContextObject>("MaterialToolBarAction", 1, 0, "ToolBarAction", "Enum type");
|
||||||
}
|
}
|
||||||
|
|
||||||
QQmlComponent *MaterialEditorContextObject::specificQmlComponent()
|
QQmlComponent *MaterialEditorContextObject::specificQmlComponent()
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ TextureEditorContextObject::TextureEditorContextObject(QQmlContext *context, QOb
|
|||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
, m_qmlContext(context)
|
, m_qmlContext(context)
|
||||||
{
|
{
|
||||||
qmlRegisterUncreatableType<TextureEditorContextObject>("ToolBarAction", 1, 0, "ToolBarAction", "Enum type");
|
qmlRegisterUncreatableType<TextureEditorContextObject>("TextureToolBarAction", 1, 0, "ToolBarAction", "Enum type");
|
||||||
}
|
}
|
||||||
|
|
||||||
QQmlComponent *TextureEditorContextObject::specificQmlComponent()
|
QQmlComponent *TextureEditorContextObject::specificQmlComponent()
|
||||||
|
|||||||
Reference in New Issue
Block a user