Changeset View
Changeset View
Standalone View
Standalone View
console/console.cpp
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Line(s) | 139 | switch (type) { | |||
---|---|---|---|---|---|
160 | case Output::TVComponent: | 160 | case Output::TVComponent: | ||
161 | return QStringLiteral("TV-Component"); | 161 | return QStringLiteral("TV-Component"); | ||
162 | case Output::TVSCART: | 162 | case Output::TVSCART: | ||
163 | return QStringLiteral("TV-SCART"); | 163 | return QStringLiteral("TV-SCART"); | ||
164 | case Output::TVC4: | 164 | case Output::TVC4: | ||
165 | return QStringLiteral("TV-C4"); | 165 | return QStringLiteral("TV-C4"); | ||
166 | case Output::DisplayPort: | 166 | case Output::DisplayPort: | ||
167 | return QStringLiteral("DisplayPort"); | 167 | return QStringLiteral("DisplayPort"); | ||
168 | default: | | |||
169 | return QStringLiteral("Invalid Type"); | | |||
170 | 168 | | |||
171 | }; | 169 | }; | ||
170 | return QStringLiteral("Invalid Type") + QString::number(type); | ||||
172 | } | 171 | } | ||
173 | 172 | | |||
174 | void Console::printJSONConfig() | 173 | void Console::printJSONConfig() | ||
175 | { | 174 | { | ||
176 | QJsonDocument doc(KScreen::ConfigSerializer::serializeConfig(m_config)); | 175 | QJsonDocument doc(KScreen::ConfigSerializer::serializeConfig(m_config)); | ||
177 | qDebug() << doc.toJson(QJsonDocument::Indented); | 176 | qDebug() << doc.toJson(QJsonDocument::Indented); | ||
178 | } | 177 | } | ||
179 | 178 | | |||
Show All 36 Lines |