| 135 | } |
| 136 | |
| 137 | bool DebuggerView::fromJson(const JsonValueWrapper& json) |
| 138 | { |
| 139 | auto custom_display_name = json.value().FindMember("customDisplayName"); |
| 140 | if (custom_display_name != json.value().MemberEnd() && custom_display_name->value.IsString()) |
| 141 | { |
| 142 | m_custom_display_name = QString(custom_display_name->value.GetString()); |
| 143 | m_custom_display_name.truncate(DockUtils::MAX_DOCK_WIDGET_NAME_SIZE); |
| 144 | } |
| 145 | |
| 146 | auto is_primary = json.value().FindMember("isPrimary"); |
| 147 | if (is_primary != json.value().MemberEnd() && is_primary->value.IsBool()) |
| 148 | m_is_primary = is_primary->value.GetBool(); |
| 149 | |
| 150 | return true; |
| 151 | } |
| 152 | |
| 153 | void DebuggerView::switchToThisTab() |
| 154 | { |
nothing calls this directly
no test coverage detected