diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ca914438..14ffd82e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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); diff --git a/src/qvgraphicsview.cpp b/src/qvgraphicsview.cpp index 4f75f758..76a4e03f 100644 --- a/src/qvgraphicsview.cpp +++ b/src/qvgraphicsview.cpp @@ -25,7 +25,6 @@ QVGraphicsView::QVGraphicsView(QWidget *parent) : QGraphicsView(parent) parentMainWindow = ((MainWindow*)parentWidget()->parentWidget()); reader.setDecideFormatFromContent(true); - qDebug() << QImageReader::supportedImageFormats(); }