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
85602f95
Commit
85602f95
authored
Aug 17, 2022
by
Julius Künzel
💬
Browse files
[Qt6] Port deprecated itemDelegate() to itemDelegateForIndex()
parent
cf5eeee6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/effects/effectstack/view/effectstackview.cpp
View file @
85602f95
...
...
@@ -308,7 +308,11 @@ void EffectStackView::loadEffects()
activeIndex
=
ix
;
}
m_effectsTree
->
setIndexWidget
(
ix
,
view
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
auto
*
del
=
static_cast
<
WidgetDelegate
*>
(
m_effectsTree
->
itemDelegate
(
ix
));
#else
auto
*
del
=
static_cast
<
WidgetDelegate
*>
(
m_effectsTree
->
itemDelegateForIndex
(
ix
));
#endif
del
->
setHeight
(
ix
,
view
->
height
());
view
->
buttonUp
->
setEnabled
(
i
>
0
);
view
->
buttonDown
->
setEnabled
(
i
<
max
-
1
);
...
...
@@ -385,7 +389,11 @@ void EffectStackView::slotAdjustDelegate(const std::shared_ptr<EffectItemModel>
}
QModelIndex
ix
=
m_model
->
getIndexFromItem
(
effectModel
);
if
(
ix
.
isValid
())
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
auto
*
del
=
static_cast
<
WidgetDelegate
*>
(
m_effectsTree
->
itemDelegate
(
ix
));
#else
auto
*
del
=
static_cast
<
WidgetDelegate
*>
(
m_effectsTree
->
itemDelegateForIndex
(
ix
));
#endif
if
(
del
)
{
del
->
setHeight
(
ix
,
newHeight
);
m_timerHeight
.
start
();
...
...
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