diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-11 10:35:25 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 20:23:16 +0900 |
commit | e234565531cd8c11949cc6aecf16179e75312458 (patch) | |
tree | 90b0cb6c9f6c2a04712bbfb73b531275d4f63976 /kicker-applets/mediacontrol/mediacontrol.cpp | |
parent | be3456c5d953fb877340a51b2ef699be6b3c7c02 (diff) | |
download | tdeaddons-e234565531cd8c11949cc6aecf16179e75312458.tar.gz tdeaddons-e234565531cd8c11949cc6aecf16179e75312458.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7e9d8ea45280ad6657796da9536ccf6218111f22)
Diffstat (limited to 'kicker-applets/mediacontrol/mediacontrol.cpp')
-rw-r--r-- | kicker-applets/mediacontrol/mediacontrol.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kicker-applets/mediacontrol/mediacontrol.cpp b/kicker-applets/mediacontrol/mediacontrol.cpp index 31d1076..a55ed06 100644 --- a/kicker-applets/mediacontrol/mediacontrol.cpp +++ b/kicker-applets/mediacontrol/mediacontrol.cpp @@ -147,15 +147,15 @@ MediaControl::MediaControl(const TQString &configFile, Type t, int actions, // request notification of changes in icon style kapp->addKipcEventMask(KIPC::IconChanged); - connect(kapp, TQT_SIGNAL(iconChanged(int)), this, TQT_SLOT(slotIconChanged())); + connect(kapp, TQ_SIGNAL(iconChanged(int)), this, TQ_SLOT(slotIconChanged())); reparseConfig(); rmbMenu = new TDEPopupMenu(this, "RMBMenu"); rmbMenu->insertTitle(i18n("MediaControl"), 0, 0); rmbMenu->insertItem(SmallIcon("configure"), i18n("Configure MediaControl..."), - this, TQT_SLOT(preferences())); - rmbMenu->insertItem(i18n("About MediaControl"), this, TQT_SLOT(about())); + this, TQ_SLOT(preferences())); + rmbMenu->insertItem(i18n("About MediaControl"), this, TQ_SLOT(about())); } MediaControl::~MediaControl() @@ -275,12 +275,12 @@ void MediaControl::preferences() else { _prefsDialog = new MediaControlConfig ( _configFrontend ); - connect ( _prefsDialog, TQT_SIGNAL(closing()), - this, TQT_SLOT(slotClosePrefsDialog()) ); - connect ( _prefsDialog, TQT_SIGNAL(destroyed()), - this, TQT_SLOT(slotPrefsDialogClosing()) ); - connect ( _prefsDialog, TQT_SIGNAL(configChanged()), - this, TQT_SLOT(slotConfigChanged()) ); + connect ( _prefsDialog, TQ_SIGNAL(closing()), + this, TQ_SLOT(slotClosePrefsDialog()) ); + connect ( _prefsDialog, TQ_SIGNAL(destroyed()), + this, TQ_SLOT(slotPrefsDialogClosing()) ); + connect ( _prefsDialog, TQ_SIGNAL(configChanged()), + this, TQ_SLOT(slotConfigChanged()) ); } } @@ -396,12 +396,12 @@ void MediaControl::reparseConfig() } // this signal gets emitted by a playerInterface when the player's playtime changed - connect(_player, TQT_SIGNAL(newSliderPosition(int,int)), - this, TQT_SLOT(setSliderPosition(int,int))); + connect(_player, TQ_SIGNAL(newSliderPosition(int,int)), + this, TQ_SLOT(setSliderPosition(int,int))); - connect(_player, TQT_SIGNAL(playerStarted()), TQT_SLOT(enableAll())); - connect(_player, TQT_SIGNAL(playerStopped()), TQT_SLOT(disableAll())); - connect(_player, TQT_SIGNAL(playingStatusChanged(int)), TQT_SLOT(slotPlayingStatusChanged(int))); + connect(_player, TQ_SIGNAL(playerStarted()), TQ_SLOT(enableAll())); + connect(_player, TQ_SIGNAL(playerStopped()), TQ_SLOT(disableAll())); + connect(_player, TQ_SIGNAL(playingStatusChanged(int)), TQ_SLOT(slotPlayingStatusChanged(int))); // do we use our icons or the default ones from KDE? if(_configFrontend->useCustomTheme()) @@ -441,17 +441,17 @@ void MediaControl::reparseConfig() slider_tooltip = new MediaControlToolTip(time_slider, _player); - connect(prev_button, TQT_SIGNAL(clicked()), _player, TQT_SLOT(prev())); - connect(playpause_button, TQT_SIGNAL(clicked()), _player, TQT_SLOT(playpause())); - connect(stop_button, TQT_SIGNAL(clicked()), _player, TQT_SLOT(stop())); - connect(next_button, TQT_SIGNAL(clicked()), _player, TQT_SLOT(next())); - - connect(time_slider, TQT_SIGNAL(sliderPressed()), _player, TQT_SLOT(sliderStartDrag())); - connect(time_slider, TQT_SIGNAL(sliderReleased()), _player, TQT_SLOT(sliderStopDrag())); - connect(time_slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(adjustTime(int))); - connect(time_slider, TQT_SIGNAL(volumeUp()), _player, TQT_SLOT(volumeUp())); - connect(time_slider, TQT_SIGNAL(volumeDown()), _player, TQT_SLOT(volumeDown())); - connect(this, TQT_SIGNAL(newJumpToTime(int)), _player, TQT_SLOT(jumpToTime(int))); + connect(prev_button, TQ_SIGNAL(clicked()), _player, TQ_SLOT(prev())); + connect(playpause_button, TQ_SIGNAL(clicked()), _player, TQ_SLOT(playpause())); + connect(stop_button, TQ_SIGNAL(clicked()), _player, TQ_SLOT(stop())); + connect(next_button, TQ_SIGNAL(clicked()), _player, TQ_SLOT(next())); + + connect(time_slider, TQ_SIGNAL(sliderPressed()), _player, TQ_SLOT(sliderStartDrag())); + connect(time_slider, TQ_SIGNAL(sliderReleased()), _player, TQ_SLOT(sliderStopDrag())); + connect(time_slider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(adjustTime(int))); + connect(time_slider, TQ_SIGNAL(volumeUp()), _player, TQ_SLOT(volumeUp())); + connect(time_slider, TQ_SIGNAL(volumeDown()), _player, TQ_SLOT(volumeDown())); + connect(this, TQ_SIGNAL(newJumpToTime(int)), _player, TQ_SLOT(jumpToTime(int))); } // Widget Placement =================================================================== |