Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
KWin
Commits
c2b0a31e
Commit
c2b0a31e
authored
Dec 03, 2020
by
Gabriel Souza Franco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show window ids as hex in debug console
parent
e320f76f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
debug_console.cpp
debug_console.cpp
+2
-2
No files found.
debug_console.cpp
View file @
c2b0a31e
...
...
@@ -1148,7 +1148,7 @@ QVariant DebugConsoleModel::clientData(const QModelIndex &index, int role, const
}
auto
c
=
clients
.
at
(
index
.
row
());
if
(
role
==
Qt
::
DisplayRole
)
{
return
QStringLiteral
(
"%1: %2"
).
arg
(
c
->
window
()).
arg
(
c
->
caption
());
return
QStringLiteral
(
"
0x
%1: %2"
).
arg
(
c
->
window
()
,
0
,
16
).
arg
(
c
->
caption
());
}
else
if
(
role
==
Qt
::
DecorationRole
)
{
return
c
->
icon
();
}
...
...
@@ -1204,7 +1204,7 @@ QVariant DebugConsoleModel::data(const QModelIndex &index, int role) const
}
auto
u
=
m_unmanageds
.
at
(
index
.
row
());
if
(
role
==
Qt
::
DisplayRole
)
{
return
u
->
window
();
return
QStringLiteral
(
"0x%1"
).
arg
(
u
->
window
()
,
0
,
16
)
;
}
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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