Commit a03104b5 authored by Jan Möbius's avatar Jan Möbius

Warning fixes (deprecated Pixmap calls)

parent dbb1f115
......@@ -362,7 +362,12 @@ void texturePropertiesWidget::slotChangeImage()
fileLabel->setText("File: " + fileName);
currentImage_ = fileName;
image_ = imageLabel->pixmap()->toImage();
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
image_ = imageLabel->pixmap()->toImage();
#else
image_ = imageLabel->pixmap(Qt::ReturnByValue).toImage();
#endif
#ifdef WITH_QWT
functionPlot_->setImage(&image_);
......
Markdown is supported
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