Skip to content

Commit

Permalink
Adjust for QLabel::pixmap() returning by value
Browse files Browse the repository at this point in the history
The function returning a pointer was deprecated in Qt 5.15.

See longturn#1198.
  • Loading branch information
lmoureaux committed Jan 1, 2023
1 parent 65774a7 commit 934d4eb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/page_load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
*/

#include "page_load.h"

// Qt
#include <QDateTime>
#include <QFileDialog>
#include <qdatetime.h>
#include <qpushbutton.h>
#include <QPushButton>

// utility
#include "fcintl.h"
// common
Expand Down Expand Up @@ -315,8 +316,8 @@ void page_load::slot_selection_changed(const QItemSelection &selected,
} else {
ui.load_pix->setPixmap(*(new QPixmap));
}
ui.load_pix->setFixedSize(ui.load_pix->pixmap()->width(),
ui.load_pix->pixmap()->height());
ui.load_pix->setFixedSize(ui.load_pix->pixmap().width(),
ui.load_pix->pixmap().height());
sf.reset(secfile_load_section(fn_bytes.data(),
QStringLiteral("research"), true));
if (sf) {
Expand Down

0 comments on commit 934d4eb

Please sign in to comment.