Skip to content
GitLab
Menu
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
8d8887b5
Commit
8d8887b5
authored
Nov 01, 2019
by
Jean-Baptiste Mardelle
Browse files
url effect parameter : react on drop
parent
75ebcee9
Pipeline
#9822
passed with stage
in 17 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/assets/view/widgets/urlparamwidget.cpp
View file @
8d8887b5
...
...
@@ -49,8 +49,12 @@ UrlParamWidget::UrlParamWidget(std::shared_ptr<AssetParameterModel> model, QMode
slotRefresh
();
// emit the signal of the base class when appropriate
connect
(
this
->
urlwidget
,
&
KUrlRequester
::
urlSelected
,
[
this
](
QUrl
url
)
{
emit
valueChanged
(
m_index
,
url
.
toLocalFile
(),
true
);
});
connect
(
this
->
urlwidget
,
QOverload
<>::
of
(
&
KUrlRequester
::
returnPressed
),
[
this
]()
{
emit
valueChanged
(
m_index
,
this
->
urlwidget
->
url
().
toLocalFile
(),
true
);
});
connect
(
this
->
urlwidget
,
&
KUrlRequester
::
textChanged
,
[
this
]()
{
QFileInfo
info
(
urlwidget
->
url
().
toLocalFile
());
if
(
info
.
exists
()
&&
info
.
isFile
())
{
emit
valueChanged
(
m_index
,
this
->
urlwidget
->
url
().
toLocalFile
(),
true
);
}
});
}
void
UrlParamWidget
::
slotShowComment
(
bool
show
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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