Changeset View
Changeset View
Standalone View
Standalone View
debuggers/gdb/printers/tests/qlistcontainer.cpp
1 | #include <QList> | 1 | #include <QList> | ||
---|---|---|---|---|---|
2 | #include <QVector> | 2 | #include <QVector> | ||
3 | #include <QQueue> | 3 | #include <QQueue> | ||
4 | #include <QStack> | 4 | #include <QStack> | ||
5 | #include <QLinkedList> | 5 | #include <QLinkedList> | ||
6 | #include <QSet> | 6 | #include <QSet> | ||
7 | #include <QString> | 7 | #include <QString> | ||
8 | #include <QDebug> | 8 | #include <QDebug> | ||
9 | 9 | | |||
10 | struct A { | 10 | struct A { | ||
11 | A(const QString& _a = QString(), const QString& _b = QString(), | 11 | explicit A(const QString& _a = QString(), const QString& _b = QString(), | ||
12 | int _c = -1, int _d = -1) | 12 | int _c = -1, int _d = -1) | ||
13 | : a(_a), b(_b), c(_c), d(_d) | 13 | : a(_a), b(_b), c(_c), d(_d) | ||
14 | {} | 14 | {} | ||
15 | bool operator==(const A& other) const | 15 | bool operator==(const A& other) const | ||
16 | { | 16 | { | ||
17 | return a == other.a && b == other.b && c == other.c && d == other.d; | 17 | return a == other.a && b == other.b && c == other.c && d == other.d; | ||
18 | } | 18 | } | ||
19 | QString a; | 19 | QString a; | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |