Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f683b6db authored by Jonathan Marten's avatar Jonathan Marten

Replace the two overloads of Mixer::readableName() with a default parameter

parent bf1462c4
......@@ -388,18 +388,7 @@ void Mixer::setBalanceInternal(Volume& vol)
/**
* Returns a name suitable for a human user to read (on a label, ...)
*/
QString Mixer::readableName()
{
return readableName(false);
}
/**
* Returns a name suitable for a human user to read, possibly with quoted ampersand. The latter is required by
* some GUI elements like QRadioButton or when used as a Tab label, as '&' introduces an accelerator there.
*
* @param ampersandQuoted
* @return
*/
QString Mixer::readableName(bool ampersandQuoted)
{
QString finalName = _mixerBackend->getName();
......
......@@ -111,10 +111,15 @@ public:
/// Wrapper to Mixer_Backend
QString translateKernelToWhatsthis(const QString &kernelName);
/// Return the name of the card/chip/hardware, which is suitable for humans
// TODO: combine with default paramaeter
QString readableName();
QString readableName(bool ampersandQuoted);
/**
* Get a name suitable for a human user to read, possibly with quoted ampersand.
* The latter is required by some GUI elements like QRadioButton or when used as a
* tab label, as '&' introduces an accelerator there.
*
* @param ampersandQuoted @c true if '&' characters are to be quoted
* @return the readable device name
*/
QString readableName(bool ampersandQuoted = false);
// Returns the name of the driver, e.g. "OSS" or "ALSA0.9"
static QString driverName(int num);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment