Remove old qt code
new round of removal following the report of @benj5378 . .
This commit is contained in:
@@ -96,11 +96,8 @@ void ImageView::setImage(const QImage& image)
|
||||
void ImageView::scaleImage(double factor)
|
||||
{
|
||||
scaleFactor *= factor;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,15,0)
|
||||
|
||||
imageLabel->resize(scaleFactor * imageLabel->pixmap(Qt::ReturnByValue).size());
|
||||
#else
|
||||
imageLabel->resize(scaleFactor * imageLabel->pixmap()->size());
|
||||
#endif
|
||||
|
||||
adjustScrollBar(scrollArea->horizontalScrollBar(), factor);
|
||||
adjustScrollBar(scrollArea->verticalScrollBar(), factor);
|
||||
|
||||
Reference in New Issue
Block a user