本文整理汇总了C++中JsonArray::isEmpty方法的典型用法代码示例。如果您正苦于以下问题:C++ JsonArray::isEmpty方法的具体用法?C++ JsonArray::isEmpty怎么用?C++ JsonArray::isEmpty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JsonArray
的用法示例。
在下文中一共展示了JsonArray::isEmpty方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _loadLayoutConfig
//.........这里部分代码省略.........
layout->m_equipPointFontRed.tryParse(playerConfig["equipPointFont"]);
tryParse(playerConfig["delayedTrickFirstRegion"], layout->m_delayedTrickFirstRegion);
tryParse(playerConfig["delayedTrickStep"], layout->m_delayedTrickStep);
layout->m_markTextArea.tryParse(playerConfig["markTextArea"]);
tryParse(playerConfig["roleComboBoxPos"], layout->m_roleComboBoxPos);
tryParse(playerConfig["avatarArea"], layout->m_avatarArea);
tryParse(playerConfig["secondaryAvatarArea"], layout->m_smallAvatarArea);
tryParse(playerConfig["circleArea"], layout->m_circleArea);
tryParse(playerConfig["avatarImageType"], layout->m_avatarSize);
tryParse(playerConfig["secondaryAvatarImageType"], layout->m_smallAvatarSize);
tryParse(playerConfig["primaryAvatarImageType"], layout->m_primaryAvatarSize);
tryParse(playerConfig["circleImageType"], layout->m_circleImageSize);
tryParse(playerConfig["avatarNameArea"], layout->m_avatarNameArea);
layout->m_avatarNameFont.tryParse(playerConfig["avatarNameFont"]);
tryParse(playerConfig["smallAvatarNameArea"], layout->m_smallAvatarNameArea);
layout->m_smallAvatarNameFont.tryParse(playerConfig["smallAvatarNameFont"]);
tryParse(playerConfig["kingdomMaskArea"], layout->m_kingdomMaskArea);
tryParse(playerConfig["kingdomIconArea"], layout->m_kingdomIconArea);
layout->m_handCardFont.tryParse(playerConfig["handCardFont"]);
tryParse(playerConfig["screenNameArea"], layout->m_screenNameArea);
layout->m_screenNameFont.tryParse(playerConfig["screenNameFont"]);
layout->m_progressBarArea.tryParse(playerConfig["progressBarArea"]);
tryParse(playerConfig["progressBarHorizontal"], layout->m_isProgressBarHorizontal);
tryParse(playerConfig["magatamaSize"], layout->m_magatamaSize);
tryParse(playerConfig["magatamaImageArea"], layout->m_magatamaImageArea);
tryParse(playerConfig["magatamasHorizontal"], layout->m_magatamasHorizontal);
tryParse(playerConfig["magatamasBgVisible"], layout->m_magatamasBgVisible);
JsonArray magatamasAnchor = playerConfig["magatamasAnchor"].value<JsonArray>();
if (!magatamasAnchor.isEmpty()) {
if (magatamasAnchor.size() > 1)
tryParse(magatamasAnchor[1], layout->m_magatamasAnchor);
if (JsonUtils::isString(magatamasAnchor[0]))
tryParse(magatamasAnchor[0], layout->m_magatamasAlign);
}
layout->m_phaseArea.tryParse(playerConfig["phaseArea"]);
tryParse(playerConfig["privatePileStartPos"], layout->m_privatePileStartPos);
tryParse(playerConfig["privatePileStep"], layout->m_privatePileStep);
tryParse(playerConfig["privatePileButtonSize"], layout->m_privatePileButtonSize);
tryParse(playerConfig["actionedIconRegion"], layout->m_actionedIconRegion);
tryParse(playerConfig["saveMeIconRegion"], layout->m_saveMeIconRegion);
tryParse(playerConfig["chainedIconRegion"], layout->m_chainedIconRegion);
layout->m_deathIconRegion.tryParse(playerConfig["deathIconRegion"]);
tryParse(playerConfig["votesIconRegion"], layout->m_votesIconRegion);
tryParse(playerConfig["drankMaskColor"], layout->m_drankMaskColor);
tryParse(playerConfig["duanchangMaskColor"], layout->m_duanchangMaskColor);
tryParse(playerConfig["deathEffectColor"], layout->m_deathEffectColor);
tryParse(playerConfig["extraSkillArea"], layout->m_extraSkillArea);
layout->m_extraSkillFont.tryParse(playerConfig["extraSkillFont"]);
tryParse(playerConfig["extraSkillTextArea"], layout->m_extraSkillTextArea);
}
config = layoutConfig[S_SKIN_KEY_PHOTO].value<JsonObject>();
tryParse(config["normalWidth"], _m_photoLayout.m_normalWidth);
if (!tryParse(config["focusFrameArea"], _m_photoLayout.m_focusFrameArea)
&& isNumber(config["borderWidth"])) {
int borderWidth = 0;
tryParse(config["borderWidth"], borderWidth);
_m_photoLayout.m_focusFrameArea = QRect(-borderWidth, -borderWidth,