aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qml/qmldesigner/testview.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/auto/qml/qmldesigner/testview.h b/tests/auto/qml/qmldesigner/testview.h
index 6fb835e038..30881e5494 100644
--- a/tests/auto/qml/qmldesigner/testview.h
+++ b/tests/auto/qml/qmldesigner/testview.h
@@ -37,12 +37,16 @@ class TestView : public QmlDesigner::AbstractView
{
Q_OBJECT
public:
- struct MethodCall {
+ struct MethodCall
+ {
MethodCall(const QString &n, const QStringList &args) :
name(n), arguments(args)
{
}
+ friend bool operator==(TestView::MethodCall call1, TestView::MethodCall call2);
+ friend QDebug operator<<(QDebug debug, TestView::MethodCall call);
+
QString name;
QStringList arguments;
};
@@ -114,6 +118,3 @@ private:
QList<MethodCall> m_methodCalls;
static QString serialize(AbstractView::PropertyChangeFlags change);
};
-
-bool operator==(TestView::MethodCall call1, TestView::MethodCall call2);
-QDebug operator<<(QDebug debug, TestView::MethodCall call);