Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-windows
Commits
129985f0
Commit
129985f0
authored
Jan 09, 2019
by
Andreas Traczyk
Browse files
misc: fix file-picker filters
Change-Id: Ifa422aabbc2a593248f49c3c85ca4be18f42a11c
parent
a493d5bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
advancedsettingswidget.cpp
View file @
129985f0
...
...
@@ -155,7 +155,7 @@ AdvancedSettingsWidget::openFileCustomRingtone()
QString
fileUrl
;
auto
oldPath
=
QString
::
fromStdString
(
LRCInstance
::
getCurrAccConfig
().
Ringtone
.
ringtonePath
);
auto
openPath
=
oldPath
.
isEmpty
()
?
QDir
::
currentPath
()
+
QString
(
"/ringtones/"
)
:
QFileInfo
(
oldPath
).
absolutePath
();
fileUrl
=
QFileDialog
::
getOpenFileName
(
this
,
QString
(
"Select a new ringtone"
),
openPath
,
tr
(
"Audio Files (*.wav
,
*.ogg
,
*.opus
,
*.mp3)"
));
fileUrl
=
QFileDialog
::
getOpenFileName
(
this
,
QString
(
"Select a new ringtone"
),
openPath
,
tr
(
"Audio Files (*.wav *.ogg *.opus *.mp3
*aiff *wma
)"
));
if
(
!
fileUrl
.
isEmpty
())
{
auto
confProps
=
LRCInstance
::
accountModel
().
getAccountConfig
(
LRCInstance
::
getCurrAccId
());
confProps
.
Ringtone
.
ringtonePath
=
fileUrl
.
toStdString
();
...
...
photoboothwidget.cpp
View file @
129985f0
...
...
@@ -90,7 +90,7 @@ PhotoboothWidget::on_importButton_clicked()
auto
picturesDir
=
QStandardPaths
::
standardLocations
(
QStandardPaths
::
PicturesLocation
).
first
();
fileName_
=
QFileDialog
::
getOpenFileName
(
this
,
tr
(
"Choose File"
),
picturesDir
,
tr
(
"Image Files (*.jpg
,
*.jpeg
,
*.png)"
));
tr
(
"Image Files (*.jpg *.jpeg *.png)"
));
if
(
fileName_
.
isEmpty
())
{
Video
::
PreviewManager
::
instance
().
startPreview
();
return
;
...
...
setavatardialog.cpp
View file @
129985f0
...
...
@@ -23,6 +23,7 @@
#include
<QWindow>
#include
<QtMultimedia\QCameraImageCapture>
#include
<QBuffer>
#include
<QStandardPaths>
#include
"setavatardialog.h"
#include
"ui_setavatardialog.h"
...
...
@@ -137,8 +138,9 @@ SetAvatarDialog::editMode()
void
SetAvatarDialog
::
openFileManager
()
{
auto
picturesDir
=
QStandardPaths
::
standardLocations
(
QStandardPaths
::
PicturesLocation
).
first
();
rawPixmap_
.
load
(
QFileDialog
::
getOpenFileName
(
this
,
tr
(
"Open Image"
),
""
,
tr
(
"Image Files (*.p
n
g *.jpg *.bmp)"
)));
tr
(
"Open Image"
),
picturesDir
,
tr
(
"Image Files (*.
j
pg *.jp
eg *.pn
g *.bmp)"
)));
editMode
();
}
...
...
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