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
KScreen
Commits
ea7bcf35
Commit
ea7bcf35
authored
Feb 02, 2022
by
Méven Car
Committed by
Méven Car
Feb 02, 2022
Browse files
Ensure to emit ResolutionRole dataChanged signals
BUG: 448855
parent
8bd4c098
Pipeline
#131912
passed with stage
in 2 minutes and 34 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
kcm/output_model.cpp
View file @
ea7bcf35
...
...
@@ -294,7 +294,7 @@ void OutputModel::add(const KScreen::OutputPtr &output)
endInsertRows
();
connect
(
output
.
data
(),
&
KScreen
::
Output
::
modesChanged
,
this
,
[
this
,
output
]()
{
rolesChanged
(
output
->
id
(),
{
ResolutionsRole
,
ResolutionIndexRole
,
SizeRole
});
rolesChanged
(
output
->
id
(),
{
ResolutionsRole
,
ResolutionIndexRole
,
ResolutionRole
,
SizeRole
});
Q_EMIT
sizeChanged
();
});
...
...
@@ -417,7 +417,7 @@ bool OutputModel::setResolution(int outputIndex, int resIndex)
QModelIndex
index
=
createIndex
(
outputIndex
,
0
);
// Calling this directly ignores possible optimization when the
// refresh rate hasn't changed in fact. But that's ok.
Q_EMIT
dataChanged
(
index
,
index
,
{
ResolutionIndexRole
,
SizeRole
,
RefreshRateIndexRole
});
Q_EMIT
dataChanged
(
index
,
index
,
{
ResolutionIndexRole
,
ResolutionRole
,
SizeRole
,
RefreshRateIndexRole
});
Q_EMIT
sizeChanged
();
return
true
;
}
...
...
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