MCPcopy Create free account
hub / github.com/baldurk/renderdoc / DocumentReport

Method DocumentReport

qrenderdoc/Code/Interface/Analytics.cpp:518–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518void Analytics::DocumentReport()
519{
520 Analytics dummyDB;
521 QVariantMap dummyMap;
522 AnalyticsSerialise(dummyDB, dummyMap, AnalyticsSerialiseType::Documenting);
523 QString reportText = dummyMap[lit("doc")].toString();
524
525 {
526 QDialog dialog;
527 dialog.setWindowTitle(lit("Sample Analytics Report"));
528 dialog.setWindowFlags(dialog.windowFlags() & ~Qt::WindowContextHelpButtonHint);
529 dialog.setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
530 dialog.setFixedSize(600, 500);
531
532 QDialogButtonBox buttons;
533 buttons.addButton(QDialogButtonBox::Ok);
534 QObject::connect(&buttons, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
535
536 QTextEdit report;
537 report.setReadOnly(true);
538 report.setAcceptRichText(true);
539 report.setText(reportText);
540
541 QVBoxLayout layout;
542
543 layout.addWidget(&report);
544 layout.addWidget(&buttons);
545
546 dialog.setLayout(&layout);
547
548 RDDialog::show(&dialog);
549 }
550}
551
552void Analytics::Prompt(ICaptureContext &ctx, PersistantConfig &config)
553{

Callers

nothing calls this directly

Calls 9

AnalyticsSerialiseFunction · 0.85
connectFunction · 0.85
setWindowTitleMethod · 0.80
windowFlagsMethod · 0.80
setSizePolicyMethod · 0.80
setReadOnlyMethod · 0.80
showFunction · 0.50
toStringMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected