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: