Skip to content

Commit 0ef94cf

Browse files
committed
comments added regarding image formats
1 parent 185dede commit 0ef94cf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libGUI/MainWindow.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ void MainWindow::onFileImage()
578578
return;
579579
}
580580
QString fileName = QFileDialog::getOpenFileName(this, tr("Load an Image File"), QString(),
581-
tr("Image Files (*.bmp)"));
581+
tr("Image Files (*.bmp "
582+
//"*.jpg *.JPEG *.tiff *.png */"
583+
")"));
582584

583585
this->importPhoto(fileName);
584586
}
@@ -592,6 +594,7 @@ void MainWindow::onFilePhotoBase()
592594
return;
593595
}
594596

597+
// for file formats, check PhotoModel::setRootPath()
595598
m_photoModel->setRootPath(directory);
596599
m_photoWidget->setModel(m_photoModel);
597600
// m_photoWidget->setRootIndex(m_photoModel->index(directory));

0 commit comments

Comments
 (0)