Skip to content

Commit

Permalink
comments added regarding image formats
Browse files Browse the repository at this point in the history
  • Loading branch information
vicrucann committed Jun 13, 2017
1 parent 185dede commit 0ef94cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libGUI/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,9 @@ void MainWindow::onFileImage()
return;
}
QString fileName = QFileDialog::getOpenFileName(this, tr("Load an Image File"), QString(),
tr("Image Files (*.bmp)"));
tr("Image Files (*.bmp "
//"*.jpg *.JPEG *.tiff *.png */"
")"));

this->importPhoto(fileName);
}
Expand All @@ -592,6 +594,7 @@ void MainWindow::onFilePhotoBase()
return;
}

// for file formats, check PhotoModel::setRootPath()
m_photoModel->setRootPath(directory);
m_photoWidget->setModel(m_photoModel);
// m_photoWidget->setRootIndex(m_photoModel->index(directory));
Expand Down

0 comments on commit 0ef94cf

Please sign in to comment.