forked from qt-creator/qt-creator
QmlDesigner: Make form editor color permanent
Make the form editor color permanent via AuxiliaryDataType::Document instead of AuxiliaryDataType::Temporary. Also put it into the globally available AuxiliaryDataProperties. Task-number: QDS-12245 Change-Id: Ib9191f168bdbfdb09367afaeb8052d6fdbf7dad9 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
4e988d48d0
commit
994f3827b3
@@ -324,11 +324,6 @@ void FormEditorWidget::changeRootItemHeight(const QString &heighText)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
|
||||||
constexpr AuxiliaryDataKeyView formeditorColorProperty{AuxiliaryDataType::Temporary,
|
|
||||||
"formeditorColor"};
|
|
||||||
}
|
|
||||||
|
|
||||||
void FormEditorWidget::changeBackgound(const QColor &color)
|
void FormEditorWidget::changeBackgound(const QColor &color)
|
||||||
{
|
{
|
||||||
if (color.alpha() == 0) {
|
if (color.alpha() == 0) {
|
||||||
|
@@ -115,6 +115,8 @@ inline constexpr AuxiliaryDataKeyView bakeLightsManualProperty{AuxiliaryDataType
|
|||||||
"bakeLightsManual"};
|
"bakeLightsManual"};
|
||||||
inline constexpr AuxiliaryDataKeyView contextImageProperty{AuxiliaryDataType::Temporary,
|
inline constexpr AuxiliaryDataKeyView contextImageProperty{AuxiliaryDataType::Temporary,
|
||||||
"contextImage"};
|
"contextImage"};
|
||||||
|
inline constexpr AuxiliaryDataKeyView formeditorColorProperty{AuxiliaryDataType::Document,
|
||||||
|
"formeditorColor"};
|
||||||
|
|
||||||
// Most material preview aux properties are duplicated as document and instance types, as they
|
// Most material preview aux properties are duplicated as document and instance types, as they
|
||||||
// are both required to be persistent and used at runtime to control material preview rendering
|
// are both required to be persistent and used at runtime to control material preview rendering
|
||||||
|
Reference in New Issue
Block a user