Commit 5058d5d1 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Provide more information about colord devices

This helps a lot with identifying outputs in the color corrections kcm.
parent 27e2e851
......@@ -44,6 +44,25 @@ void ColordIntegration::handleOutputAdded(AbstractOutput *output)
properties.insert(QStringLiteral("Kind"), QStringLiteral("display"));
properties.insert(QStringLiteral("Colorspace"), QStringLiteral("RGB"));
const QString vendor = output->manufacturer();
if (!vendor.isEmpty()) {
properties.insert(QStringLiteral("Vendor"), vendor);
const QString model = output->model();
if (!model.isEmpty()) {
properties.insert(QStringLiteral("Model"), model);
const QString serialNumber = output->serialNumber();
if (!serialNumber.isEmpty()) {
properties.insert(QStringLiteral("Serial"), serialNumber);
if (output->isInternal()) {
properties.insert(QStringLiteral("Embedded"), QString());
QDBusPendingReply<QDBusObjectPath> reply =
m_colordInterface->CreateDevice(output->name(), QStringLiteral("temp"), properties);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment