Skip to content

Commit

Permalink
changed file formats
Browse files Browse the repository at this point in the history
  • Loading branch information
jurplel committed May 18, 2018
1 parent 628a25f commit cf88344
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void MainWindow::closeEvent(QCloseEvent *event)

void MainWindow::pickFile()
{
QFileDialog *fileDialog = new QFileDialog(this, tr("Open"), "", tr("Images (*.svg *.bmp *.gif *.jpg *.jpeg *.png *.pbm *.pgm *.ppm *.xbm *.xpm);;All Files (*)"));
QFileDialog *fileDialog = new QFileDialog(this, tr("Open"), "", tr("Images (*.bmp *.cur *.gif *.icns *.ico *.jpeg *.jpg *.pbm *.pgm *.png *.ppm *.svg *.svgz *.tif *.tiff *.wbmp *.webp *.xbm *.xpm);;All Files (*)"));
fileDialog->setDirectory(settings.value("lastFileDialogDir", QDir::home().path()).toString());
fileDialog->open();
connect(fileDialog, &QFileDialog::fileSelected, this, &MainWindow::openFile);
Expand Down
1 change: 0 additions & 1 deletion src/qvgraphicsview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ QVGraphicsView::QVGraphicsView(QWidget *parent) : QGraphicsView(parent)
parentMainWindow = ((MainWindow*)parentWidget()->parentWidget());

reader.setDecideFormatFromContent(true);
qDebug() << QImageReader::supportedImageFormats();
}


Expand Down

0 comments on commit cf88344

Please sign in to comment.