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
libkscreen
Commits
eac43163
Commit
eac43163
authored
Oct 23, 2020
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
Oct 29, 2020
Browse files
KScreen::Output debug output readability
parent
0ce4720e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/output.cpp
View file @
eac43163
...
...
@@ -691,21 +691,25 @@ void Output::apply(const OutputPtr& other)
QDebug
operator
<<
(
QDebug
dbg
,
const
KScreen
::
OutputPtr
&
output
)
{
if
(
output
)
{
dbg
<<
"KScreen::Output("
<<
output
->
id
()
<<
" "
<<
output
->
name
()
<<
(
output
->
isConnected
()
?
"connected"
:
"disconnected"
)
<<
(
output
->
isEnabled
()
?
"enabled"
:
"disabled"
)
<<
(
output
->
isPrimary
()
?
"primary"
:
""
)
<<
"pos:"
<<
output
->
pos
()
<<
"res:"
<<
output
->
size
()
<<
"modeId:"
<<
output
->
currentModeId
()
<<
"scale:"
<<
output
->
scale
()
<<
"rotation:"
<<
output
->
rotation
()
<<
"clone:"
<<
(
output
->
clones
().
isEmpty
()
?
"no"
:
"yes"
)
<<
"followPreferredMode:"
<<
output
->
followPreferredMode
()
<<
")"
;
}
else
{
QDebugStateSaver
saver
(
dbg
);
if
(
!
output
)
{
dbg
<<
"KScreen::Output(NULL)"
;
}
return
dbg
;
}
dbg
.
nospace
()
<<
"KScreen::Output("
<<
output
->
id
()
<<
", "
<<
output
->
name
()
<<
", "
<<
(
output
->
isConnected
()
?
"connected "
:
"disconnected "
)
<<
(
output
->
isEnabled
()
?
"enabled"
:
"disabled"
)
<<
(
output
->
isPrimary
()
?
" primary"
:
""
)
<<
", pos: "
<<
output
->
pos
()
<<
", res: "
<<
output
->
size
()
<<
", modeId: "
<<
output
->
currentModeId
()
<<
", scale: "
<<
output
->
scale
()
<<
", clone: "
<<
(
output
->
clones
().
isEmpty
()
?
"no"
:
"yes"
)
<<
", rotation: "
<<
output
->
rotation
()
<<
", followPreferredMode: "
<<
output
->
followPreferredMode
()
<<
")"
;
return
dbg
;
}
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