Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
fe94f9af
Commit
fe94f9af
authored
Oct 31, 2022
by
Julius Künzel
💬
Browse files
Fix possible UI corruption with xml uis and some animated parameters
parent
9251afeb
Pipeline
#259101
failed with stage
in 8 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/assetparameterview.cpp
View file @
fe94f9af
...
...
@@ -76,7 +76,7 @@ void AssetParameterView::setModel(const std::shared_ptr<AssetParameterModel> &mo
for
(
int
i
=
0
;
i
<
model
->
rowCount
();
++
i
)
{
QModelIndex
index
=
model
->
index
(
i
,
0
);
auto
type
=
model
->
data
(
index
,
AssetParameterModel
::
TypeRole
).
value
<
ParamType
>
();
if
(
m_mainKeyframeWidget
&&
(
type
==
ParamType
::
Geometry
||
type
==
ParamType
::
KeyframeParam
||
type
==
ParamType
::
ColorWheel
))
{
if
(
m_mainKeyframeWidget
&&
(
AssetParameterModel
::
isAnimated
(
type
)
||
type
==
ParamType
::
Geometry
))
{
// Keyframe widget can have some extra params that shouldn't build a new widget
qDebug
()
<<
"// FOUND ADDED PARAM"
;
if
(
type
!=
ParamType
::
ColorWheel
)
{
...
...
@@ -264,21 +264,6 @@ MonitorSceneType AssetParameterView::needsMonitorEffectScene() const
return
MonitorSceneDefault
;
}
/*void AssetParameterView::initKeyframeView()
{
if (m_mainKeyframeWidget) {
m_mainKeyframeWidget->initMonitor();
} else {
for (int i = 0; i < m_model->rowCount(); ++i) {
QModelIndex index = m_model->index(i, 0);
auto type = m_model->data(index, AssetParameterModel::TypeRole).value<ParamType>();
if (type == ParamType::Geometry) {
return MonitorSceneGeometry;
}
}
}
}*/
void
AssetParameterView
::
slotRefresh
()
{
refresh
(
m_model
->
index
(
0
,
0
),
m_model
->
index
(
m_model
->
rowCount
()
-
1
,
0
),
{});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment