本文整理汇总了C++中QDebug::maybeSpace方法的典型用法代码示例。如果您正苦于以下问题:C++ QDebug::maybeSpace方法的具体用法?C++ QDebug::maybeSpace怎么用?C++ QDebug::maybeSpace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDebug
的用法示例。
在下文中一共展示了QDebug::maybeSpace方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
QDebug NetworkManager::operator <<(QDebug dbg, const NetworkManager::PppSetting &setting)
{
dbg.nospace() << "type: " << setting.typeAsString(setting.type()) << '\n';
dbg.nospace() << "initialized: " << !setting.isNull() << '\n';
dbg.nospace() << NM_SETTING_PPP_NOAUTH << ": " << setting.noAuth() << '\n';
dbg.nospace() << NM_SETTING_PPP_REFUSE_EAP << ": " << setting.refuseEap() << '\n';
dbg.nospace() << NM_SETTING_PPP_REFUSE_PAP << ": " << setting.refusePap() << '\n';
dbg.nospace() << NM_SETTING_PPP_REFUSE_CHAP << ": " << setting.refuseChap() << '\n';
dbg.nospace() << NM_SETTING_PPP_REFUSE_MSCHAP << ": " << setting.refuseMschap() << '\n';
dbg.nospace() << NM_SETTING_PPP_REFUSE_MSCHAPV2 << ": " << setting.refuseMschapv2() << '\n';
dbg.nospace() << NM_SETTING_PPP_NOBSDCOMP << ": " << setting.noBsdComp() << '\n';
dbg.nospace() << NM_SETTING_PPP_NODEFLATE << ": " << setting.noDeflate() << '\n';
dbg.nospace() << NM_SETTING_PPP_NO_VJ_COMP << ": " << setting.noVjComp() << '\n';
dbg.nospace() << NM_SETTING_PPP_REQUIRE_MPPE << ": " << setting.requireMppe() << '\n';
dbg.nospace() << NM_SETTING_PPP_REQUIRE_MPPE_128 << ": " << setting.requireMppe128() << '\n';
dbg.nospace() << NM_SETTING_PPP_MPPE_STATEFUL << ": " << setting.mppeStateful() << '\n';
dbg.nospace() << NM_SETTING_PPP_CRTSCTS << ": " << setting.cRtsCts() << '\n';
dbg.nospace() << NM_SETTING_PPP_BAUD << ": " << setting.baud() << '\n';
dbg.nospace() << NM_SETTING_PPP_MRU << ": " << setting.mru() << '\n';
dbg.nospace() << NM_SETTING_PPP_MTU << ": " << setting.mtu() << '\n';
dbg.nospace() << NM_SETTING_PPP_LCP_ECHO_FAILURE << ": " << setting.lcpEchoFailure() << '\n';
dbg.nospace() << NM_SETTING_PPP_LCP_ECHO_INTERVAL << ": " << setting.lcpEchoInterval() << '\n';
return dbg.maybeSpace();
}
示例2:
QDebug operator<<(QDebug dbg, const NodeList_sV &list)
{
for (int i = 0; i < list.size(); i++) {
dbg.nospace() << i << ": " << list.at(i) << " ";
}
return dbg.maybeSpace();
}
示例3:
QDebug operator<<(QDebug dbg, QGithubMarkdown::Token::Type type)
{
switch (type)
{
case QGithubMarkdown::Token::Character: dbg.nospace() << "Character"; break;
case QGithubMarkdown::Token::NewLine: dbg.nospace() << "NewLine"; break;
case QGithubMarkdown::Token::HeadingStart: dbg.nospace() << "HeadingStart"; break;
case QGithubMarkdown::Token::QuoteStart: dbg.nospace() << "QuoteStart"; break;
case QGithubMarkdown::Token::CodeDelimiter: dbg.nospace() << "CodeDelimiter"; break;
case QGithubMarkdown::Token::InlineCodeDelimiter: dbg.nospace() << "InlineCodeDelimiter"; break;
case QGithubMarkdown::Token::Bold: dbg.nospace() << "Bold"; break;
case QGithubMarkdown::Token::Italic: dbg.nospace() << "Italic"; break;
case QGithubMarkdown::Token::ImageStart: dbg.nospace() << "ImageStart"; break;
case QGithubMarkdown::Token::LinkStart: dbg.nospace() << "LinkStart"; break;
case QGithubMarkdown::Token::LinkMiddle: dbg.nospace() << "LinkMiddle"; break;
case QGithubMarkdown::Token::LinkEnd: dbg.nospace() << "LinkEnd"; break;
case QGithubMarkdown::Token::UnorderedListStart: dbg.nospace() << "UnorderedListStart"; break;
case QGithubMarkdown::Token::OrderedListStart: dbg.nospace() << "OrderedListStart"; break;
case QGithubMarkdown::Token::HtmlTagOpen: dbg.nospace() << "HtmlTagOpen"; break;
case QGithubMarkdown::Token::HtmlTagClose: dbg.nospace() << "HtmlTagClose"; break;
case QGithubMarkdown::Token::Invalid: dbg.nospace() << "Invalid"; break;
case QGithubMarkdown::Token::EOD: dbg.nospace() << "EOD"; break;
}
return dbg.maybeSpace();
}
示例4:
QDebug operator<<(QDebug dbg, const Palette &palette)
{
dbg.nospace() << "Palette(" << palette.color() << ", " << palette.shift()
<< ")";
return dbg.maybeSpace();
}
示例5:
QDebug operator<<(QDebug debug, const ctkPlugin& plugin)
{
debug.nospace() << "ctkPlugin[" << "id=" << plugin.getPluginId() <<
", state=" << plugin.getState() << ", loc=" << plugin.getLocation() <<
", symName=" << plugin.getSymbolicName() << "]";
return debug.maybeSpace();
}
示例6:
QDebug operator<<(QDebug debug, const ctkPluginEvent& event)
{
if (event.isNull()) return debug << "NONE";
QSharedPointer<ctkPlugin> p = event.getPlugin();
debug.nospace() << event.getType() << " #" << p->getPluginId() << " (" << p->getLocation() << ")";
return debug.maybeSpace();
}
示例7:
QDebug operator<<(QDebug dbg, const ctkConfigurationEvent& event)
{
if (event.isNull()) return dbg << "NONE";
dbg.nospace() << event.getType() << (event.getFactoryPid().isEmpty() ? " " : event.getFactoryPid() + ", ")
<< "pid=" << event.getPid();
return dbg.maybeSpace();
}
示例8:
QDebug operator<<( QDebug dbg, const QgsInterval &interval )
{
if ( !interval.isValid() )
dbg.nospace() << "QgsInterval()";
else
dbg.nospace() << "QgsInterval(" << interval.seconds() << ")";
return dbg.maybeSpace();
}
示例9: foreach
QDebug operator<<(QDebug dbg, const QContact& contact)
{
dbg.nospace() << "QContact(" << contact.id() << ")";
foreach (const QContactDetail& detail, contact.details()) {
dbg.space() << '\n' << detail;
}
return dbg.maybeSpace();
}
示例10:
/*!
* \internal
*/
QDebug operator<<(QDebug dbg, const CanvasBuffer *buffer)
{
if (buffer)
dbg.nospace() << "Canvas3DBuffer("<< buffer->name() <<", id:" << buffer->m_bufferId << ")";
else
dbg.nospace() << "Canvas3DBuffer("<< ((void*) buffer) <<")";
return dbg.maybeSpace();
}
示例11:
QDebug operator<<(QDebug dbg, const CanvasTexture *texture)
{
if (texture)
dbg.nospace() << "Canvas3DTexture("<< ((void*) texture) << ", name:" << texture->name() << ", id:" << texture->textureId() << ")";
else
dbg.nospace() << "Canvas3DTexture("<< ((void*) texture) <<")";
return dbg.maybeSpace();
}
示例12: QString
QDebug operator<<(QDebug dbg, const CoverInfo& info) {
return dbg.maybeSpace() << QString("CoverInfo(%1,%2,%3,%4,%5,%6)")
.arg(typeToString(info.type))
.arg(sourceToString(info.source))
.arg(info.coverLocation)
.arg(QString::number(info.hash))
.arg(info.trackLocation);
}
示例13:
QDebug operator<<(QDebug debug, const Alert &alert)
{
if (alert.isValid()) {
debug << "Snore::Alert(" << alert.name() << ")" ;
} else {
debug << "Snore::Alert(0x00)" ;
}
return debug.maybeSpace();
}
示例14: foreach
QDebug operator<<(QDebug dbg, const EntityInstance &instance)
{
dbg.nospace()<<"\r\n{";
foreach(int p, instance.properties()){
dbg.nospace()<<p<<":"<<instance.get(p)<<";\r\n";
}
dbg.nospace()<<"}";
return dbg.maybeSpace();
}
示例15:
QDebug operator<< ( QDebug dbg, const SipInfo& info )
{
if( !info.isValid() )
dbg.nospace() << "info is invalid";
else
dbg.nospace() << info.toJson();
return dbg.maybeSpace();
}