From d5542109d11ba2fbf2bd3d56da2ddf88f131c0ee Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 8 Sep 2024 01:45:52 +0300 Subject: Fix build with latest TQt Signed-off-by: Mavridis Philippe --- .../src/player-parts/libmpv-part/libmpv_part.cpp | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/kaffeine/src/player-parts/libmpv-part/libmpv_part.cpp b/kaffeine/src/player-parts/libmpv-part/libmpv_part.cpp index 352d11a..8ceb49f 100644 --- a/kaffeine/src/player-parts/libmpv-part/libmpv_part.cpp +++ b/kaffeine/src/player-parts/libmpv-part/libmpv_part.cpp @@ -148,11 +148,11 @@ bool MpvPart::initMpv() { void MpvPart::initActions() { /** Playback controls ***/ - new TDEAction(i18n("Play"), "media-playback-start", 0, this, SLOT(slotPlay()), actionCollection(), "player_play"); - new TDEAction(i18n("Pause"), "media-playback-pause", Key_Space, this, SLOT(slotTogglePause()), actionCollection(), "player_pause"); - new TDEAction(i18n("Stop"), "media-playback-stop", Key_Backspace, this, SLOT(slotStop()), actionCollection(), "player_stop"); - new TDEAction(i18n("&Previous"), "media-skip-backward", Key_PageUp, this, SLOT(slotPrevious()), actionCollection(), "player_previous"); - new TDEAction(i18n("&Next"), "media-skip-forward", Key_PageDown, this, SLOT(slotNext()), actionCollection(), "player_next"); + new TDEAction(i18n("Play"), "media-playback-start", 0, this, TQ_SLOT(slotPlay()), actionCollection(), "player_play"); + new TDEAction(i18n("Pause"), "media-playback-pause", Key_Space, this, TQ_SLOT(slotTogglePause()), actionCollection(), "player_pause"); + new TDEAction(i18n("Stop"), "media-playback-stop", Key_Backspace, this, TQ_SLOT(slotStop()), actionCollection(), "player_stop"); + new TDEAction(i18n("&Previous"), "media-skip-backward", Key_PageUp, this, TQ_SLOT(slotPrevious()), actionCollection(), "player_previous"); + new TDEAction(i18n("&Next"), "media-skip-forward", Key_PageDown, this, TQ_SLOT(slotNext()), actionCollection(), "player_next"); /*** Position toolbar ***/ // Important: we have a max of 1000 instead of 100 for better precision; multiply/divide your percentages by 10 @@ -161,9 +161,9 @@ void MpvPart::initActions() m_position->setTracking(false); m_position->setFocusPolicy(TQWidget::NoFocus); m_position->setMinimumWidth(100); - connect(m_position, SIGNAL(sliderPressed()), this, SLOT(slotStartSeeking())); - connect(m_position, SIGNAL(sliderMoved(int)), this, SLOT(slotSetSeekingPos(int))); - connect(m_position, SIGNAL(sliderReleased()), this, SLOT(slotStopSeeking())); + connect(m_position, TQ_SIGNAL(sliderPressed()), this, TQ_SLOT(slotStartSeeking())); + connect(m_position, TQ_SIGNAL(sliderMoved(int)), this, TQ_SLOT(slotSetSeekingPos(int))); + connect(m_position, TQ_SIGNAL(sliderReleased()), this, TQ_SLOT(slotStopSeeking())); KWidgetAction *posAction = new KWidgetAction(m_position, i18n("Position"), 0, 0, 0, actionCollection(), "player_position"); posAction->setAutoSized(true); @@ -173,30 +173,30 @@ void MpvPart::initActions() m_playtime->setFixedWidth(met.width(" -88:88:88 ")); m_playtime->setSizePolicy(TQSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed)); m_playtime->setFocusPolicy(TQWidget::NoFocus); - connect(m_playtime, SIGNAL(pressed()), this, SLOT(slotTogglePlaytimeMode())); + connect(m_playtime, TQ_SIGNAL(pressed()), this, TQ_SLOT(slotTogglePlaytimeMode())); new KWidgetAction(m_playtime, i18n("Playtime"), 0, 0, 0, actionCollection(), "player_playtime"); /*** Volume toolbar ***/ - new TDEAction(i18n("&Mute"), "player_mute", Key_U, this, SLOT(slotMute()), actionCollection(), "player_mute"); + new TDEAction(i18n("&Mute"), "player_mute", Key_U, this, TQ_SLOT(slotMute()), actionCollection(), "player_mute"); m_volume = new TQSlider(0, 100, 10, 100, TQt::Horizontal, 0); - connect(m_volume, SIGNAL(sliderMoved(int)), this, SLOT(slotSetVolume(int))); + connect(m_volume, TQ_SIGNAL(sliderMoved(int)), this, TQ_SLOT(slotSetVolume(int))); new KWidgetAction(m_volume, i18n("Volume"), 0, 0, 0, actionCollection(), "player_volume"); /*** Stream recording toolbar ***/ - new TDEAction(i18n("Take Screenshot"), "ksnapshot", Key_S, this, SLOT(slotShot()), actionCollection(), "record_shot"); + new TDEAction(i18n("Take Screenshot"), "ksnapshot", Key_S, this, TQ_SLOT(slotShot()), actionCollection(), "record_shot"); - m_recordAction = new TDEToggleAction(i18n("&Record stream"), "player_record", Key_R, this, SLOT(slotToggleRecording()), actionCollection(), "record_toggle"); - new TDEAction(i18n("Set recording file"), "document-open", 0, this, SLOT(slotSetRecordingFile()), actionCollection(), "record_open"); + m_recordAction = new TDEToggleAction(i18n("&Record stream"), "player_record", Key_R, this, TQ_SLOT(slotToggleRecording()), actionCollection(), "record_toggle"); + new TDEAction(i18n("Set recording file"), "document-open", 0, this, TQ_SLOT(slotSetRecordingFile()), actionCollection(), "record_open"); m_recordFile = new TQLabel(0); new KWidgetAction(m_recordFile, i18n("Recording file"), 0, 0, 0, actionCollection(), "record_file"); updateRecordFileLabel(); /*** Context menu ***/ - new TDEAction(i18n("Add subtitles"), "text-x-generic", 0, this, SLOT(slotAddSubtitles()), actionCollection(), "subtitles_add"); + new TDEAction(i18n("Add subtitles"), "text-x-generic", 0, this, TQ_SLOT(slotAddSubtitles()), actionCollection(), "subtitles_add"); /*** Other ***/ - new TDEAction(i18n("View MPV log"), "text-x-log", 0, this, SLOT(slotViewLog()), actionCollection(), "view_log"); + new TDEAction(i18n("View MPV log"), "text-x-log", 0, this, TQ_SLOT(slotViewLog()), actionCollection(), "view_log"); resetTime(); stateChanged("disable_all"); @@ -732,7 +732,7 @@ void MpvPart::showContextMenu() { } index++; } - connect(m_subs, SIGNAL(activated(int)), this, SLOT(slotContextSetSubtitles(int))); + connect(m_subs, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotContextSetSubtitles(int))); } if (subtitles.empty() || m_mrl.currentSubtitle() < 0) { -- cgit v1.2.1