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
PIM
PIM MailCommon
Commits
384f9bc1
Commit
384f9bc1
authored
Apr 13, 2021
by
Laurent Montel
😁
Browse files
Start to port deprecated method
parent
7b028dd5
Pipeline
#57840
passed with stage
in 29 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/filter/soundtestwidget.cpp
View file @
384f9bc1
...
...
@@ -62,10 +62,9 @@ void SoundTestWidget::openSoundDialog(KUrlRequester *)
QFileDialog
*
fileDialog
=
m_urlRequester
->
fileDialog
();
fileDialog
->
setWindowTitle
(
i18nc
(
"@title:window"
,
"Select Sound File"
));
QStringList
filters
;
filters
<<
QStringLiteral
(
"audio/x-wav"
)
<<
QStringLiteral
(
"audio/mpeg"
)
<<
QStringLiteral
(
"application/ogg"
)
<<
QStringLiteral
(
"audio/x-adpcm"
);
const
QStringList
filters
{
QStringLiteral
(
"audio/x-wav"
),
QStringLiteral
(
"application/ogg"
),
QStringLiteral
(
"audio/x-adpcm"
)};
fileDialog
->
setMimeTypeFilters
(
filters
);
m_urlRequester
->
setMimeTypeFilters
(
filters
);
const
QStringList
soundDirs
=
QStandardPaths
::
locateAll
(
QStandardPaths
::
GenericDataLocation
,
QStringLiteral
(
"sound/"
),
QStandardPaths
::
LocateDirectory
);
...
...
@@ -78,7 +77,7 @@ void SoundTestWidget::openSoundDialog(KUrlRequester *)
dir
=
soundDir
;
if
(
dir
.
isReadable
()
&&
dir
.
count
()
>
2
)
{
soundURL
.
setPath
(
soundDir
);
fileDialog
->
setDirectory
Url
(
soundURL
);
m_urlRequester
->
set
Url
(
soundURL
);
break
;
}
}
...
...
Write
Preview
Markdown
is supported
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