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
3c6b2441
Commit
3c6b2441
authored
Oct 14, 2018
by
Jean-Baptiste Mardelle
Browse files
Backport fix for incorrect bin rename
CCBUG: 368206
parent
443a7b8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/bin.cpp
View file @
3c6b2441
...
...
@@ -311,7 +311,18 @@ class BinItemDelegate: public QStyledItemDelegate
{
public:
explicit
BinItemDelegate
(
QObject
*
parent
=
nullptr
)
:
QStyledItemDelegate
(
parent
)
,
m_editorOpen
(
false
)
{
connect
(
this
,
&
QStyledItemDelegate
::
closeEditor
,
[
&
]()
{
m_editorOpen
=
false
;
});
}
void
setEditorData
(
QWidget
*
w
,
const
QModelIndex
&
i
)
const
override
{
if
(
!
m_editorOpen
)
{
QStyledItemDelegate
::
setEditorData
(
w
,
i
);
m_editorOpen
=
true
;
}
}
void
updateEditorGeometry
(
QWidget
*
editor
,
const
QStyleOptionViewItem
&
option
,
const
QModelIndex
&
index
)
const
Q_DECL_OVERRIDE
...
...
@@ -489,6 +500,8 @@ public:
QStyledItemDelegate
::
paint
(
painter
,
option
,
index
);
}
}
private:
mutable
bool
m_editorOpen
;
};
LineEventEater
::
LineEventEater
(
QObject
*
parent
)
:
QObject
(
parent
)
...
...
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