From 97685dca733703f3ce0d14b169a7cd0be87a684b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 9 May 2025 14:30:11 +0200 Subject: [PATCH] Remove unneeded property --- YACReaderLibrary/properties_dialog.cpp | 4 ++-- YACReaderLibrary/properties_dialog.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/YACReaderLibrary/properties_dialog.cpp b/YACReaderLibrary/properties_dialog.cpp index 10f5c918..58316c93 100644 --- a/YACReaderLibrary/properties_dialog.cpp +++ b/YACReaderLibrary/properties_dialog.cpp @@ -734,14 +734,14 @@ void PropertiesDialog::setMultipleCover() QPixmap last = lastComic.info.getCover(basePath); last = last.scaledToHeight(575, Qt::SmoothTransformation); - coverImage = QPixmap::fromImage(blurred(last.toImage(), QRect(0, 0, last.width(), last.height()), 15)); + auto coverImage = QPixmap::fromImage(blurred(last.toImage(), QRect(0, 0, last.width(), last.height()), 15)); cover->setPixmap(coverImage); } void PropertiesDialog::setCover(const QPixmap &coverI) { - coverImage = coverI.scaledToHeight(575, Qt::SmoothTransformation); + auto coverImage = coverI.scaledToHeight(575, Qt::SmoothTransformation); cover->setPixmap(coverImage); } diff --git a/YACReaderLibrary/properties_dialog.h b/YACReaderLibrary/properties_dialog.h index 7485656a..3e031846 100644 --- a/YACReaderLibrary/properties_dialog.h +++ b/YACReaderLibrary/properties_dialog.h @@ -113,8 +113,6 @@ private: QPushButton *previousButton; QPushButton *restoreButton; //?? - QPixmap coverImage; - QToolButton *showPreviousCoverPageButton; QToolButton *showNextCoverPageButton; QLabel *coverPageNumberLabel;