From a1624684c1446a54f2f8a8be4cec6a0361edbed7 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 2 Jun 2023 05:29:51 +0300 Subject: [PATCH 36/36] Qt: Avoid deprecated QLabel::pixmap(Qt::ReturnByValue) See osdn #48126 Signed-off-by: Marko Lindqvist --- client/gui-qt/pages.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/gui-qt/pages.cpp b/client/gui-qt/pages.cpp index b931f598a0..9e1593b455 100644 --- a/client/gui-qt/pages.cpp +++ b/client/gui-qt/pages.cpp @@ -1362,7 +1362,11 @@ void fc_client::slot_selection_changed(const QItemSelection &selected, load_pix->setPixmap(*(new QPixmap)); } +#ifdef FC_QT5_MODE QPixmap pm = load_pix->pixmap(Qt::ReturnByValue); +#else // FC_QT5_MODE + QPixmap pm = load_pix->pixmap(); +#endif // FC_QT5_MODE load_pix->setFixedSize(pm.width(), pm.height()); -- 2.39.2