Debugger: move the Q_DECLARE_METATYPE to after the class is declared

The Q_D_M is optional, but if you're going to use it, it must be on a
fully-declared type.

qmetatype.h:1137:9: error: static_assert failed due to requirement 'is_complete<Debugger::Internal::StartApplicationParameters, void>::value || std::is_void_v<Debugger::Internal::StartApplicationParameters>' "Meta Types must be fully defined"

Change-Id: I36b24183fbd041179f2ffffd17026fd9c3ab2459
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Thiago Macieira
2022-07-16 15:29:53 -07:00
parent 1f4a3447be
commit ca59b8d69b

View File

@@ -99,8 +99,6 @@ public:
} // Debugger::Internal
Q_DECLARE_METATYPE(Debugger::Internal::StartApplicationParameters)
namespace Debugger::Internal {
///////////////////////////////////////////////////////////////////////
@@ -943,3 +941,5 @@ void TypeFormatsDialog::addTypeFormats(const QString &type0,
}
} // Debugger::Internal
Q_DECLARE_METATYPE(Debugger::Internal::StartApplicationParameters)