From 84a8aa57d66e0a5bbb29899a8f0c2f20ef37f4c5 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 6 Dec 2024 03:39:20 +0100 Subject: [PATCH] Don't use deprecated SIGNAL & SLOT macros --- src/gamestate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gamestate.cpp b/src/gamestate.cpp index 58be4c5..8a30c1f 100644 --- a/src/gamestate.cpp +++ b/src/gamestate.cpp @@ -2,8 +2,8 @@ #include #include -GameState::GameState(QObject* parent) : QObject{parent} { - assert(connect(this, SIGNAL(foundationChanged()), this, SLOT(onFoundationChanged()))); +GameState::GameState(QObject* parent, bool preDealCards) : QObject{parent} { + assert(connect(this, &GameState::foundationChanged, this, &GameState::onFoundationChanged)); m_foundation.resize(4); m_columns.resize(7);