MCPcopy Create free account
hub / github.com/KDAB/GammaRay / exportModLogConfig

Method exportModLogConfig

ui/tools/messagehandler/messagehandlerwidget.cpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252void MessageHandlerWidget::exportModLogConfig()
253{
254 QByteArray config;
255 auto model = ui->categoriesView->model();
256 model->metaObject()->invokeMethod(model, "exportLoggingConfig", Q_RETURN_ARG(QByteArray, config), Q_ARG(bool, false), Q_ARG(bool, false));
257 QString env = QLatin1String("QT_LOGGING_RULES='") + QString::fromLatin1(config) + QLatin1Char('\'');
258 QGuiApplication::clipboard()->setText(env);
259}

Callers

nothing calls this directly

Calls 4

modelMethod · 0.45
invokeMethodMethod · 0.45
metaObjectMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected