From 62464a450caa16dcbd02ffd13d1b663612452f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 26 Dec 2021 20:22:35 +0100 Subject: [PATCH] Fix method overriding --- YACReaderLibrary/properties_dialog.cpp | 2 +- YACReaderLibrary/properties_dialog.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/YACReaderLibrary/properties_dialog.cpp b/YACReaderLibrary/properties_dialog.cpp index 1846820c..fd1011bd 100644 --- a/YACReaderLibrary/properties_dialog.cpp +++ b/YACReaderLibrary/properties_dialog.cpp @@ -69,7 +69,7 @@ PropertiesDialog::PropertiesDialog(QWidget *parent) mainWidget->move(280, 0); } -QSize PropertiesDialog::sizeHint() +QSize PropertiesDialog::sizeHint() const { return QSize(750, 444); } diff --git a/YACReaderLibrary/properties_dialog.h b/YACReaderLibrary/properties_dialog.h index 9d086217..ee4242f1 100644 --- a/YACReaderLibrary/properties_dialog.h +++ b/YACReaderLibrary/properties_dialog.h @@ -125,7 +125,7 @@ public: // TODO: this non-const member function hides rather than overrides // QWidget::sizeHint(). But the function cannot be simply removed as it is used // in our constructor. Will have to investigate and decide how to fix this. - QSize sizeHint(); + QSize sizeHint() const override; void paintEvent(QPaintEvent *event) override; public slots: