Changeset View
Changeset View
Standalone View
Standalone View
src/engine/positioninfo.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 30 | public: | |||
---|---|---|---|---|---|
42 | } | 42 | } | ||
43 | 43 | | |||
44 | bool operator <(const PositionInfo& rhs) const { | 44 | bool operator <(const PositionInfo& rhs) const { | ||
45 | return docId < rhs.docId; | 45 | return docId < rhs.docId; | ||
46 | } | 46 | } | ||
47 | }; | 47 | }; | ||
48 | 48 | | |||
49 | inline QDebug operator<<(QDebug dbg, const PositionInfo &pos) { | 49 | inline QDebug operator<<(QDebug dbg, const PositionInfo &pos) { | ||
50 | dbg << "(" << pos.docId << "-->" << pos.positions << ")"; | 50 | QDebugStateSaver saver(dbg); | ||
51 | dbg.nospace() << Qt::hex << "(" << pos.docId << ": " | ||||
52 | << Qt::dec << pos.positions << ")"; | ||||
51 | return dbg; | 53 | return dbg; | ||
52 | } | 54 | } | ||
53 | 55 | | |||
54 | } | 56 | } | ||
55 | 57 | | |||
56 | Q_DECLARE_TYPEINFO(Baloo::PositionInfo, Q_MOVABLE_TYPE); | 58 | Q_DECLARE_TYPEINFO(Baloo::PositionInfo, Q_MOVABLE_TYPE); | ||
57 | 59 | | |||
58 | #endif // BALOO_POSITIONINFO_H | 60 | #endif // BALOO_POSITIONINFO_H |