Changeset View
Changeset View
Standalone View
Standalone View
src/doctor/doctor.cpp
Show First 20 Lines • Show All 364 Lines • ▼ Show 20 Line(s) | 346 | Q_FOREACH (const auto &output, m_config->outputs()) { | |||
---|---|---|---|---|---|
365 | } | 365 | } | ||
366 | const auto g = output->geometry(); | 366 | const auto g = output->geometry(); | ||
367 | cout << yellow << "Geometry: " << cr << g.x() << "," << g.y() << " " << g.width() << "x" << g.height() << " "; | 367 | cout << yellow << "Geometry: " << cr << g.x() << "," << g.y() << " " << g.width() << "x" << g.height() << " "; | ||
368 | cout << yellow << "Scale: " << cr << output->scale() << " "; | 368 | cout << yellow << "Scale: " << cr << output->scale() << " "; | ||
369 | cout << yellow << "Rotation: " << cr << output->rotation() << " "; | 369 | cout << yellow << "Rotation: " << cr << output->rotation() << " "; | ||
370 | if (output->isPrimary()) { | 370 | if (output->isPrimary()) { | ||
371 | cout << blue << "primary"; | 371 | cout << blue << "primary"; | ||
372 | } | 372 | } | ||
373 | cout << endl; | 373 | cout << cr << endl; | ||
374 | } | 374 | } | ||
375 | } | 375 | } | ||
376 | 376 | | |||
377 | void Doctor::showJson() const | 377 | void Doctor::showJson() const | ||
378 | { | 378 | { | ||
379 | QJsonDocument doc(KScreen::ConfigSerializer::serializeConfig(m_config)); | 379 | QJsonDocument doc(KScreen::ConfigSerializer::serializeConfig(m_config)); | ||
380 | cout << doc.toJson(QJsonDocument::Indented); | 380 | cout << doc.toJson(QJsonDocument::Indented); | ||
381 | } | 381 | } | ||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |