diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-06-03 18:49:38 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-06-03 18:49:38 +0900 |
commit | 65c258e955c049db6fb04782cc3e8aa69828daa0 (patch) | |
tree | fbfc3485d82e60bcb37aa4e48eb13fe74922c03b /kmix/kmixapplet.cpp | |
parent | a810b668d20442a866d09634e33dbd050b888456 (diff) | |
download | tdemultimedia-65c258e955c049db6fb04782cc3e8aa69828daa0.tar.gz tdemultimedia-65c258e955c049db6fb04782cc3e8aa69828daa0.zip |
KMix: added mixer selection entry to sound mixer applet's popup menu.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmix/kmixapplet.cpp')
-rw-r--r-- | kmix/kmixapplet.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kmix/kmixapplet.cpp b/kmix/kmixapplet.cpp index 23c3768f..0bcdd3f2 100644 --- a/kmix/kmixapplet.cpp +++ b/kmix/kmixapplet.cpp @@ -32,7 +32,7 @@ #include <tqpushbutton.h> #include <tqradiobutton.h> #include <tqwmatrix.h> - +#include <tqtooltip.h> // KDE #include <tdeaboutapplication.h> @@ -206,6 +206,7 @@ KMixApplet::KMixApplet( const TQString& configFile, Type t, // We do NOT know which mixer to use => ask the User m_errorLabel = new TQPushButton( i18n("Select Mixer"), this ); m_errorLabel->setGeometry(0, 0, m_errorLabel->sizeHint().width(), m_errorLabel->sizeHint().height() ); + TQToolTip::add(m_errorLabel, "Select one of the available mixers"); resize( m_errorLabel->sizeHint() ); connect( m_errorLabel, TQT_SIGNAL(clicked()), this, TQT_SLOT(selectMixer()) ); } @@ -287,6 +288,7 @@ void KMixApplet::loadConfig( TDEConfig *config, const TQString &grp ) if ( m_mixerWidget ) { //config->setGroup( grp ); KMixToolBox::loadConfig(m_mixerWidget->_mdws, config, grp, "PanelApplet" ); + connect(m_mixerWidget, TQT_SIGNAL(selectMixer()), this, TQT_SLOT(selectMixer())); } } @@ -322,7 +324,7 @@ void KMixApplet::selectMixer() bool ok = FALSE; TQString res = KInputDialog::getItem( i18n("Mixers"), i18n("Available mixers:"), - lst, 1, FALSE, &ok, this ); + lst, 0, FALSE, &ok, this ); if ( ok ) { Mixer *mixer = Mixer::mixers().at( lst.findIndex( res ) ); |