Drop compatibility code for TQThread

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/85/head
Michele Calgaro 10 months ago
parent 979f5621d7
commit 9492e618a7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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&nbsp;*&nbsp;receiver, TQEvent&nbsp;*&nbsp;event ) &nbsp;<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>&nbsp;*&nbsp;receiver, <a href="ntqevent.html">TQEvent</a>&nbsp;*&nbsp;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>

@ -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

@ -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 &lt;limits.h&gt;
@ -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();

@ -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>()

@ -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

@ -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

@ -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();

@ -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()
{
//

Loading…
Cancel
Save