Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
5058d5d1
Commit
5058d5d1
authored
Nov 24, 2020
by
Vlad Zahorodnii
Browse files
Provide more information about colord devices
This helps a lot with identifying outputs in the color corrections kcm.
parent
27e2e851
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/colord-integration/colordintegration.cpp
View file @
5058d5d1
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment