本文整理汇总了C++中QDebug::noquote方法的典型用法代码示例。如果您正苦于以下问题:C++ QDebug::noquote方法的具体用法?C++ QDebug::noquote怎么用?C++ QDebug::noquote使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDebug
的用法示例。
在下文中一共展示了QDebug::noquote方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch
Z_END_NAMESPACE
QDebug operator<<(QDebug deg, const ZVariant &var)
{
deg.nospace() << "Variant(" << var.typeName() << ", ";
switch(var.type()) {
case ZVariant::Object:
deg.nospace() << var.toObject();
break;
case ZVariant::Function:
deg.nospace() << var.toFunction();
break;
case ZVariant::Undefined:
deg.nospace() << var.typeName();
break;
case ZVariant::List:
case ZVariant::Tuple:
deg.noquote() << var.toList();
break;
case ZVariant::Int:
case ZVariant::Double:
deg.noquote() << var.toDouble();
break;
default:
deg.nospace() << var.toString();
break;
}
deg.nospace() << ")";
return deg;
}
示例2:
QDebug operator<<(QDebug d, const mpq_rational& r) {
d.nospace();
d.noquote();
stringstream s;
s << r;
d << QString::fromStdString(s.str());
return d.resetFormat();
}
示例3: saver
QDebug operator<<(QDebug dbg, const QFileInfo &fi)
{
QDebugStateSaver saver(dbg);
dbg.nospace();
dbg.noquote();
dbg << "QFileInfo(" << QDir::toNativeSeparators(fi.filePath()) << ')';
return dbg;
}
示例4: saver
QDebug operator<<(QDebug dbg, const QSqlDatabase &d)
{
QDebugStateSaver saver(dbg);
dbg.nospace();
dbg.noquote();
if (!d.isValid()) {
dbg << "QSqlDatabase(invalid)";
return dbg;
}
dbg << "QSqlDatabase(driver=\"" << d.driverName() << "\", database=\""
<< d.databaseName() << "\", host=\"" << d.hostName() << "\", port=" << d.port()
<< ", user=\"" << d.userName() << "\", open=" << d.isOpen() << ')';
return dbg;
}
示例5: saver
QDebug operator<<(QDebug debug, const QTouchDevice *device)
{
QDebugStateSaver saver(debug);
debug.nospace();
debug.noquote();
debug << "QTouchDevice(";
if (device) {
debug << '"' << device->name() << "\", type=";
QtDebugUtils::formatQEnum(debug, device->type());
debug << ", capabilities=";
QtDebugUtils::formatQFlags(debug, device->capabilities());
debug << ", maximumTouchPoints=" << device->maximumTouchPoints();
} else {
debug << '0';
}
debug << ')';
return debug;
}
示例6: saver
QDebug operator<<(QDebug debug, const QWinJumpListCategory *category)
{
QDebugStateSaver saver(debug);
debug.nospace();
debug.noquote();
debug << "QWinJumpListCategory(";
if (category) {
debug << "type=" << category->type() << ", isVisible="
<< category->isVisible() << ", title=\"" << category->title()
<< "\", items=" << category->items();
} else {
debug << '0';
}
debug << ')';
return debug;
return debug;
}