Commit af3b1090 authored by Yann Boucher's avatar Yann Boucher
Browse files

Fixed a bug related to image loading (would only accept jpeg), added the QR Code example pattern

parent 32b13873
Pipeline #78944 passed with stages
in 16 seconds
This diff is collapsed.
......@@ -469,7 +469,7 @@ static unsigned closest_state(const Alphabet& alph, const QColor& color)
void MainWindow::load_from_image()
{
QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"),"",tr("Image (*.png *.jpg *.jpeg *.bmp *.gif"));
QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"),"",tr("Image (*.png *.jpg *.jpeg *.bmp *.gif)"));
QImage img(fileName);
if (img.isNull())
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment