Browse Source

Update widget.cpp

Selected all normally-available formats (from [here](http://doc.qt.io/qt-5/qpixmap.html), verify they're all _actually_ functional.
pull/1134/head
Chloe 11 years ago
parent
commit
eb3d5ea27d
  1. 2
      src/widget/widget.cpp

2
src/widget/widget.cpp

@ -347,7 +347,7 @@ void Widget::onAvatarClicked() @@ -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);

Loading…
Cancel
Save