From 5fa1a3312ab24908d870ce2a2399695ac98d828d Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Tue, 8 Oct 2019 13:19:31 +0200 Subject: Make kconfig_compiler generate ctors with the optional parent arg Reviewers: #plasma, #frameworks, dfaure, mart, apol Reviewed By: apol Subscribers: kossebau, apol, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D24490 --- autotests/kconfig_compiler/test8c.cpp.ref | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'autotests/kconfig_compiler/test8c.cpp.ref') diff --git a/autotests/kconfig_compiler/test8c.cpp.ref b/autotests/kconfig_compiler/test8c.cpp.ref index 98654e5e..e2bd027c 100644 --- a/autotests/kconfig_compiler/test8c.cpp.ref +++ b/autotests/kconfig_compiler/test8c.cpp.ref @@ -45,9 +45,10 @@ void Test8c::instance(KSharedConfig::Ptr config) s_globalTest8c()->q->read(); } -Test8c::Test8c( KSharedConfig::Ptr config ) +Test8c::Test8c( KSharedConfig::Ptr config, QObject *parent ) : KConfigSkeleton( config ) { + setParent(parent); Q_ASSERT(!s_globalTest8c()->q); s_globalTest8c()->q = this; setCurrentGroup( QStringLiteral( "Group" ) ); -- cgit v1.2.1