From 1f99527a72e8c797114ec9524f22b47b5340d9d8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 2 Jan 2024 11:37:36 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit 861ae27a46c4bb5d5c67feb6d8bbb4a37961b9cd) --- src/gstplayer.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gstplayer.cpp') diff --git a/src/gstplayer.cpp b/src/gstplayer.cpp index 74bcee0..3683989 100644 --- a/src/gstplayer.cpp +++ b/src/gstplayer.cpp @@ -461,7 +461,7 @@ void Backend::play (int repeat) { } void Backend::stop () { - TQTimer::singleShot (0, gstapp, TQT_SLOT (stop ())); + TQTimer::singleShot (0, gstapp, TQ_SLOT (stop ())); } void Backend::pause () { @@ -507,7 +507,7 @@ void Backend::quit () { if (running) stop (); else - TQTimer::singleShot (0, tqApp, TQT_SLOT (quit ())); + TQTimer::singleShot (0, tqApp, TQ_SLOT (quit ())); } bool updateConfigEntry (const TQString & name, const TQString & value) { @@ -709,7 +709,7 @@ void KGStreamerPlayer::play (int repeat) { gstPollForStateChange (gst_elm_play, GST_STATE_PLAYING); } g_free (uri); - TQTimer::singleShot (500, this, TQT_SLOT (updatePosition ())); + TQTimer::singleShot (500, this, TQ_SLOT (updatePosition ())); return; fail: if (videosink) { @@ -757,7 +757,7 @@ void KGStreamerPlayer::stop () { } void KGStreamerPlayer::finished () { - TQTimer::singleShot (10, this, TQT_SLOT (stop ())); + TQTimer::singleShot (10, this, TQ_SLOT (stop ())); } static void adjustColorSetting (const char * channel, int val) { @@ -832,7 +832,7 @@ void KGStreamerPlayer::updatePosition () { callback->moviePosition (int (val / (GST_MSECOND * 100))); } mutex.unlock (); - TQTimer::singleShot (500, this, TQT_SLOT (updatePosition ())); + TQTimer::singleShot (500, this, TQ_SLOT (updatePosition ())); } } @@ -859,7 +859,7 @@ bool KGStreamerPlayer::event (TQEvent * e) { if (callback) callback->finished (); else - TQTimer::singleShot (0, this, TQT_SLOT (quit ())); + TQTimer::singleShot (0, this, TQ_SLOT (quit ())); break; } //callback->movieParams (se->length/100, se->width, se->height, se->height ? 1.0*se->width/se->height : 1.0); @@ -1075,7 +1075,7 @@ int main(int argc, char **argv) { getConfigEntries (buf); callback->started (dcopclient.appId (), buf); } else - TQTimer::singleShot (10, gstapp, TQT_SLOT (play (int))); + TQTimer::singleShot (10, gstapp, TQ_SLOT (play (int))); gstapp->exec (); -- cgit v1.2.3