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
3b6209b9
Commit
3b6209b9
authored
Dec 08, 2016
by
Laurent Montel
Browse files
Fix cancel/getpreview sound
parent
406b7674
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/qt-oauth-lib/logindialog.cpp
View file @
3b6209b9
...
...
@@ -45,6 +45,8 @@ LoginDialog::LoginDialog(QWidget *parent) :
ui
(
new
Ui
::
LoginDialog
)
{
ui
->
setupUi
(
this
);
connect
(
ui
->
CancelButton
,
&
QPushButton
::
clicked
,
this
,
&
LoginDialog
::
slotRejected
);
connect
(
ui
->
GetHQpreview
,
&
QPushButton
::
clicked
,
this
,
&
LoginDialog
::
slotGetHQPreview
);
setWindowTitle
(
i18n
(
"Freesound Login"
));
ui
->
FreeSoundLoginLabel
->
setText
(
i18n
(
"Enter your freesound account details to download the highest quality version of this file. Or use the High Quality preview file instead (no freesound account required)."
));
// ui->textBrowser
...
...
@@ -56,6 +58,18 @@ LoginDialog::~LoginDialog()
delete
ui
;
}
void
LoginDialog
::
slotGetHQPreview
()
{
emit
UseHQPreview
();
QDialog
::
accept
();
}
void
LoginDialog
::
slotRejected
()
{
emit
canceled
();
QDialog
::
reject
();
}
/**
* @brief LoginDialog::urlChanged
* @param url \n
...
...
src/qt-oauth-lib/logindialog.h
View file @
3b6209b9
...
...
@@ -84,6 +84,8 @@ signals:
private
slots
:
void
urlChanged
(
const
QUrl
&
url
);
void
slotGetHQPreview
();
void
slotRejected
();
private:
Ui
::
LoginDialog
*
ui
;
QString
m_strAuthCode
;
...
...
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