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
Multimedia
KMix
Commits
d136985d
Commit
d136985d
authored
Oct 06, 2020
by
Jonathan Marten
Browse files
Select Master Channel dialogue: Show an information tool tip
parent
09ed7c72
Changes
1
Hide whitespace changes
Inline
Side-by-side
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