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
David Planella
juk
Commits
b4cdf1c1
Commit
b4cdf1c1
authored
Oct 19, 2018
by
Michael Pyne
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Applications/18.08'
Conflicts: playermanager.cpp
parents
798f35bc
e2012e79
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
playermanager.cpp
playermanager.cpp
+5
-3
systemtray.cpp
systemtray.cpp
+1
-1
No files found.
playermanager.cpp
View file @
b4cdf1c1
...
...
@@ -32,7 +32,7 @@
#include <QTimer>
#include <QUrl>
#include <
math.h
>
#include <
algorithm
>
#include "playlistinterface.h"
#include "playeradaptor.h"
...
...
@@ -321,12 +321,14 @@ void PlayerManager::back()
void
PlayerManager
::
volumeUp
()
{
setVolume
(
volume
()
+
0.04
);
// 4% up
const
auto
newVolume
=
std
::
min
(
m_output
->
volume
()
+
0.04
,
1.0
);
m_output
->
setVolume
(
newVolume
);
// 4% up
}
void
PlayerManager
::
volumeDown
()
{
setVolume
(
volume
()
-
0.04
);
// 4% down
const
auto
newVolume
=
std
::
max
(
m_output
->
volume
()
-
0.04
,
0.0
);
m_output
->
setVolume
(
newVolume
);
// 4% down
}
void
PlayerManager
::
setMuted
(
bool
m
)
...
...
systemtray.cpp
View file @
b4cdf1c1
...
...
@@ -509,7 +509,7 @@ void SystemTray::scrollEvent(int delta, Qt::Orientation orientation)
if
(
orientation
==
Qt
::
Horizontal
)
return
;
switch
(
QApplication
::
k
eyboardModifiers
())
{
switch
(
QApplication
::
queryK
eyboardModifiers
())
{
case
Qt
::
ShiftModifier
:
if
(
delta
>
0
)
ActionCollection
::
action
(
"volumeUp"
)
->
trigger
();
...
...
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