From f3f4eeb4e7b19db6a5eba30021357f4ad96aa7fc Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Sat, 25 Apr 2026 13:08:04 -0700 Subject: [PATCH] Qt5 fixes --- common/lc_blenderpreferences.cpp | 1 + common/lc_instructionsdialog.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/lc_blenderpreferences.cpp b/common/lc_blenderpreferences.cpp index 7a400eb2..70655247 100644 --- a/common/lc_blenderpreferences.cpp +++ b/common/lc_blenderpreferences.cpp @@ -26,6 +26,7 @@ #include "lc_http.h" #include "lc_zipfile.h" #include "lc_file.h" +#include "lc_qutils.h" #include "project.h" #if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) diff --git a/common/lc_instructionsdialog.cpp b/common/lc_instructionsdialog.cpp index f6f315cf..2a3cbe94 100644 --- a/common/lc_instructionsdialog.cpp +++ b/common/lc_instructionsdialog.cpp @@ -576,8 +576,8 @@ lcInstructionsDialog::lcInstructionsDialog(QWidget* Parent, Project* Project) connect(mPrintAction, &QAction::triggered, this, &lcInstructionsDialog::ShowPrintDialog); connect(mVerticalPageAction, &QAction::toggled, this, &lcInstructionsDialog::UpdatePageSettings); connect(mHorizontalPageAction, &QAction::toggled, this, &lcInstructionsDialog::UpdatePageSettings); - connect(mRowsSpinBox, &QSpinBox::valueChanged, this, &lcInstructionsDialog::UpdatePageSettings); - connect(mColumnsSpinBox, &QSpinBox::valueChanged, this, &lcInstructionsDialog::UpdatePageSettings); + connect(mRowsSpinBox, qOverload(&QSpinBox::valueChanged), this, &lcInstructionsDialog::UpdatePageSettings); + connect(mColumnsSpinBox, qOverload(&QSpinBox::valueChanged), this, &lcInstructionsDialog::UpdatePageSettings); } void lcInstructionsDialog::ShowPrintDialog()