本文整理汇总了C++中QDebug::nospace方法的典型用法代码示例。如果您正苦于以下问题:C++ QDebug::nospace方法的具体用法?C++ QDebug::nospace怎么用?C++ QDebug::nospace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDebug
的用法示例。
在下文中一共展示了QDebug::nospace方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: print
void RTextEntity::print(QDebug dbg) const {
dbg.nospace() << "RTextEntity(";
RTextBasedEntity::print(dbg);
dbg.nospace() << ")";
}
示例2:
SYMBIANUTILS_EXPORT QDebug operator<<(QDebug d, const SymbianDevice &cd)
{
d.nospace() << cd.toString();
return d;
}
示例3: foreach
QDebug operator<<(QDebug dbg, QList<DataModel::ModelDataItem> & d) {
foreach(const DataModel::ModelDataItem& dd, d)
dbg.nospace() << dd.name << " ";
return dbg.space();
}
示例4: return
QDebug operator <<(QDebug debug, const QDeclarativeChangeSet::Insert &insert)
{
return (debug.nospace() << "Insert(" << insert.index << "," << insert.count << "," << insert.moveId << ")").space();
}
示例5:
QDebug operator<<(QDebug debug, WirelessAccessPoint *accessPoint)
{
return debug.nospace() << "AccessPoint(" << accessPoint->signalStrength() << "%, " << accessPoint->frequency()<< " GHz, " << accessPoint->ssid() << ", " << (accessPoint->isProtected() ? "protected" : "open" ) << ")";
}
示例6:
/*! Writes the eventTypeId and the deviceId of the given \a event to \a dbg. */
QDebug operator<<(QDebug dbg, const Event &event)
{
dbg.nospace() << "Event(EventTypeId: " << event.eventTypeId().toString() << ", DeviceId" << event.deviceId().toString() << ")";
return dbg.space();
}
示例7: switch
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();
//.........这里部分代码省略.........
示例8:
QDebug operator<<(QDebug debug, const VariantProperty &VariantProperty)
{
return debug.nospace() << "VariantProperty(" << VariantProperty.name() << ')';
}
示例9: PropertyName
QDebug operator<<(QDebug debug, const NodeAbstractProperty &property)
{
return debug.nospace() << "NodeAbstractProperty(" << (property.isValid() ? property.name() : PropertyName("invalid")) << ')';
}
示例10: streamDebug
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;
}
}
示例11:
QDebug operator<<(QDebug s, const QNetworkCookie &cookie)
{
s.nospace() << "QNetworkCookie(" << cookie.toRawForm(QNetworkCookie::Full) << ')';
return s.space();
}
示例12:
QDebug operator<<(QDebug dbg, const DrugsDB::DrugInteractionQuery &c)
{
dbg.nospace() << c.warnText();
return dbg.space();
}
示例13:
QDebug operator<<(QDebug debug, const Assignment &assignment) {
debug << "T:" << assignment.getType();
return debug.nospace();
}
示例14:
inline QDebug operator<<(QDebug dbg, const MimeType &mime)
{
dbg.nospace() << "MimeType(mimeType=" << mime.mimeType() << ", mediaType=" << mime.mediaType() << ", subType=" << mime.subType() << ")";
return dbg.space();
}
示例15:
QDebug operator<<(QDebug dbg, const QVector3D &vector)
{
dbg.nospace() << "QVector3D("
<< vector.x() << ", " << vector.y() << ", " << vector.z() << ')';
return dbg.space();
}