Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
56575471
Commit
56575471
authored
Aug 07, 2020
by
Nicolas Fella
Browse files
[app/volume] Use property setter
parent
2d523f0b
Pipeline
#29925
passed with stage
in 18 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/qml/volume.qml
View file @
56575471
...
...
@@ -52,7 +52,7 @@ Kirigami.Page
Button
{
icon.name
:
muted
?
"
player-volume-muted
"
:
"
player-volume
"
onClicked
:
pluginInterface
.
sendMuted
(
name
,
!
muted
)
onClicked
:
muted
=
!
muted
}
Slider
{
...
...
@@ -60,7 +60,7 @@ Kirigami.Page
from
:
0
value
:
volume
to
:
maxVolume
onMoved
:
pluginInterface
.
sendVolume
(
name
,
value
)
onMoved
:
volume
=
value
}
}
}
...
...
interfaces/remotesinksmodel.cpp
View file @
56575471
...
...
@@ -164,7 +164,7 @@ QVariant RemoteSinksModel::data(const QModelIndex& index, int role) const
}
}
bool
RemoteSinksModel
::
setData
(
const
QModelIndex
&
index
,
const
QVariant
&
value
,
int
role
)
bool
RemoteSinksModel
::
setData
(
const
QModelIndex
&
index
,
const
QVariant
&
value
,
int
role
)
{
if
(
!
index
.
isValid
()
||
index
.
row
()
<
0
...
...
Write
Preview
Supports
Markdown
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