1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Update widget.cpp

Selected all normally-available formats (from [here](http://doc.qt.io/qt-5/qpixmap.html), verify they're all _actually_ functional.
This commit is contained in:
Chloe 2015-02-09 23:09:29 -05:00
parent b2ba58ed61
commit eb3d5ea27d

View File

@ -347,7 +347,7 @@ void Widget::onAvatarClicked()
QString filename = QFileDialog::getOpenFileName(this,
tr("Choose a profile picture"),
QDir::homePath(),
tr("Images (*.png *.jpg)"));//TODO: cover all types of images QPixmap can use reliably
tr("Images (*.bmp *.jpg *.jpeg *.png *.pmb *.pgm *.ppm *.xbm *.xpm)"));
if (filename.isEmpty())
return;
QFile file(filename);