本文整理汇总了C++中QDebug::resetFormat方法的典型用法代码示例。如果您正苦于以下问题:C++ QDebug::resetFormat方法的具体用法?C++ QDebug::resetFormat怎么用?C++ QDebug::resetFormat使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDebug
的用法示例。
在下文中一共展示了QDebug::resetFormat方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: saver
QDebug operator<<(QDebug s, const QNetworkCookie &cookie)
{
QDebugStateSaver saver(s);
s.resetFormat().nospace();
s << "QNetworkCookie(" << cookie.toRawForm(QNetworkCookie::Full) << ')';
return s;
}
示例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 debug, const QSslCipher &cipher)
{
QDebugStateSaver saver(debug);
debug.resetFormat().nospace().noquote();
debug << "QSslCipher(name=" << cipher.name()
<< ", bits=" << cipher.usedBits()
<< ", proto=" << cipher.protocolString()
<< ')';
return debug;
}
示例4: saver
QDebug operator<<(QDebug debug, const QSslKey &key)
{
QDebugStateSaver saver(debug);
debug.resetFormat().nospace();
debug << "QSslKey("
<< (key.type() == QSsl::PublicKey ? "PublicKey" : "PrivateKey")
<< ", " << (key.algorithm() == QSsl::Opaque ? "OPAQUE" :
(key.algorithm() == QSsl::Rsa ? "RSA" : ((key.algorithm() == QSsl::Dsa) ? "DSA" : "EC")))
<< ", " << key.length()
<< ')';
return debug;
}
示例5: saver
QDebug operator<<(QDebug debug, const QSslCertificate &certificate)
{
QDebugStateSaver saver(debug);
debug.resetFormat().nospace();
debug << "QSslCertificate("
<< certificate.version()
<< ", " << certificate.serialNumber()
<< ", " << certificate.digest().toBase64()
<< ", " << certificate.issuerInfo(QSslCertificate::Organization)
<< ", " << certificate.subjectInfo(QSslCertificate::Organization)
<< ", " << certificate.subjectAlternativeNames()
#ifndef QT_NO_DATESTRING
<< ", " << certificate.effectiveDate()
<< ", " << certificate.expiryDate()
#endif
<< ')';
return debug;
}