From 9492e618a7bcc0a58db039d6700b508dec2c9db3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 11 Jul 2023 17:42:14 +0900 Subject: [PATCH] Drop compatibility code for TQThread Signed-off-by: Michele Calgaro --- doc/html/ntqthread.html | 5 ----- doc/html/porting.html | 1 + doc/html/qthread-h.html | 9 --------- doc/html/qthread-members.html | 1 - doc/man/man3/tqthread.3qt | 7 ------- doc/porting3.doc | 1 + src/kernel/ntqthread.h | 9 --------- src/kernel/qthread.cpp | 10 ---------- 8 files changed, 2 insertions(+), 41 deletions(-) diff --git a/doc/html/ntqthread.html b/doc/html/ntqthread.html index 8fc0e566..edd77b60 100644 --- a/doc/html/ntqthread.html +++ b/doc/html/ntqthread.html @@ -51,7 +51,6 @@ body { background: #ffffff; color: black; }

Static Public Members

Protected Members

@@ -173,10 +172,6 @@ Returns TRUE if the thread is finished; otherwise returns FALSE. System independent sleep. This causes the current thread to sleep for msecs milliseconds -

void TQThread::postEvent ( TQObject * receiver, TQEvent * event ) [static] -

This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. -

Use TQApplication::postEvent() instead. -

void TQThread::run () [pure virtual protected]

diff --git a/doc/html/porting.html b/doc/html/porting.html index 44202c10..574d8edf 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -262,6 +262,7 @@ have been changed:
  • TQString::visual()
  • TQStyle::set...() functions
  • TQStyle::drawArrow() +
  • TQThread::postEvent(TQObject *receiver, TQEvent *event). Use TQApplication::postEvent instead.
  • TQToolButton::iconSet(bool on) const
  • TQToolButton::offIconSet() const
  • TQToolButton::onIconSet() const diff --git a/doc/html/qthread-h.html b/doc/html/qthread-h.html index 5a2e97a8..00fc81ff 100644 --- a/doc/html/qthread-h.html +++ b/doc/html/qthread-h.html @@ -81,11 +81,6 @@ body { background: #ffffff; color: black; } #ifndef QT_H #include "ntqwindowdefs.h" -#ifndef TQT_NO_COMPAT -#include "ntqmutex.h" -#include "ntqsemaphore.h" -#include "ntqwaitcondition.h" -#endif // TQT_NO_COMPAT #endif // QT_H #include <limits.h> @@ -97,10 +92,6 @@ class Q_EXPORT TQThread : public TQt public: static TQt::HANDLE currentThread(); -#ifndef TQT_NO_COMPAT - static void postEvent( TQObject *,TQEvent * ); -#endif - static void initialize(); static void cleanup(); diff --git a/doc/html/qthread-members.html b/doc/html/qthread-members.html index 91a9ab4d..3cbfa108 100644 --- a/doc/html/qthread-members.html +++ b/doc/html/qthread-members.html @@ -41,7 +41,6 @@ body { background: #ffffff; color: black; }
  • exit()
  • finished()
  • msleep() -
  • postEvent()
  • run()
  • running()
  • sleep() diff --git a/doc/man/man3/tqthread.3qt b/doc/man/man3/tqthread.3qt index a27956c8..f4c7a856 100644 --- a/doc/man/man3/tqthread.3qt +++ b/doc/man/man3/tqthread.3qt @@ -48,9 +48,6 @@ Inherits Qt. .BI "Qt::HANDLE \fBcurrentThread\fR ()" .br .ti -1c -.BI "void postEvent ( QObject * receiver, QEvent * event ) \fI(obsolete)\fR" -.br -.ti -1c .BI "void \fBexit\fR ()" .br .in -1c @@ -169,10 +166,6 @@ Ends the execution of the calling thread and wakes up any threads waiting for it Returns TRUE if the thread is finished; otherwise returns FALSE. .SH "void QThread::msleep ( unsigned long msecs )\fC [static protected]\fR" System independent sleep. This causes the current thread to sleep for \fImsecs\fR milliseconds -.SH "void QThread::postEvent ( QObject * receiver, QEvent * event )\fC [static]\fR" -\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. -.PP -Use QApplication::postEvent() instead. .SH "void QThread::run ()\fC [pure virtual protected]\fR" This method is pure virtual, and must be implemented in derived classes in order to do useful work. Returning from this method will end the execution of the thread. .PP diff --git a/doc/porting3.doc b/doc/porting3.doc index 9102d49f..99ab1019 100644 --- a/doc/porting3.doc +++ b/doc/porting3.doc @@ -212,6 +212,7 @@ All these functions have been removed in TQt 3.x: \i QString::visual() \i QStyle::set...() functions \i QStyle::drawArrow() +\i QThread::postEvent(TQObject *receiver, TQEvent *event). Use TQApplication::postEvent instead. \i QToolButton::iconSet(bool on) const \i QToolButton::offIconSet() const \i QToolButton::onIconSet() const diff --git a/src/kernel/ntqthread.h b/src/kernel/ntqthread.h index edf45f89..dc0df082 100644 --- a/src/kernel/ntqthread.h +++ b/src/kernel/ntqthread.h @@ -45,11 +45,6 @@ #ifndef QT_H #include "ntqwindowdefs.h" -#ifndef TQT_NO_COMPAT -#include "ntqmutex.h" -#include "ntqsemaphore.h" -#include "ntqwaitcondition.h" -#endif // TQT_NO_COMPAT #endif // QT_H #include @@ -61,10 +56,6 @@ class Q_EXPORT TQThread : public TQt public: static TQt::HANDLE currentThread(); -#ifndef TQT_NO_COMPAT - static void postEvent( TQObject *,TQEvent * ); -#endif - static void initialize(); static void cleanup(); diff --git a/src/kernel/qthread.cpp b/src/kernel/qthread.cpp index f09b1939..bb51e41f 100644 --- a/src/kernel/qthread.cpp +++ b/src/kernel/qthread.cpp @@ -252,16 +252,6 @@ bool TQThread::threadPostedEventsDisabled() const \sa wait() */ -#ifndef TQT_NO_COMPAT -/*! \obsolete - Use TQApplication::postEvent() instead. -*/ -void TQThread::postEvent( TQObject * receiver, TQEvent * event ) -{ - TQApplication::postEvent( receiver, event ); -} -#endif - TQEventLoopThread::TQEventLoopThread() : TQThread() { //