diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-11 17:42:14 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-11 17:42:14 +0900 |
commit | 9492e618a7bcc0a58db039d6700b508dec2c9db3 (patch) | |
tree | d9e102d5ad79aaf0cb16c7c3644e38c9b7da6bc0 | |
parent | 979f5621d7cb2015eef214b0258dac1d6cd4c742 (diff) | |
download | tqt3-9492e618a7bcc0a58db039d6700b508dec2c9db3.tar.gz tqt3-9492e618a7bcc0a58db039d6700b508dec2c9db3.zip |
Drop compatibility code for TQThread
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | doc/html/ntqthread.html | 5 | ||||
-rw-r--r-- | doc/html/porting.html | 1 | ||||
-rw-r--r-- | doc/html/qthread-h.html | 9 | ||||
-rw-r--r-- | doc/html/qthread-members.html | 1 | ||||
-rw-r--r-- | doc/man/man3/tqthread.3qt | 7 | ||||
-rw-r--r-- | doc/porting3.doc | 1 | ||||
-rw-r--r-- | src/kernel/ntqthread.h | 9 | ||||
-rw-r--r-- | 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 8fc0e5660..edd77b60b 100644 --- a/doc/html/ntqthread.html +++ b/doc/html/ntqthread.html @@ -51,7 +51,6 @@ body { background: #ffffff; color: black; } <h2>Static Public Members</h2> <ul> <li class=fn>TQt::HANDLE <a href="#currentThread"><b>currentThread</b></a> ()</li> -<li class=fn>void postEvent ( TQObject * receiver, TQEvent * event ) <em>(obsolete)</em></li> <li class=fn>void <a href="#exit"><b>exit</b></a> ()</li> </ul> <h2>Protected Members</h2> @@ -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 <em>msecs</em> milliseconds -<h3 class=fn>void <a name="postEvent"></a>TQThread::postEvent ( <a href="ntqobject.html">TQObject</a> * receiver, <a href="ntqevent.html">TQEvent</a> * event )<tt> [static]</tt> -</h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. -<p> Use <a href="ntqapplication.html#postEvent">TQApplication::postEvent</a>() instead. - <h3 class=fn>void <a name="run"></a>TQThread::run ()<tt> [pure virtual protected]</tt> </h3> diff --git a/doc/html/porting.html b/doc/html/porting.html index 44202c104..574d8edf2 100644 --- a/doc/html/porting.html +++ b/doc/html/porting.html @@ -262,6 +262,7 @@ have been changed: <li> TQString::visual() <li> TQStyle::set...() functions <li> TQStyle::drawArrow() +<li> TQThread::postEvent(TQObject *receiver, TQEvent *event). Use TQApplication::postEvent instead. <li> TQToolButton::iconSet(bool on) const <li> TQToolButton::offIconSet() const <li> TQToolButton::onIconSet() const diff --git a/doc/html/qthread-h.html b/doc/html/qthread-h.html index 5a2e97a80..00fc81ffe 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 91a9ab4d3..3cbfa108f 100644 --- a/doc/html/qthread-members.html +++ b/doc/html/qthread-members.html @@ -41,7 +41,6 @@ body { background: #ffffff; color: black; } <li><a href="ntqthread.html#exit">exit</a>() <li><a href="ntqthread.html#finished">finished</a>() <li><a href="ntqthread.html#msleep">msleep</a>() -<li><a href="ntqthread.html#postEvent">postEvent</a>() <li><a href="ntqthread.html#run">run</a>() <li><a href="ntqthread.html#running">running</a>() <li><a href="ntqthread.html#sleep">sleep</a>() diff --git a/doc/man/man3/tqthread.3qt b/doc/man/man3/tqthread.3qt index a27956c8f..f4c7a8562 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 9102d49f7..99ab10194 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 edf45f89c..dc0df0828 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 <limits.h> @@ -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 f09b1939b..bb51e41fc 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() { // |