Core: Correct declaration of Context debug output function

Amends 104ea4acc.

Hidden friends don't work when declared in the wrong class.
This here happened to go unnoticed as it was nowhere used.

Change-Id: Ie26d5c777c85e143a6b7189ccbd87aedd2502df0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2024-07-05 10:01:27 +02:00
parent 1642a6b2f6
commit 3fb37b1210

View File

@@ -41,6 +41,8 @@ public:
void add(Utils::Id c) { d.append(c); } void add(Utils::Id c) { d.append(c); }
bool operator==(const Context &c) const { return d == c.d; } bool operator==(const Context &c) const { return d == c.d; }
friend CORE_EXPORT QDebug operator<<(QDebug debug, const Core::Context &context);
private: private:
QList<Utils::Id> d; QList<Utils::Id> d;
}; };
@@ -64,8 +66,6 @@ public:
const Context &context, const Context &context,
const HelpItem &contextHelp = {}); const HelpItem &contextHelp = {});
friend CORE_EXPORT QDebug operator<<(QDebug debug, const Core::Context &context);
protected: protected:
Context m_context; Context m_context;
QPointer<QWidget> m_widget; QPointer<QWidget> m_widget;