Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
KMix
Commits
d136985d
Commit
d136985d
authored
Oct 06, 2020
by
Jonathan Marten
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select Master Channel dialogue: Show an information tool tip
parent
09ed7c72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
gui/dialogselectmaster.cpp
gui/dialogselectmaster.cpp
+14
-1
No files found.
gui/dialogselectmaster.cpp
View file @
d136985d
...
...
@@ -25,6 +25,7 @@
#include <QVBoxLayout>
#include <QListWidget>
#include <QComboBox>
#include <QToolTip>
#include <klocalizedstring.h>
...
...
@@ -97,8 +98,20 @@ void DialogSelectMaster::createWidgets(const Mixer *mixer)
if
(
mixers
.
count
()
>
0
)
{
QLabel
*
qlbl
=
new
QLabel
(
i18n
(
"Select the channel representing the master volume:"
),
mainFrame
);
QLabel
*
qlbl
=
new
QLabel
(
xi18nc
(
"@info"
,
"Select the <a href=
\"
i
\"
>master volume</a> channel:"
),
mainFrame
);
// Not a good idea to set Qt::LinksAccessibleByKeyboard, if the link is
// clicked on or gets focus then the Return key will not activate the OK
// button as expected.
//qlbl->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::LinksAccessibleByKeyboard);
layout
->
addWidget
(
qlbl
);
connect
(
qlbl
,
&
QLabel
::
linkActivated
,
this
,
[
this
]()
{
QToolTip
::
showText
(
QCursor
::
pos
(),
xi18nc
(
"@info:tooltip"
,
"<para>Here you can select the master sound device (if there is more than one) and its master channel.</para>"
"<para>The master channel is the one that is affected by the system tray volume control, "
"the volume up/down and mute global shortcut keys, "
"and the <interface>Mute</interface> action in the system tray popup menu.</para>"
));
});
createPage
(
mixer
);
connect
(
this
,
&
QDialog
::
accepted
,
this
,
&
DialogSelectMaster
::
apply
);
...
...
Jonathan Marten
@marten
mentioned in commit
c506443e
·
Mar 01, 2021
mentioned in commit
c506443e
mentioned in commit c506443e7403c4b5201868cffae03ee3786e1b44
Toggle commit list
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