diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:13:25 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:13:25 -0600 |
commit | 940c092f32d40263ad6b24f948eaf4c48b01e99a (patch) | |
tree | f5235b5c44e8aaedd3484a00551e29993d548590 /kmix/mdwslider.cpp | |
parent | ced2058eaf8e5af831ebc02812a18937ff7e1de3 (diff) | |
download | tdemultimedia-940c092f32d40263ad6b24f948eaf4c48b01e99a.tar.gz tdemultimedia-940c092f32d40263ad6b24f948eaf4c48b01e99a.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kmix/mdwslider.cpp')
-rw-r--r-- | kmix/mdwslider.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kmix/mdwslider.cpp b/kmix/mdwslider.cpp index 7664811d..3bfb6bdf 100644 --- a/kmix/mdwslider.cpp +++ b/kmix/mdwslider.cpp @@ -64,29 +64,29 @@ MDWSlider::MDWSlider(Mixer *mixer, MixDevice* md, { // create actions (on _mdwActions, see MixDeviceWidget) - new KToggleAction( i18n("&Split Channels"), 0, TQT_TQOBJECT(this), TQT_SLOT(toggleStereoLinked()), + new TDEToggleAction( i18n("&Split Channels"), 0, TQT_TQOBJECT(this), TQT_SLOT(toggleStereoLinked()), _mdwActions, "stereo" ); - new KToggleAction( i18n("&Hide"), 0, TQT_TQOBJECT(this), TQT_SLOT(setDisabled()), _mdwActions, "hide" ); + new TDEToggleAction( i18n("&Hide"), 0, TQT_TQOBJECT(this), TQT_SLOT(setDisabled()), _mdwActions, "hide" ); - KToggleAction *a = new KToggleAction(i18n("&Muted"), 0, 0, 0, _mdwActions, "mute" ); + TDEToggleAction *a = new TDEToggleAction(i18n("&Muted"), 0, 0, 0, _mdwActions, "mute" ); connect( a, TQT_SIGNAL(toggled(bool)), TQT_SLOT(toggleMuted()) ); if( m_mixdevice->isRecordable() ) { - a = new KToggleAction( i18n("Set &Record Source"), 0, 0, 0, _mdwActions, "recsrc" ); + a = new TDEToggleAction( i18n("Set &Record Source"), 0, 0, 0, _mdwActions, "recsrc" ); connect( a, TQT_SIGNAL(toggled(bool)), TQT_SLOT( toggleRecsrc()) ); } - new KAction( i18n("C&onfigure Global Shortcuts..."), 0, TQT_TQOBJECT(this), TQT_SLOT(defineKeys()), _mdwActions, "keys" ); + new TDEAction( i18n("C&onfigure Global Shortcuts..."), 0, TQT_TQOBJECT(this), TQT_SLOT(defineKeys()), _mdwActions, "keys" ); // create widgets createWidgets( showMuteLED, showRecordLED ); m_keys->insert( "Increase volume", i18n( "Increase Volume of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString(), - KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( increaseVolume() ) ); + TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( increaseVolume() ) ); m_keys->insert( "Decrease volume", i18n( "Decrease Volume of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString(), - KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( decreaseVolume() ) ); + TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( decreaseVolume() ) ); m_keys->insert( "Toggle mute", i18n( "Toggle Mute of '%1'" ).arg(m_mixdevice->name().utf8().data()), TQString(), - KShortcut(), KShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleMuted() ) ); + TDEShortcut(), TDEShortcut(), TQT_TQOBJECT(this), TQT_SLOT( toggleMuted() ) ); installEventFilter( this ); // filter for popup @@ -708,7 +708,7 @@ void MDWSlider::volumeChange( int ) /** This slot is called, when a user has clicked the recsrc button. Also it is called by any other - associated KAction like the context menu. + associated TDEAction like the context menu. */ void MDWSlider::toggleRecsrc() { setRecsrc( !m_mixdevice->isRecSource() ); @@ -725,7 +725,7 @@ void MDWSlider::setRecsrc(bool value ) /** This slot is called, when a user has clicked the mute button. Also it is called by any other - associated KAction like the context menu. + associated TDEAction like the context menu. */ void MDWSlider::toggleMuted() { setMuted( !m_mixdevice->isMuted() ); @@ -756,7 +756,7 @@ void MDWSlider::setDisabled( bool value ) /** This slot is called on a MouseWheel event. Also it is called by any other - associated KAction like the context menu. + associated TDEAction like the context menu. */ void MDWSlider::increaseVolume() { @@ -773,7 +773,7 @@ void MDWSlider::increaseVolume() /** This slot is called on a MouseWheel event. Also it is called by any other - associated KAction like the context menu. + associated TDEAction like the context menu. */ void MDWSlider::decreaseVolume() { @@ -894,38 +894,38 @@ void MDWSlider::showContextMenu() if( m_mixerwidget == NULL ) return; - KPopupMenu *menu = m_mixerwidget->getPopup(); + TDEPopupMenu *menu = m_mixerwidget->getPopup(); menu->insertTitle( SmallIcon( "kmix" ), m_mixdevice->name() ); if ( m_sliders.count()>1 ) { - KToggleAction *stereo = (KToggleAction *)_mdwActions->action( "stereo" ); + TDEToggleAction *stereo = (TDEToggleAction *)_mdwActions->action( "stereo" ); if ( stereo ) { stereo->setChecked( !isStereoLinked() ); stereo->plug( menu ); } } - KToggleAction *ta = (KToggleAction *)_mdwActions->action( "recsrc" ); + TDEToggleAction *ta = (TDEToggleAction *)_mdwActions->action( "recsrc" ); if ( ta ) { ta->setChecked( m_mixdevice->isRecSource() ); ta->plug( menu ); } if ( m_mixdevice->hasMute() ) { - ta = ( KToggleAction* )_mdwActions->action( "mute" ); + ta = ( TDEToggleAction* )_mdwActions->action( "mute" ); if ( ta ) { ta->setChecked( m_mixdevice->isMuted() ); ta->plug( menu ); } } - KAction *a = _mdwActions->action( "hide" ); + TDEAction *a = _mdwActions->action( "hide" ); if ( a ) a->plug( menu ); a = _mdwActions->action( "keys" ); if ( a && m_keys ) { - KActionSeparator sep( TQT_TQOBJECT(this) ); + TDEActionSeparator sep( TQT_TQOBJECT(this) ); sep.plug( menu ); a->plug( menu ); } |