SYMBIANUTILS_EXPORT QDebug operator<<(QDebug d, const SymbianDevice &cd) { d.nospace() << cd.toString(); return d; }
QDebug operator<<(QDebug debug, const MessageEnvelop &messageEnvelop) { debug.nospace() << "MessageEnvelop("; switch (messageEnvelop.messageType()) { case MessageType::EndMessage: qDebug() << "EndMessage()"; break; case MessageType::RegisterTranslationUnitForEditorMessage: qDebug() << messageEnvelop.message<RegisterTranslationUnitForEditorMessage>(); break; case MessageType::UpdateTranslationUnitsForEditorMessage: qDebug() << messageEnvelop.message<UpdateTranslationUnitsForEditorMessage>(); break; case MessageType::UnregisterTranslationUnitsForEditorMessage: qDebug() << messageEnvelop.message<UnregisterTranslationUnitsForEditorMessage>(); break; case MessageType::RegisterProjectPartsForEditorMessage: qDebug() << messageEnvelop.message<RegisterProjectPartsForEditorMessage>(); break; case MessageType::UnregisterProjectPartsForEditorMessage: qDebug() << messageEnvelop.message<UnregisterProjectPartsForEditorMessage>(); break; case MessageType::RegisterUnsavedFilesForEditorMessage: qDebug() << messageEnvelop.message<RegisterUnsavedFilesForEditorMessage>(); break; case MessageType::UnregisterUnsavedFilesForEditorMessage: qDebug() << messageEnvelop.message<UnregisterUnsavedFilesForEditorMessage>(); break; case MessageType::CompleteCodeMessage: qDebug() << messageEnvelop.message<CompleteCodeMessage>(); break; case MessageType::RequestDocumentAnnotationsMessage: qDebug() << messageEnvelop.message<RequestDocumentAnnotationsMessage>(); break; case MessageType::UpdateVisibleTranslationUnitsMessage: qDebug() << messageEnvelop.message<UpdateVisibleTranslationUnitsMessage>(); break; case MessageType::AliveMessage: qDebug() << "AliveMessage()"; break; case MessageType::EchoMessage: qDebug() << messageEnvelop.message<EchoMessage>(); break; case MessageType::CodeCompletedMessage: qDebug() << messageEnvelop.message<CodeCompletedMessage>(); break; case MessageType::TranslationUnitDoesNotExistMessage: qDebug() << messageEnvelop.message<TranslationUnitDoesNotExistMessage>(); break; case MessageType::ProjectPartsDoNotExistMessage: qDebug() << messageEnvelop.message<ProjectPartsDoNotExistMessage>(); break; case MessageType::DocumentAnnotationsChangedMessage: qDebug() << messageEnvelop.message<DocumentAnnotationsChangedMessage>(); break; default: qWarning() << "Unknown Message"; } debug.nospace() << ")"; return debug; }
QDebug operator<<(QDebug dbg, Number n) { dbg.nospace() << n.toString(); return dbg.space(); }
QDebug operator<<(QDebug debug, const VariantProperty &VariantProperty) { return debug.nospace() << "VariantProperty(" << VariantProperty.name() << ')'; }
QDebug printDebug(QDebug dbg) const { dbg.nospace() << "KoVariable value=" << value; return dbg.space(); }
void RPolylineEntity::print(QDebug dbg) const { dbg.nospace() << "RPolylineEntity("; REntity::print(dbg); data.print(dbg); dbg.nospace() << ")"; }
QDebug operator<<(QDebug debug, const SettingsItem *setting) { debug.nospace() << "SettingsItem (" << (void*) setting << ", key: " << setting->d_ptr->key << ")"; return debug; }
QDebug Echonest::operator<<(QDebug d, const Echonest::Artist& artist) { return d.maybeSpace() << QString::fromLatin1( "Artist(%1, %2)" ).arg( artist.name() ).arg( QString::fromLatin1(artist.id()) ); }
QDebug operator<<(QDebug dbg, const QVideoSurfaceFormat &f) { QString typeName; switch (f.pixelFormat()) { case QVideoFrame::Format_Invalid: typeName = QLatin1String("Format_Invalid"); break; case QVideoFrame::Format_ARGB32: typeName = QLatin1String("Format_ARGB32"); break; case QVideoFrame::Format_ARGB32_Premultiplied: typeName = QLatin1String("Format_ARGB32_Premultiplied"); break; case QVideoFrame::Format_RGB32: typeName = QLatin1String("Format_RGB32"); break; case QVideoFrame::Format_RGB24: typeName = QLatin1String("Format_RGB24"); break; case QVideoFrame::Format_RGB565: typeName = QLatin1String("Format_RGB565"); break; case QVideoFrame::Format_RGB555: typeName = QLatin1String("Format_RGB555"); break; case QVideoFrame::Format_ARGB8565_Premultiplied: typeName = QLatin1String("Format_ARGB8565_Premultiplied"); break; case QVideoFrame::Format_BGRA32: typeName = QLatin1String("Format_BGRA32"); break; case QVideoFrame::Format_BGRA32_Premultiplied: typeName = QLatin1String("Format_BGRA32_Premultiplied"); break; case QVideoFrame::Format_BGR32: typeName = QLatin1String("Format_BGR32"); break; case QVideoFrame::Format_BGR24: typeName = QLatin1String("Format_BGR24"); break; case QVideoFrame::Format_BGR565: typeName = QLatin1String("Format_BGR565"); break; case QVideoFrame::Format_BGR555: typeName = QLatin1String("Format_BGR555"); break; case QVideoFrame::Format_BGRA5658_Premultiplied: typeName = QLatin1String("Format_BGRA5658_Premultiplied"); break; case QVideoFrame::Format_AYUV444: typeName = QLatin1String("Format_AYUV444"); break; case QVideoFrame::Format_AYUV444_Premultiplied: typeName = QLatin1String("Format_AYUV444_Premultiplied"); break; case QVideoFrame::Format_YUV444: typeName = QLatin1String("Format_YUV444"); break; case QVideoFrame::Format_YUV420P: typeName = QLatin1String("Format_YUV420P"); break; case QVideoFrame::Format_YV12: typeName = QLatin1String("Format_YV12"); break; case QVideoFrame::Format_UYVY: typeName = QLatin1String("Format_UYVY"); break; case QVideoFrame::Format_YUYV: typeName = QLatin1String("Format_YUYV"); break; case QVideoFrame::Format_NV12: typeName = QLatin1String("Format_NV12"); break; case QVideoFrame::Format_NV21: typeName = QLatin1String("Format_NV21"); break; case QVideoFrame::Format_IMC1: typeName = QLatin1String("Format_IMC1"); break; case QVideoFrame::Format_IMC2: typeName = QLatin1String("Format_IMC2"); break; case QVideoFrame::Format_IMC3: typeName = QLatin1String("Format_IMC3"); break; case QVideoFrame::Format_IMC4: typeName = QLatin1String("Format_IMC4"); break; case QVideoFrame::Format_Y8: typeName = QLatin1String("Format_Y8"); break; case QVideoFrame::Format_Y16: typeName = QLatin1String("Format_Y16"); default: typeName = QString(QLatin1String("UserType(%1)" )).arg(int(f.pixelFormat())); } dbg.nospace() << "QVideoSurfaceFormat(" << typeName; dbg.nospace() << ", " << f.frameSize(); dbg.nospace() << ", viewport=" << f.viewport(); dbg.nospace() << ", pixelAspectRatio=" << f.pixelAspectRatio(); dbg.nospace() << ")"; foreach(const QByteArray& propertyName, f.propertyNames()) dbg << "\n " << propertyName.data() << " = " << f.property(propertyName.data()); return dbg.space(); }
//! [0] QDebug operator<<(QDebug dbg, const Coordinate &c) { dbg.nospace() << "(" << c.x() << ", " << c.y() << ")"; return dbg.space(); }
QDebug operator<<(QDebug dbg, const QDispatchSemaphore& s) { dbg.nospace() << "QDispatchSemaphore (no info available)"; return dbg.space(); }
QDebug operator<<(QDebug dbg, const QsVersion &version) { dbg.nospace() << version.toString(); return dbg.space(); }
QDebug operator<<(QDebug s, const AppStream::Launchable& launchable) { s.nospace() << "AppStream::Launchable(" << launchable.entries() << ")"; return s.space(); }
void RCircleEntity::print(QDebug dbg) const { dbg.nospace() << "RCircleEntity("; REntity::print(dbg); dbg.nospace() << ", center: " << getCenter(); // dbg.nospace() << ", radius: " << getRadius() << ")"; }
void RSpline::print(QDebug dbg) const { dbg.nospace() << "RSpline("; RShape::print(dbg); dbg.nospace() << ", degree: " << getDegree(); dbg.nospace() << ", order: " << getOrder(); dbg.nospace() << ", closed: " << isClosed(); dbg.nospace() << ", periodic: " << isPeriodic(); dbg.nospace() << ", start point: " << getStartPoint(); dbg.nospace() << ", end point: " << getEndPoint(); QList<RVector> controlPoints = getControlPointsWrapped(); dbg.nospace() << ",\ncontrolPoints (" << controlPoints.count() << "): "; for (int i=0; i<controlPoints.count(); ++i) { dbg.nospace() << i << ": " << controlPoints.at(i); } QList<RVector> fitPoints = getFitPoints(); dbg.nospace() << ",\nfitPoints (" << fitPoints.count() << "): "; for (int i=0; i<fitPoints.count(); ++i) { dbg.nospace() << i << ": " << fitPoints.at(i) << ", "; } QList<double> knotVector = getKnotVector(); dbg.nospace() << ",\nknots (" << knotVector.count() << "): "; for (int i=0; i<knotVector.count(); ++i) { dbg.nospace() << i << ": " << knotVector.at(i) << ", "; } knotVector = getActualKnotVector(); dbg.nospace() << ",\ninternally used knots (" << knotVector.count() << "): "; for (int i=0; i<knotVector.count(); ++i) { dbg.nospace() << i << ": " << knotVector.at(i) << ", "; } }
QDebug operator<<(QDebug dbg, const QGeoPositionInfo &info) { dbg.nospace() << "QGeoPositionInfo(" << info.d->timestamp; dbg.nospace() << ", "; dbg.nospace() << info.d->coord; QList<QGeoPositionInfo::Attribute> attribs = info.d->doubleAttribs.keys(); std::stable_sort(attribs.begin(), attribs.end()); // Output a sorted list from an unsorted hash. for (int i = 0; i < attribs.count(); ++i) { dbg.nospace() << ", "; switch (attribs[i]) { case QGeoPositionInfo::Direction: dbg.nospace() << "Direction="; break; case QGeoPositionInfo::GroundSpeed: dbg.nospace() << "GroundSpeed="; break; case QGeoPositionInfo::VerticalSpeed: dbg.nospace() << "VerticalSpeed="; break; case QGeoPositionInfo::MagneticVariation: dbg.nospace() << "MagneticVariation="; break; case QGeoPositionInfo::HorizontalAccuracy: dbg.nospace() << "HorizontalAccuracy="; break; case QGeoPositionInfo::VerticalAccuracy: dbg.nospace() << "VerticalAccuracy="; break; } dbg.nospace() << info.d->doubleAttribs[attribs[i]]; } dbg.nospace() << ')'; return dbg; }
QDebug operator<<(QDebug debug, TestView::MethodCall call) { return debug.nospace() << call.name << "(" << call.arguments.join(", ") << ")"; }
QDebug operator <<(QDebug debug, const AkPacket &packet) { debug.nospace() << packet.toString().toStdString().c_str(); return debug.space(); }
static void streamDebug(QDebug dbg, const QVariant &v) { switch(v.type()) { case QVariant::Cursor: #ifndef QT_NO_CURSOR // dbg.nospace() << qvariant_cast<QCursor>(v); //FIXME #endif break; case QVariant::Bitmap: // dbg.nospace() << qvariant_cast<QBitmap>(v); //FIXME break; case QVariant::Polygon: dbg.nospace() << qvariant_cast<QPolygon>(v); break; case QVariant::Region: dbg.nospace() << qvariant_cast<QRegion>(v); break; case QVariant::Font: // dbg.nospace() << qvariant_cast<QFont>(v); //FIXME break; case QVariant::Matrix: dbg.nospace() << qvariant_cast<QMatrix>(v); break; case QVariant::Transform: dbg.nospace() << qvariant_cast<QTransform>(v); break; case QVariant::Pixmap: // dbg.nospace() << qvariant_cast<QPixmap>(v); //FIXME break; case QVariant::Image: // dbg.nospace() << qvariant_cast<QImage>(v); //FIXME break; case QVariant::Brush: dbg.nospace() << qvariant_cast<QBrush>(v); break; case QVariant::Color: dbg.nospace() << qvariant_cast<QColor>(v); break; case QVariant::Palette: // dbg.nospace() << qvariant_cast<QPalette>(v); //FIXME break; #ifndef QT_NO_ICON case QVariant::Icon: // dbg.nospace() << qvariant_cast<QIcon>(v); // FIXME break; #endif case QVariant::SizePolicy: // dbg.nospace() << qvariant_cast<QSizePolicy>(v); //FIXME break; #ifndef QT_NO_SHORTCUT case QVariant::KeySequence: dbg.nospace() << qvariant_cast<QKeySequence>(v); break; #endif case QVariant::Pen: dbg.nospace() << qvariant_cast<QPen>(v); break; #ifndef QT_NO_MATRIX4X4 case QVariant::Matrix4x4: dbg.nospace() << qvariant_cast<QMatrix4x4>(v); break; #endif #ifndef QT_NO_VECTOR2D case QVariant::Vector2D: dbg.nospace() << qvariant_cast<QVector2D>(v); break; #endif #ifndef QT_NO_VECTOR3D case QVariant::Vector3D: dbg.nospace() << qvariant_cast<QVector3D>(v); break; #endif #ifndef QT_NO_VECTOR4D case QVariant::Vector4D: dbg.nospace() << qvariant_cast<QVector4D>(v); break; #endif #ifndef QT_NO_QUATERNION case QVariant::Quaternion: dbg.nospace() << qvariant_cast<QQuaternion>(v); break; #endif default: qcoreVariantHandler()->debugStream(dbg, v); break; } }
QDebug operator<<(QDebug s, const QNetworkCookie &cookie) { s.nospace() << "QNetworkCookie(" << cookie.toRawForm(QNetworkCookie::Full) << ')'; return s.space(); }
QT_BEGIN_NAMESPACE /*! \class QColor4ub \brief The QColor4ub class represents a color by four unsigned byte components. \since 4.8 \ingroup qt3d \ingroup qt3d::arrays OpenGL applications commonly use four unsigned byte values to compactly represent a color value. QColor4ub provides a convenience class for manipulating such compact color values. An alternative is to represent a color value as four floating-point values between 0.0 and 1.0. The QVector4D class can be used for that purpose if required. */ /*! \fn QColor4ub::QColor4ub() Constructs a four-byte default color value of (0, 0, 0, 255). */ /*! \fn QColor4ub::QColor4ub(int red, int green, int blue, int alpha) Constructs a four-byte color value with the components \a red, \a green, \a blue, and \a alpha. */ /*! \fn QColor4ub::QColor4ub(const QColor& color) Constructs a four-byte color value from \a color. */ /*! \fn QColor4ub::QColor4ub(Qt::GlobalColor color) Constructs a four-byte color value from \a color. */ /*! \fn QColor4ub::QColor4ub(QRgb rgba) Constructs a four-byte color value from the red, green, blue, and alpha components of \a rgba. */ /*! \fn QColor4ub& QColor4ub::operator=(const QColor& color) Copies the red, green, blue, and alpha components of \a color into this object. */ /*! \fn QColor4ub& QColor4ub::operator=(Qt::GlobalColor color) Copies the red, green, blue, and alpha components of the specified global \a color name into this object. */ /*! \fn int QColor4ub::red() const Returns the red component of this color, between 0 and 255. \sa green(), blue(), alpha(), setRed(), redF() */ /*! \fn int QColor4ub::green() const Returns the green component of this color, between 0 and 255. \sa red(), blue(), alpha(), setGreen(), greenF() */ /*! \fn int QColor4ub::blue() const Returns the blue component of this color, between 0 and 255. \sa red(), green(), alpha(), setBlue(), blueF() */ /*! \fn int QColor4ub::alpha() const Returns the alpha component of this color, between 0 and 255. \sa red(), green(), blue(), setAlpha(), alphaF() */ /*! \fn void QColor4ub::setRed(int value) Sets the red component of this color to \a value, between 0 and 255. \sa setGreen(), setBlue(), setAlpha(), red(), setRedF() */ /*! \fn void QColor4ub::setGreen(int value) Sets the green component of this color to \a value, between 0 and 255. \sa setRed(), setBlue(), setAlpha(), green(), setGreenF() */ /*! \fn void QColor4ub::setBlue(int value) Sets the blue component of this color to \a value, between 0 and 255. \sa setRed(), setGreen(), setAlpha(), blue(), setBlueF() */ /*! \fn void QColor4ub::setAlpha(int value) Sets the alpha component of this color to \a value, between 0 and 255. \sa setRed(), setGreen(), setBlue(), alpha(), setAlphaF() */ /*! \fn qreal QColor4ub::redF() const { return m_red / 255.0f; } Returns the red component of this color as a floating-point value between 0 and 1. \sa greenF(), blueF(), alphaF(), setRedF(), red() */ /*! \fn qreal QColor4ub::greenF() const { return m_green / 255.0f; } Returns the green component of this color as a floating-point value between 0 and 1. \sa redF(), blueF(), alphaF(), setGreenF(), green() */ /*! \fn qreal QColor4ub::blueF() const { return m_blue / 255.0f; } Returns the blue component of this color as a floating-point value between 0 and 1. \sa redF(), greenF(), alphaF(), setBlueF(), blue() */ /*! \fn qreal QColor4ub::alphaF() const { return m_alpha / 255.0f; } Returns the alpha component of this color as a floating-point value between 0 and 1. \sa redF(), greenF(), blueF(), setAlphaF(), alpha() */ /*! \fn void QColor4ub::setRedF(qreal value) Sets the red component of this color to a floating-point \a value, between 0 and 1. \sa setGreenF(), setBlueF(), setAlphaF(), redF(), setRed() */ /*! \fn void QColor4ub::setGreenF(qreal value) Sets the green component of this color to a floating-point \a value, between 0 and 1. \sa setRedF(), setBlueF(), setAlphaF(), greenF(), setGreen() */ /*! \fn void QColor4ub::setBlueF(qreal value) Sets the blue component of this color to a floating-point \a value, between 0 and 1. \sa setRedF(), setGreenF(), setAlphaF(), blueF(), setBlue() */ /*! \fn void QColor4ub::setAlphaF(qreal value) Sets the alpha component of this color to a floating-point \a value, between 0 and 1. \sa setRedF(), setGreenF(), setBlueF(), alphaF(), setAlpha() */ /*! \fn void QColor4ub::setRgb(int red, int green, int blue, int alpha) Sets the components of this color to \a red, \a green, \a blue, and \a alpha. Each component is between 0 and 255. \sa setRgbF(), fromRgb() */ /*! \fn void QColor4ub::setRgbF(qreal red, qreal green, qreal blue, qreal alpha) Sets the components of this color to \a red, \a green, \a blue, and \a alpha. Each component is a floating-point value between 0 and 1. \sa setRgb(), fromRgbF() */ /*! \fn QColor4ub QColor4ub::fromRgb(int red, int green, int blue, int alpha) Returns a QColor4ub with the components \a red, \a green, \a blue, and \a alpha. Each component is between 0 and 255. \sa fromRgbF(), setRgb() */ /*! \fn QColor4ub QColor4ub::fromRgbF(qreal red, qreal green, qreal blue, qreal alpha) Returns a QColor4ub with the components \a red, \a green, \a blue, and \a alpha. Each component is a floating-point value between 0 and 1. \sa fromRgb(), setRgbF() */ /*! \fn QColor4ub QColor4ub::fromRaw(const uchar *data) Returns a QColor4ub with components from the first four elements in \a data. The \a data parameter must contain at least four elements and not be null. */ /*! \fn QColor QColor4ub::toColor() const Returns this color as a QColor. */ /*! \fn bool QColor4ub::operator==(const QColor4ub& other) const Returns true if this color is the same as \a other; false otherwise. */ /*! \fn bool QColor4ub::operator!=(const QColor4ub& other) const Returns true if this color is not the same as \a other; false otherwise. */ #ifndef QT_NO_DEBUG_STREAM QDebug operator<<(QDebug dbg, const QColor4ub &color) { dbg.nospace() << "QColor4ub(" << color.redF() << ", " << color.greenF() << ", " << color.blueF() << ", " << color.alphaF() << ')'; return dbg.space(); }
QDebug operator<<(QDebug dbg, CollectionsModel::ModelDataItem & d) { dbg.nospace() << d.name; return dbg.space(); }
QDebug operator<<(QDebug debug, const HifiSockAddr& sockAddr) { debug.nospace() << sockAddr._address.toString().toLocal8Bit().constData() << ":" << sockAddr._port; return debug.space(); }
QDebug operator<<(QDebug dbg, QList<CollectionsModel::ModelDataItem> & d) { foreach(const CollectionsModel::ModelDataItem& dd, d) dbg.nospace() << dd.name << " "; return dbg.space(); }
QDebug operator<<(QDebug dbg, const Note ¬e) { dbg.nospace() << "Note: <id>" << note.id << " <name>" << note.name << " <fileName>" << note.fileName << " <hasDirtyData>" << note.hasDirtyData; return dbg.space(); }
QDebug operator<< (QDebug s, const MyPoint& point) { const QDebugStateSaver saver(s); return s.nospace() << "MyPoint(" << point.v1 << ", " << point.v2 << ")"; }
/** * Stream operator for QDebug */ QDebug operator<<(QDebug dbg, const RVector& v) { dbg.nospace() << "RVector(" << v.x << ", " << v.y << ", " << v.z << ", " << v.valid << ")"; return dbg; }
QDebug operator<< (QDebug s, const MyLine& line) { const QDebugStateSaver saver(s); s.nospace() << "MyLine(" << line.p1 << ", " << line.p2 << ")"; return s; }
QDebug operator<<(QDebug dbg, CalcObject *c) { dbg.nospace() << c->getOperator(); return dbg.space(); }
QDebug operator<<(QDebug dbg, const QSizePolicy &p) { dbg.nospace() << "QSizePolicy(horizontalPolicy = " << p.horizontalPolicy() << ", verticalPolicy = " << p.verticalPolicy() << ')'; return dbg.space(); }