当前位置: 首页>>代码示例>>C++>>正文


C++ QDebug::maybeSpace方法代码示例

本文整理汇总了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();
}
开发者ID:Bridges,项目名称:libnm-qt5,代码行数:26,代码来源:pppsetting.cpp

示例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();
}
开发者ID:Eric013,项目名称:slowmoVideo,代码行数:7,代码来源:nodeList_sV.cpp

示例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();
}
开发者ID:02JanDal,项目名称:QMarkdown,代码行数:25,代码来源:QMarkdown.cpp

示例4:

QDebug operator<<(QDebug dbg, const Palette &palette)
{
	dbg.nospace() << "Palette(" << palette.color() << ", " << palette.shift()
	  << ")";

	return dbg.maybeSpace();
}
开发者ID:tumic0,项目名称:GPXSee,代码行数:7,代码来源:palette.cpp

示例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();
}
开发者ID:gokhanuzunbas,项目名称:CTK,代码行数:7,代码来源:ctkPlugin.cpp

示例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();
}
开发者ID:benoitbleuze,项目名称:CTK,代码行数:8,代码来源:ctkPluginEvent.cpp

示例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();
}
开发者ID:benoitbleuze,项目名称:CTK,代码行数:8,代码来源:ctkConfigurationEvent.cpp

示例8:

QDebug operator<<( QDebug dbg, const QgsInterval &interval )
{
  if ( !interval.isValid() )
    dbg.nospace() << "QgsInterval()";
  else
    dbg.nospace() << "QgsInterval(" << interval.seconds() << ")";
  return dbg.maybeSpace();
}
开发者ID:alexbruy,项目名称:QGIS,代码行数:8,代码来源:qgsinterval.cpp

示例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();
}
开发者ID:bavanisp,项目名称:qtmobility-1.1.0,代码行数:8,代码来源:qcontact.cpp

示例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();
}
开发者ID:RobinWuDev,项目名称:Qt,代码行数:11,代码来源:buffer3d.cpp

示例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();
}
开发者ID:,项目名称:,代码行数:8,代码来源:

示例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);
}
开发者ID:abhinavtankha,项目名称:mixxx,代码行数:8,代码来源:coverart.cpp

示例13:

QDebug operator<<(QDebug debug, const Alert &alert)
{
    if (alert.isValid()) {
        debug << "Snore::Alert(" << alert.name() << ")" ;
    } else {
        debug << "Snore::Alert(0x00)" ;
    }
    return debug.maybeSpace();
}
开发者ID:gaoxiaojun,项目名称:Snorenotify,代码行数:9,代码来源:alert.cpp

示例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();
}
开发者ID:Jinxiaohai,项目名称:QT,代码行数:9,代码来源:entityinstance.cpp

示例15:

QDebug operator<< ( QDebug dbg, const SipInfo& info )
{
    if( !info.isValid() )
        dbg.nospace() << "info is invalid";
    else
        dbg.nospace() << info.toJson();

    return dbg.maybeSpace();
}
开发者ID:Pritoj,项目名称:tomahawk,代码行数:9,代码来源:sipinfo.cpp


注:本文中的QDebug::maybeSpace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。