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
6a8b0984
Commit
6a8b0984
authored
Oct 02, 2022
by
Julius Künzel
💬
Browse files
[Resource Widget] Fix open licens and provider website
parent
5adbacd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/onlineresources/resourcewidget.cpp
View file @
6a8b0984
...
...
@@ -9,12 +9,12 @@
#include
"kdenlivesettings.h"
#include
<KFileItem>
#include
<KIO/OpenUrlJob>
#include
<KMessageBox>
#include
<KRecentDirs>
#include
<KSelectAction>
#include
<KSqueezedTextLabel>
#include
<QComboBox>
#include
<QDesktopServices>
#include
<QFileDialog>
#include
<QFontDatabase>
#include
<QIcon>
...
...
@@ -63,8 +63,8 @@ ResourceWidget::ResourceWidget(QWidget *parent)
}
connect
(
service_list
,
static_cast
<
void
(
QComboBox
::*
)(
int
)
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
ResourceWidget
::
slotChangeProvider
);
loadConfig
();
connect
(
provider_info
,
SIGNAL
(
leftClickedUrl
(
QString
)),
this
,
SLOT
(
slotOpenUrl
(
QString
))
);
connect
(
label_license
,
SIGNAL
(
leftClickedUrl
(
QString
)),
this
,
SLOT
(
slotOpenUrl
(
QString
))
);
connect
(
provider_info
,
&
KUrlLabel
::
leftClickedUrl
,
this
,
[
&
]()
{
slotOpenUrl
(
provider_info
->
url
());
}
);
connect
(
label_license
,
&
KUrlLabel
::
leftClickedUrl
,
this
,
[
&
]()
{
slotOpenUrl
(
label_license
->
url
());
}
);
connect
(
search_text
,
&
KLineEdit
::
returnKeyPressed
,
this
,
&
ResourceWidget
::
slotStartSearch
);
connect
(
search_results
,
&
QListWidget
::
currentRowChanged
,
this
,
&
ResourceWidget
::
slotUpdateCurrentItem
);
connect
(
button_preview
,
&
QAbstractButton
::
clicked
,
this
,
[
&
]()
{
...
...
@@ -209,7 +209,7 @@ void ResourceWidget::slotChangeProvider()
*/
void
ResourceWidget
::
slotOpenUrl
(
const
QString
&
url
)
{
KIO
::
O
penUrl
Job
(
QUrl
(
url
));
QDesktopServices
::
o
penUrl
(
QUrl
(
url
));
}
/**
...
...
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