Changeset View
Changeset View
Standalone View
Standalone View
phonon/objectdescription.h
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Line(s) | 259 | protected: | |||
---|---|---|---|---|---|
262 | QExplicitlySharedDataPointer<ObjectDescriptionData> d; | 262 | QExplicitlySharedDataPointer<ObjectDescriptionData> d; | ||
263 | }; | 263 | }; | ||
264 | 264 | | |||
265 | template<ObjectDescriptionType T> | 265 | template<ObjectDescriptionType T> | ||
266 | QDebug operator<<(QDebug dbg, const ObjectDescription<T> &d) | 266 | QDebug operator<<(QDebug dbg, const ObjectDescription<T> &d) | ||
267 | { | 267 | { | ||
268 | dbg.nospace() << "\n{\n"; | 268 | dbg.nospace() << "\n{\n"; | ||
269 | dbg.nospace() << " index: " << d.index() << "\n"; | 269 | dbg.nospace() << " index: " << d.index() << "\n"; | ||
270 | #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) | | |||
271 | const QList<QByteArray> propertyNames = d.propertyNames(); | 270 | const QList<QByteArray> propertyNames = d.propertyNames(); | ||
272 | for (const QByteArray &propertyName : propertyNames) { | 271 | for (const QByteArray &propertyName : propertyNames) { | ||
273 | #else | | |||
274 | Q_FOREACH (const QByteArray &propertyName, d.propertyNames()) { | | |||
275 | #endif | | |||
276 | dbg.nospace() << " " << propertyName << ": " << | 272 | dbg.nospace() << " " << propertyName << ": " << | ||
277 | d.property(propertyName).toString() << "\n"; | 273 | d.property(propertyName).toString() << "\n"; | ||
278 | } | 274 | } | ||
279 | dbg.nospace() << "}\n"; | 275 | dbg.nospace() << "}\n"; | ||
280 | 276 | | |||
281 | return dbg.space(); | 277 | return dbg.space(); | ||
282 | } | 278 | } | ||
283 | 279 | | |||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |