Automated update from Qt3

pull/1/head
Timothy Pearson 13 years ago
parent a829bcdc53
commit 359640943b

@ -1319,7 +1319,7 @@
But it costs immodule developer small modification. But it costs immodule developer small modification.
* src/kernel/ntqinputcontext.h * src/kernel/ntqinputcontext.h
- (class QInputContext): Inherit QObject and add Q_OBJECT macro - (class QInputContext): Inherit QObject and add TQ_OBJECT macro
- (name): Remove to rename to identifierName() to avoid conflicting - (name): Remove to rename to identifierName() to avoid conflicting
with QObject::name() with QObject::name()
- (identifierName): New function. Renamed from name() - (identifierName): New function. Renamed from name()
@ -1419,7 +1419,7 @@
- Add #include "ntqinputcontext.h" to avoid compilation error - Add #include "ntqinputcontext.h" to avoid compilation error
* src/input/qximinputcontext_p.h * src/input/qximinputcontext_p.h
- (class QXIMInputContext): Add Q_OBJECT macro to follow the API change - (class QXIMInputContext): Add TQ_OBJECT macro to follow the API change
- (name): Remove to follow the API change - (name): Remove to follow the API change
- (identifierName): - (identifierName):
* New function. Renamed from name() * New function. Renamed from name()

12
configure vendored

@ -3124,7 +3124,7 @@ EOF
for MODULE in $MODULES; do for MODULE in $MODULES; do
if [ -d "$relpath/src/$MODULE" ]; then if [ -d "$relpath/src/$MODULE" ]; then
M=`echo $MODULE | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` M=`echo $MODULE | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
echo "#define QT_MODULE_$M" >>$outpath/include/ntqmodules.h.new echo "#define TQT_MODULE_$M" >>$outpath/include/ntqmodules.h.new
fi fi
done done
@ -3138,7 +3138,7 @@ else
fi fi
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# generate QT_BUILD_KEY # generate TQT_BUILD_KEY
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# some compilers generate binary incompatible code between different versions, # some compilers generate binary incompatible code between different versions,
@ -3275,7 +3275,7 @@ for build_option in $D_FLAGS; do
done done
# sort the compile time defines (helps ensure that changes in this configure # sort the compile time defines (helps ensure that changes in this configure
# script don't affect the QT_BUILD_KEY generation) # script don't affect the TQT_BUILD_KEY generation)
if [ -f .options ]; then if [ -f .options ]; then
for opt in `sort -f .options | uniq`; do for opt in `sort -f .options | uniq`; do
BUILD_OPTIONS="$BUILD_OPTIONS $opt" BUILD_OPTIONS="$BUILD_OPTIONS $opt"
@ -3284,9 +3284,9 @@ fi
rm -f .options rm -f .options
BUILD_OPTIONS="$BUILD_CONFIG $BUILD_OPTIONS" BUILD_OPTIONS="$BUILD_CONFIG $BUILD_OPTIONS"
QT_BUILD_KEY="$CFG_USER_BUILD_KEY $UNAME_MACHINE $UNAME_SYSTEM $COMPILER $BUILD_OPTIONS" TQT_BUILD_KEY="$CFG_USER_BUILD_KEY $UNAME_MACHINE $UNAME_SYSTEM $COMPILER $BUILD_OPTIONS"
# strip out leading/trailing/extra whitespace # strip out leading/trailing/extra whitespace
QT_BUILD_KEY=`echo $QT_BUILD_KEY | sed -e "s, *, ,g" -e "s,^ *,," -e "s, *$,,"` TQT_BUILD_KEY=`echo $TQT_BUILD_KEY | sed -e "s, *, ,g" -e "s,^ *,," -e "s, *$,,"`
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
# part of configuration information goes into ntqconfig.h # part of configuration information goes into ntqconfig.h
@ -3309,7 +3309,7 @@ cat >> $outpath/include/ntqconfig.h.new <<EOF
#define QT_PRODUCT_LICENSE "$Products" #define QT_PRODUCT_LICENSE "$Products"
/* Build key */ /* Build key */
#define QT_BUILD_KEY "$QT_BUILD_KEY" #define TQT_BUILD_KEY "$TQT_BUILD_KEY"
/* Machine byte-order */ /* Machine byte-order */
#define Q_BIG_ENDIAN 4321 #define Q_BIG_ENDIAN 4321

@ -86,7 +86,7 @@ declaration:
#include <ntqwindowsstyle.h> #include <ntqwindowsstyle.h>
class CustomStyle : public QWindowsStyle { class CustomStyle : public QWindowsStyle {
Q_OBJECT TQ_OBJECT
public: public:
CustomStyle(); CustomStyle();
~CustomStyle(); ~CustomStyle();

@ -99,7 +99,7 @@ Two important macros are:
\i \link ::Q_ASSERT() Q_ASSERT(b)\endlink where b is a boolean \i \link ::Q_ASSERT() Q_ASSERT(b)\endlink where b is a boolean
expression, writes the warning: "ASSERT: 'b' in file file.cpp (234)" expression, writes the warning: "ASSERT: 'b' in file file.cpp (234)"
if b is FALSE. if b is FALSE.
\i \link ::Q_CHECK_PTR() Q_CHECK_PTR(p)\endlink where p is a pointer. \i \link ::TQ_CHECK_PTR() TQ_CHECK_PTR(p)\endlink where p is a pointer.
Writes the warning "In file file.cpp, line 234: Out of memory" if p is Writes the warning "In file file.cpp, line 234: Out of memory" if p is
0. 0.
\endlist \endlist
@ -110,7 +110,7 @@ These macros are useful for detecting program errors, e.g. like this:
{ {
Q_ASSERT( size > 0 ); Q_ASSERT( size > 0 );
char *p = new char[size]; char *p = new char[size];
Q_CHECK_PTR( p ); TQ_CHECK_PTR( p );
return p; return p;
} }
\endcode \endcode
@ -121,22 +121,22 @@ exit after printing the error message.
Note that the Q_ASSERT macro is a null expression if \c QT_CHECK_STATE (see Note that the Q_ASSERT macro is a null expression if \c QT_CHECK_STATE (see
below) is not defined. Any code in it will simply not be below) is not defined. Any code in it will simply not be
executed. Similarly Q_CHECK_PTR is a null expression if \c QT_CHECK_NULL is executed. Similarly TQ_CHECK_PTR is a null expression if \c QT_CHECK_NULL is
not defined. Here is an example of how you should \e not use Q_ASSERT and not defined. Here is an example of how you should \e not use Q_ASSERT and
Q_CHECK_PTR: TQ_CHECK_PTR:
\code \code
char *alloc( int size ) char *alloc( int size )
{ {
char *p; char *p;
Q_CHECK_PTR( p = new char[size] ); // WRONG! TQ_CHECK_PTR( p = new char[size] ); // WRONG!
return p; return p;
} }
\endcode \endcode
The problem is tricky: \e p is set to a sane value only as long as the The problem is tricky: \e p is set to a sane value only as long as the
correct checking flags are defined. If this code is compiled without correct checking flags are defined. If this code is compiled without
the QT_CHECK_NULL flag defined, the code in the Q_CHECK_PTR expression is the QT_CHECK_NULL flag defined, the code in the TQ_CHECK_PTR expression is
not executed (correctly, since it's only a debugging aid) and \e alloc not executed (correctly, since it's only a debugging aid) and \e alloc
returns a wild pointer. returns a wild pointer.
@ -179,7 +179,7 @@ Example:
\section1 Common bugs \section1 Common bugs
There is one bug that is so common that it deserves mention here: If There is one bug that is so common that it deserves mention here: If
you include the Q_OBJECT macro in a class declaration and run the you include the TQ_OBJECT macro in a class declaration and run the
\link moc.html moc\endlink, but forget to link the moc-generated \link moc.html moc\endlink, but forget to link the moc-generated
object code into your executable, you will get very confusing error object code into your executable, you will get very confusing error
messages. Any link error complaining about a lack of \c{vtbl}, messages. Any link error complaining about a lack of \c{vtbl},

@ -55,7 +55,7 @@ This example displays an analog clock widget.
class TQTimer; class TQTimer;
class AnalogClock : public <a href="ntqwidget.html">TQWidget</a> // analog clock widget class AnalogClock : public <a href="ntqwidget.html">TQWidget</a> // analog clock widget
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
AnalogClock( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); AnalogClock( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
void setAutoMask(bool b); void setAutoMask(bool b);

@ -132,7 +132,7 @@ managed programming language.
<pre> // native TQt/C++ class <pre> // native TQt/C++ class
class Worker : public <a href="ntqobject.html">TQObject</a> class Worker : public <a href="ntqobject.html">TQObject</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
Q_PROPERTY(TQString statusString READ statusString WRITE setStatusString) Q_PROPERTY(TQString statusString READ statusString WRITE setStatusString)
public: public:
Worker(); Worker();

@ -59,7 +59,7 @@ class ABCentralWidget;
class ABMainWindow: public <a href="ntqmainwindow.html">TQMainWindow</a> class ABMainWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ABMainWindow(); ABMainWindow();
@ -230,7 +230,7 @@ class TQCheckBox;
class ABCentralWidget : public <a href="ntqwidget.html">TQWidget</a> class ABCentralWidget : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
ABCentralWidget( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name = 0 ); ABCentralWidget( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name = 0 );

@ -57,7 +57,7 @@ mail; it looks exactly like xbiff but is much shorter.
class Biff : public <a href="ntqwidget.html">TQWidget</a> class Biff : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Biff( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); Biff( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -57,7 +57,7 @@ class TQRadioButton;
class ButtonsGroups : public <a href="ntqwidget.html">TQWidget</a> class ButtonsGroups : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ButtonsGroups( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); ButtonsGroups( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -170,7 +170,7 @@ class TQString;
class ChartForm: public <a href="ntqmainwindow.html">TQMainWindow</a> class ChartForm: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
enum { MAX_ELEMENTS = 100 }; enum { MAX_ELEMENTS = 100 };
enum { MAX_RECENTFILES = 9 }; // Must not exceed 9 enum { MAX_RECENTFILES = 9 }; // Must not exceed 9

@ -57,7 +57,7 @@ public:
class FigureEditor : public <a href="qcanvasview.html">TQCanvasView</a> { class FigureEditor : public <a href="qcanvasview.html">TQCanvasView</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
FigureEditor(TQCanvas&amp;, TQWidget* parent=0, const char* name=0, WFlags f=0); FigureEditor(TQCanvas&amp;, TQWidget* parent=0, const char* name=0, WFlags f=0);
@ -76,7 +76,7 @@ private:
}; };
class Main : public <a href="ntqmainwindow.html">TQMainWindow</a> { class Main : public <a href="ntqmainwindow.html">TQMainWindow</a> {
Q_OBJECT TQ_OBJECT
public: public:
Main(TQCanvas&amp;, TQWidget* parent=0, const char* name=0, WFlags f=0); Main(TQCanvas&amp;, TQWidget* parent=0, const char* name=0, WFlags f=0);

@ -46,7 +46,7 @@ class TQPoint;
class CanvasView : public <a href="qcanvasview.html">TQCanvasView</a> class CanvasView : public <a href="qcanvasview.html">TQCanvasView</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CanvasView( <a href="ntqcanvas.html">TQCanvas</a> *canvas, ElementVector *elements, CanvasView( <a href="ntqcanvas.html">TQCanvas</a> *canvas, ElementVector *elements,
<a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = "canvas view", <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = "canvas view",

@ -52,7 +52,7 @@ class TQString;
class ChartForm: public <a href="ntqmainwindow.html">TQMainWindow</a> class ChartForm: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
enum { MAX_ELEMENTS = 100 }; enum { MAX_ELEMENTS = 100 };
enum { MAX_RECENTFILES = 9 }; // Must not exceed 9 enum { MAX_RECENTFILES = 9 }; // Must not exceed 9

@ -51,7 +51,7 @@ class TQVBoxLayout;
class OptionsForm : public <a href="ntqdialog.html">TQDialog</a> class OptionsForm : public <a href="ntqdialog.html">TQDialog</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
OptionsForm( <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = "options form", OptionsForm( <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = "options form",
bool modal = FALSE, WFlags f = 0 ); bool modal = FALSE, WFlags f = 0 );

@ -47,7 +47,7 @@ class TQVBoxLayout;
class SetDataForm: public <a href="ntqdialog.html">TQDialog</a> class SetDataForm: public <a href="ntqdialog.html">TQDialog</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
SetDataForm( ElementVector *elements, int decimalPlaces, SetDataForm( ElementVector *elements, int decimalPlaces,
<a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = "set data form", <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = "set data form",

@ -57,7 +57,7 @@ class TQLabel;
class CheckLists : public <a href="ntqwidget.html">TQWidget</a> class CheckLists : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
CheckLists( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); CheckLists( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -74,7 +74,7 @@ specified. You can send single lines to the server.
*/ */
class ClientSocket : public <a href="ntqsocket.html">TQSocket</a> class ClientSocket : public <a href="ntqsocket.html">TQSocket</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ClientSocket( int sock, TQObject *parent=0, const char *name=0 ) : ClientSocket( int sock, TQObject *parent=0, const char *name=0 ) :
<a href="ntqsocket.html">TQSocket</a>( parent, name ) <a href="ntqsocket.html">TQSocket</a>( parent, name )
@ -121,7 +121,7 @@ private:
*/ */
class SimpleServer : public <a href="ntqserversocket.html">TQServerSocket</a> class SimpleServer : public <a href="ntqserversocket.html">TQServerSocket</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
SimpleServer( <a href="ntqobject.html">TQObject</a>* parent=0 ) : SimpleServer( <a href="ntqobject.html">TQObject</a>* parent=0 ) :
<a href="ntqserversocket.html">TQServerSocket</a>( 4242, 1, parent ) <a href="ntqserversocket.html">TQServerSocket</a>( 4242, 1, parent )
@ -153,7 +153,7 @@ signals:
*/ */
class ServerInfo : public <a href="ntqvbox.html">TQVBox</a> class ServerInfo : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
ServerInfo() ServerInfo()
{ {
@ -235,7 +235,7 @@ int main( int argc, char** argv )
class Client : public <a href="ntqvbox.html">TQVBox</a> class Client : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
Client( const <a href="ntqstring.html">TQString</a> &amp;host, Q_UINT16 port ) Client( const <a href="ntqstring.html">TQString</a> &amp;host, Q_UINT16 port )
{ {

@ -53,7 +53,7 @@ machine</a>
<p> <a name="linkerror"></a> <p> <a name="linkerror"></a>
<h2> Link error, complaining about a lack of <tt>vtbl</tt>, <tt>_vtbl</tt>, <tt>__vtbl</tt> or similar <h2> Link error, complaining about a lack of <tt>vtbl</tt>, <tt>_vtbl</tt>, <tt>__vtbl</tt> or similar
</h2> </h2>
<a name="1"></a><p> This indicates that you've included the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro in a class <a name="1"></a><p> This indicates that you've included the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro in a class
declaration and probably also run the <a href="moc.html#moc">moc</a>, but forgot to link the declaration and probably also run the <a href="moc.html#moc">moc</a>, but forgot to link the
moc-generated object code into your executable. See <a href="moc.html">Using the Meta Object Compiler</a> for details on how to use moc. moc-generated object code into your executable. See <a href="moc.html">Using the Meta Object Compiler</a> for details on how to use moc.
<p> <a name="diffver"></a> <p> <a name="diffver"></a>

@ -74,7 +74,7 @@ declaration:
#include &lt;<a href="qwindowsstyle-h.html">ntqwindowsstyle.h</a>&gt; #include &lt;<a href="qwindowsstyle-h.html">ntqwindowsstyle.h</a>&gt;
class CustomStyle : public <a href="ntqwindowsstyle.html">TQWindowsStyle</a> { class CustomStyle : public <a href="ntqwindowsstyle.html">TQWindowsStyle</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
CustomStyle(); CustomStyle();
~CustomStyle(); ~CustomStyle();

@ -55,7 +55,7 @@ and date.
class DigitalClock : public <a href="ntqlcdnumber.html">TQLCDNumber</a> // digital clock widget class DigitalClock : public <a href="ntqlcdnumber.html">TQLCDNumber</a> // digital clock widget
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
DigitalClock( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); DigitalClock( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -81,7 +81,7 @@ often useful even without names.
<li> <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT(b)</a> where b is a boolean <li> <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT(b)</a> where b is a boolean
expression, writes the warning: "ASSERT: 'b' in file file.cpp (234)" expression, writes the warning: "ASSERT: 'b' in file file.cpp (234)"
if b is FALSE. if b is FALSE.
<li> <a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR(p)</a> where p is a pointer. <li> <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR(p)</a> where p is a pointer.
Writes the warning "In file file.cpp, line 234: Out of memory" if p is Writes the warning "In file file.cpp, line 234: Out of memory" if p is
0. 0.
</ul> </ul>
@ -91,7 +91,7 @@ Writes the warning "In file file.cpp, line 234: Out of memory" if p is
{ {
<a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>( size &gt; 0 ); <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>( size &gt; 0 );
char *p = new char[size]; char *p = new char[size];
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( p ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( p );
return p; return p;
} }
</pre> </pre>
@ -101,21 +101,21 @@ instead of warning(), so a failed assertion will cause the program to
exit after printing the error message. exit after printing the error message.
<p> Note that the Q_ASSERT macro is a null expression if <tt>QT_CHECK_STATE</tt> (see <p> Note that the Q_ASSERT macro is a null expression if <tt>QT_CHECK_STATE</tt> (see
below) is not defined. Any code in it will simply not be below) is not defined. Any code in it will simply not be
executed. Similarly Q_CHECK_PTR is a null expression if <tt>QT_CHECK_NULL</tt> is executed. Similarly TQ_CHECK_PTR is a null expression if <tt>QT_CHECK_NULL</tt> is
not defined. Here is an example of how you should <em>not</em> use Q_ASSERT and not defined. Here is an example of how you should <em>not</em> use Q_ASSERT and
Q_CHECK_PTR: TQ_CHECK_PTR:
<p> <pre> <p> <pre>
char *alloc( int size ) char *alloc( int size )
{ {
char *p; char *p;
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( p = new char[size] ); // WRONG! <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( p = new char[size] ); // WRONG!
return p; return p;
} }
</pre> </pre>
<p> The problem is tricky: <em>p</em> is set to a sane value only as long as the <p> The problem is tricky: <em>p</em> is set to a sane value only as long as the
correct checking flags are defined. If this code is compiled without correct checking flags are defined. If this code is compiled without
the QT_CHECK_NULL flag defined, the code in the Q_CHECK_PTR expression is the QT_CHECK_NULL flag defined, the code in the TQ_CHECK_PTR expression is
not executed (correctly, since it's only a debugging aid) and <em>alloc</em> not executed (correctly, since it's only a debugging aid) and <em>alloc</em>
returns a wild pointer. returns a wild pointer.
<p> The TQt library contains hundreds of internal checks that will print <p> The TQt library contains hundreds of internal checks that will print
@ -154,7 +154,7 @@ define QT_NO_CHECK.
<p> <h2> Common bugs <p> <h2> Common bugs
</h2> </h2>
<a name="4"></a><p> There is one bug that is so common that it deserves mention here: If <a name="4"></a><p> There is one bug that is so common that it deserves mention here: If
you include the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro in a class declaration and run the you include the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro in a class declaration and run the
<a href="moc.html">moc</a>, but forget to link the <a href="moc.html#moc">moc</a>-generated <a href="moc.html">moc</a>, but forget to link the <a href="moc.html#moc">moc</a>-generated
object code into your executable, you will get very confusing error object code into your executable, you will get very confusing error
messages. Any link error complaining about a lack of <tt>vtbl</tt>, messages. Any link error complaining about a lack of <tt>vtbl</tt>,

@ -47,7 +47,7 @@ SOURCES += main.cpp
<!-- index Subclassing --><p>When subclassing a form it is helpful to use a naming convention to help us identify which files are generated from <em>TQt Designer</em>'s<!-- index .ui --> <tt>.ui</tt> files and which are hand coded.</p> <!-- index Subclassing --><p>When subclassing a form it is helpful to use a naming convention to help us identify which files are generated from <em>TQt Designer</em>'s<!-- index .ui --> <tt>.ui</tt> files and which are hand coded.</p>
<p>Suppose, for example, that we are developing a dialog and writing the code directly in <em>TQt Designer</em>. We might call our dialog 'OptionsForm' and the<!-- index .ui --> <tt>.ui</tt> file, <tt>optionsform.ui</tt>. The automatically generated files will be <tt>optionsform.h</tt> and <tt>optionsform.cpp</tt>.</p> <p>Suppose, for example, that we are developing a dialog and writing the code directly in <em>TQt Designer</em>. We might call our dialog 'OptionsForm' and the<!-- index .ui --> <tt>.ui</tt> file, <tt>optionsform.ui</tt>. The automatically generated files will be <tt>optionsform.h</tt> and <tt>optionsform.cpp</tt>.</p>
<p>If we were developing another dialog, but this time one that we intended to subclass, we want to make it easy to distinguish between the automatically generated files and our hand coded files. For example, we might call our dialog 'SettingsFormBase' and the<!-- index .ui --> <tt>.ui</tt> file <tt>settingsformbase.ui</tt>. The automatically generated files would then be called <tt>settingsformbase.h</tt> and <tt>settingsformbase.cpp</tt>. We would then call our subclass 'SettingsForm' and code it in the files <tt>settingsform.h</tt> and <tt>settingsform.cpp</tt>.</p> <p>If we were developing another dialog, but this time one that we intended to subclass, we want to make it easy to distinguish between the automatically generated files and our hand coded files. For example, we might call our dialog 'SettingsFormBase' and the<!-- index .ui --> <tt>.ui</tt> file <tt>settingsformbase.ui</tt>. The automatically generated files would then be called <tt>settingsformbase.h</tt> and <tt>settingsformbase.cpp</tt>. We would then call our subclass 'SettingsForm' and code it in the files <tt>settingsform.h</tt> and <tt>settingsform.cpp</tt>.</p>
<!-- index Q_OBJECT!Macros --><!-- index Macros!Q_OBJECT --><!-- index Signals and Slots!Q_OBJECT --><p>Any subclass of a form should include the <tt>Q_OBJECT</tt> macro so that slots and signals will work correctly. Once you've created your subclass be sure to add the<!-- index .h --> <tt>.h</tt> and the<!-- index .cpp --> <tt>.cpp</tt> files to the<!-- index .pro --> <tt>.pro</tt> project file. For example we would add the following lines for our subclassed 'SettingsForm' at the end of the<!-- index .pro --> <tt>.pro</tt> file:</p> <!-- index TQ_OBJECT!Macros --><!-- index Macros!TQ_OBJECT --><!-- index Signals and Slots!TQ_OBJECT --><p>Any subclass of a form should include the <tt>TQ_OBJECT</tt> macro so that slots and signals will work correctly. Once you've created your subclass be sure to add the<!-- index .h --> <tt>.h</tt> and the<!-- index .cpp --> <tt>.cpp</tt> files to the<!-- index .pro --> <tt>.pro</tt> project file. For example we would add the following lines for our subclassed 'SettingsForm' at the end of the<!-- index .pro --> <tt>.pro</tt> file:</p>
<pre> <pre>
HEADERS += settingsform.h HEADERS += settingsform.h
SOURCES += settingsform.cpp SOURCES += settingsform.cpp
@ -102,7 +102,7 @@ int main( int argc, char *argv[] )
class CreditForm : public CreditFormBase class CreditForm : public CreditFormBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
CreditForm( <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = 0, CreditForm( <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = 0,
bool modal = FALSE, WFlags fl = 0 ); bool modal = FALSE, WFlags fl = 0 );
@ -111,7 +111,7 @@ int main( int argc, char *argv[] )
void setAmount(); void setAmount();
}; };
</pre> </pre>
<!-- index Macros!Q_OBJECT --><!-- index Q_OBJECT --> <p>We've declared the slot, <tt>setAmount()</tt>, that we created in <em>TQt Designer</em>. The <tt>Q_OBJECT</tt> macro is included because it is essential for classes that use signals and slots.</p> <!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --> <p>We've declared the slot, <tt>setAmount()</tt>, that we created in <em>TQt Designer</em>. The <tt>TQ_OBJECT</tt> macro is included because it is essential for classes that use signals and slots.</p>
<p>The implementation in <tt>qt/tools/designer/examples/credit/creditform.cpp</tt> is simple:</p> <p>The implementation in <tt>qt/tools/designer/examples/credit/creditform.cpp</tt> is simple:</p>
<pre> #include &lt;<a href="qradiobutton-h.html">ntqradiobutton.h</a>&gt; <pre> #include &lt;<a href="qradiobutton-h.html">ntqradiobutton.h</a>&gt;
#include &lt;<a href="qspinbox-h.html">ntqspinbox.h</a>&gt; #include &lt;<a href="qspinbox-h.html">ntqspinbox.h</a>&gt;
@ -250,7 +250,7 @@ INCLUDEPATH += $(QTDIR)/tools/designer/uilib
class Receiver : public <a href="ntqobject.html">TQObject</a> class Receiver : public <a href="ntqobject.html">TQObject</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
void setParent( <a href="ntqdialog.html">TQDialog</a> *parent ); void setParent( <a href="ntqdialog.html">TQDialog</a> *parent );
public slots: public slots:
@ -259,7 +259,7 @@ private:
<a href="ntqdialog.html">TQDialog</a> *p; <a href="ntqdialog.html">TQDialog</a> *p;
}; };
</pre> </pre>
<!-- index Macros!Q_OBJECT --><!-- index Q_OBJECT!Macros --><p>Our class must be a <a href="ntqobject.html">TQObject</a> subclass and because we're using signals and slots it must include the <tt>Q_OBJECT</tt> macro. We declare a function and the <tt>setAmount()</tt> slot that we wish to implement as well as a private <a href="ntqdialog.html">TQDialog</a> pointer.</p> <!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT!Macros --><p>Our class must be a <a href="ntqobject.html">TQObject</a> subclass and because we're using signals and slots it must include the <tt>TQ_OBJECT</tt> macro. We declare a function and the <tt>setAmount()</tt> slot that we wish to implement as well as a private <a href="ntqdialog.html">TQDialog</a> pointer.</p>
<p>The implementation requires the header files of the classes it uses:</p> <p>The implementation requires the header files of the classes it uses:</p>
<pre> #include &lt;<a href="qradiobutton-h.html">ntqradiobutton.h</a>&gt; <pre> #include &lt;<a href="qradiobutton-h.html">ntqradiobutton.h</a>&gt;
#include &lt;<a href="qspinbox-h.html">ntqspinbox.h</a>&gt; #include &lt;<a href="qspinbox-h.html">ntqspinbox.h</a>&gt;

@ -45,7 +45,7 @@ body { background: #ffffff; color: black; }
class Vcr : public <a href="ntqwidget.html">TQWidget</a> class Vcr : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
Vcr( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); Vcr( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
~Vcr() {} ~Vcr() {}
@ -56,8 +56,8 @@ body { background: #ffffff; color: black; }
void stop(); void stop();
}; };
</pre> </pre>
<!-- index Macros!Q_OBJECT --><!-- index Q_OBJECT --> <p>We include <tt>ntqwidget.h</tt> since we'll be deriving our custom widget from <a href="ntqwidget.html">TQWidget</a>. We declare a constructor where the widget will be created and the four signals we want our widget to emit.</p> <!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --> <p>We include <tt>ntqwidget.h</tt> since we'll be deriving our custom widget from <a href="ntqwidget.html">TQWidget</a>. We declare a constructor where the widget will be created and the four signals we want our widget to emit.</p>
<p><b>Note:</b> Since we're using signals we must also include the <tt>Q_OBJECT</tt> macro. This macro also ensures that information about the class is available via the <a href="metaobjects.html">Meta Object System</a> and ensures that <em>TQt Designer</em> will display the correct information about the widget.</p> <p><b>Note:</b> Since we're using signals we must also include the <tt>TQ_OBJECT</tt> macro. This macro also ensures that information about the class is available via the <a href="metaobjects.html">Meta Object System</a> and ensures that <em>TQt Designer</em> will display the correct information about the widget.</p>
<p>The implementation is straightforward. The only function we implement is the constructor. The rest of the file consists of include statements and embedded<!-- index .xpm --> <tt>.xpm</tt> images.</p> <p>The implementation is straightforward. The only function we implement is the constructor. The rest of the file consists of include statements and embedded<!-- index .xpm --> <tt>.xpm</tt> images.</p>
<pre> Vcr::Vcr( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) <pre> Vcr::Vcr( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )
: <a href="ntqwidget.html">TQWidget</a>( parent, name ) : <a href="ntqwidget.html">TQWidget</a>( parent, name )
@ -128,10 +128,10 @@ DBFILE = vcr.db
</pre> </pre>
<p>Our widget will be derived from <a href="ntqwidget.html">TQWidget</a> so we include the <tt>ntqwidget.h</tt> header file. We also forward declare the two classes that our widget will be built from.</p> <p>Our widget will be derived from <a href="ntqwidget.html">TQWidget</a> so we include the <tt>ntqwidget.h</tt> header file. We also forward declare the two classes that our widget will be built from.</p>
<pre></pre> <pre></pre>
<!-- index Macros!Q_OBJECT --><!-- index Q_OBJECT --><!-- index Macros!Q_ENUMS --><!-- index Q_ENUMS --> <p>We include the <tt>Q_OBJECT</tt> macro since this is required for classes that declare signals or slots. The <tt>Q_ENUMS</tt> declaration is used to register the Mode enumeration. Our widget has two properties, mode, to store whether the user should select a File or a Directory and fileName which stores the file or directory they chose.</p> <!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --><!-- index Macros!Q_ENUMS --><!-- index Q_ENUMS --> <p>We include the <tt>TQ_OBJECT</tt> macro since this is required for classes that declare signals or slots. The <tt>Q_ENUMS</tt> declaration is used to register the Mode enumeration. Our widget has two properties, mode, to store whether the user should select a File or a Directory and fileName which stores the file or directory they chose.</p>
<pre> class QT_WIDGET_PLUGIN_EXPORT FileChooser : public <a href="ntqwidget.html">TQWidget</a> <pre> class QT_WIDGET_PLUGIN_EXPORT FileChooser : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Mode ) Q_ENUMS( Mode )
Q_PROPERTY( Mode mode READ mode WRITE setMode ) Q_PROPERTY( Mode mode READ mode WRITE setMode )

@ -107,11 +107,11 @@ body { background: #ffffff; color: black; }
<li><p>Use TQt -- Add the TQt libraries to the active project</p> <li><p>Use TQt -- Add the TQt libraries to the active project</p>
<li><p>Add MOC -- Add the <tt>moc</tt> precompiler to the active file</p> <li><p>Add MOC -- Add the <tt>moc</tt> precompiler to the active file</p>
</ul><p>Double clicking a<!-- index .ui --> <tt>.ui</tt> file in the workspace overview will now launch <em>TQt Designer</em>.</p> </ul><p>Double clicking a<!-- index .ui --> <tt>.ui</tt> file in the workspace overview will now launch <em>TQt Designer</em>.</p>
<!-- index Macros!Q_OBJECT --><!-- index Q_OBJECT --><p>If you create a<!-- index .cpp --> <tt>.cpp</tt> file which contains the <tt>Q_OBJECT</tt> macro you will need an additional file which is generated by the <tt>moc</tt> to be included in your project. For example, if you have 'file.cpp', then the last line would be <tt>#include "file.moc"</tt> and the additional file would be called 'file.moc'. To ensure that Visual Studio executes the <tt>moc</tt> and generates this file you must create a custom dependency. Double click the<!-- index .cpp --> <tt>.cpp</tt> file (in your project workspace) that contains the <tt>Q_OBJECT</tt> macro. Click the <b>Add MOC</b> toolbar button; this will create an empty<!-- index .moc --> <tt>.moc</tt> file in your project workspace. Right click the newly created<!-- index .moc --> <tt>.moc</tt> file, then click <b>Settings</b> from the pop-up menu to invoke the Project Settings dialog. Click the Custom Build tab. Click the <b>Dependencies</b> button to pop up the User Defined Dependencies dialog. Type in <tt>$(InputDir)\$(InputPath)</tt>, then press <b>Return</b>. Click <b>OK</b> to leave the Dependencies dialog, then click <b>OK</b> to leave the Project Settings dialog.</p> <!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --><p>If you create a<!-- index .cpp --> <tt>.cpp</tt> file which contains the <tt>TQ_OBJECT</tt> macro you will need an additional file which is generated by the <tt>moc</tt> to be included in your project. For example, if you have 'file.cpp', then the last line would be <tt>#include "file.moc"</tt> and the additional file would be called 'file.moc'. To ensure that Visual Studio executes the <tt>moc</tt> and generates this file you must create a custom dependency. Double click the<!-- index .cpp --> <tt>.cpp</tt> file (in your project workspace) that contains the <tt>TQ_OBJECT</tt> macro. Click the <b>Add MOC</b> toolbar button; this will create an empty<!-- index .moc --> <tt>.moc</tt> file in your project workspace. Right click the newly created<!-- index .moc --> <tt>.moc</tt> file, then click <b>Settings</b> from the pop-up menu to invoke the Project Settings dialog. Click the Custom Build tab. Click the <b>Dependencies</b> button to pop up the User Defined Dependencies dialog. Type in <tt>$(InputDir)\$(InputPath)</tt>, then press <b>Return</b>. Click <b>OK</b> to leave the Dependencies dialog, then click <b>OK</b> to leave the Project Settings dialog.</p>
<p>If you wish to delete the add-in remove it from the toolbar then delete the<!-- index qmsdev.dll --> <tt>qmsdev.dll</tt> file from the add-ins directory.</p> <p>If you wish to delete the add-in remove it from the toolbar then delete the<!-- index qmsdev.dll --> <tt>qmsdev.dll</tt> file from the add-ins directory.</p>
<h4><a name="3-1"></a>Creating Makefiles without qmake</h4> <h4><a name="3-1"></a>Creating Makefiles without qmake</h4>
<!-- index Makefiles --><p>The <tt>qmake</tt> tool provided with TQt can create Makefiles appropriate to your platform based on<!-- index .pro --> <tt>.pro</tt> project files. This section describes the dependencies involved in building a TQt application and gives a couple of simple example Makefiles. This section assumes that you have a good understanding of Makefiles.</p> <!-- index Makefiles --><p>The <tt>qmake</tt> tool provided with TQt can create Makefiles appropriate to your platform based on<!-- index .pro --> <tt>.pro</tt> project files. This section describes the dependencies involved in building a TQt application and gives a couple of simple example Makefiles. This section assumes that you have a good understanding of Makefiles.</p>
<!-- index Macros!Q_OBJECT --><!-- index Q_OBJECT --><p><em>TQt Designer</em> produces<!-- index .ui --> <tt>.ui</tt> files which are used to generate<!-- index .h --> <tt>.h</tt> and<!-- index .cpp --> <tt>.cpp</tt> files for the compiler to compile. The<!-- index .ui --> <tt>.ui</tt> files are processed by <tt>uic</tt>. Classes which inherit from <a href="ntqobject.html">TQObject</a>, e.g. those which use slots and signals, require an additional<!-- index .cpp --> <tt>.cpp</tt> file to be generated. These files are generated by the <tt>moc</tt> and are named '<em>moc_</em>file.cpp' where the original<!-- index .cpp --> <tt>.cpp</tt> file is called 'file.cpp'. If your<!-- index .cpp --> <tt>.cpp</tt> file contains the <tt>Q_OBJECT</tt> macro an additional file 'file.moc' should be generated which must be <tt>#include</tt>d in the<!-- index .cpp --> <tt>.cpp</tt>, normally at the end. This requires an extra dependency being created.</p> <!-- index Macros!TQ_OBJECT --><!-- index TQ_OBJECT --><p><em>TQt Designer</em> produces<!-- index .ui --> <tt>.ui</tt> files which are used to generate<!-- index .h --> <tt>.h</tt> and<!-- index .cpp --> <tt>.cpp</tt> files for the compiler to compile. The<!-- index .ui --> <tt>.ui</tt> files are processed by <tt>uic</tt>. Classes which inherit from <a href="ntqobject.html">TQObject</a>, e.g. those which use slots and signals, require an additional<!-- index .cpp --> <tt>.cpp</tt> file to be generated. These files are generated by the <tt>moc</tt> and are named '<em>moc_</em>file.cpp' where the original<!-- index .cpp --> <tt>.cpp</tt> file is called 'file.cpp'. If your<!-- index .cpp --> <tt>.cpp</tt> file contains the <tt>TQ_OBJECT</tt> macro an additional file 'file.moc' should be generated which must be <tt>#include</tt>d in the<!-- index .cpp --> <tt>.cpp</tt>, normally at the end. This requires an extra dependency being created.</p>
<p>Processing<!-- index .ui --> <tt>.ui</tt> files with <tt>uic</tt> is done <em>twice</em>:</p> <p>Processing<!-- index .ui --> <tt>.ui</tt> files with <tt>uic</tt> is done <em>twice</em>:</p>
<pre> <pre>
uic myform.ui -o myform.h uic myform.ui -o myform.h

@ -113,7 +113,7 @@ private:
class DirectoryView : public <a href="ntqlistview.html">TQListView</a> class DirectoryView : public <a href="ntqlistview.html">TQListView</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
DirectoryView( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, bool sdo = FALSE ); DirectoryView( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, bool sdo = FALSE );

@ -170,7 +170,7 @@ DrawThing ourDrawFunctions[] = {
class DrawView : public <a href="ntqwidget.html">TQWidget</a> class DrawView : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
DrawView(); DrawView();
~DrawView(); ~DrawView();

@ -73,7 +73,7 @@ class TQResizeEvent;
class TQtFileIconDrag : public <a href="qicondrag.html">TQIconDrag</a> class TQtFileIconDrag : public <a href="qicondrag.html">TQIconDrag</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
TQtFileIconDrag( <a href="ntqwidget.html">TQWidget</a> * dragSource, const char* name = 0 ); TQtFileIconDrag( <a href="ntqwidget.html">TQWidget</a> * dragSource, const char* name = 0 );
@ -96,7 +96,7 @@ private:
class TQtFileIconViewItem; class TQtFileIconViewItem;
class TQtFileIconView : public <a href="ntqiconview.html">TQIconView</a> class TQtFileIconView : public <a href="ntqiconview.html">TQIconView</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQtFileIconView( const <a href="ntqstring.html">TQString</a> &amp;dir, TQWidget *parent = 0, const char *name = 0 ); TQtFileIconView( const <a href="ntqstring.html">TQString</a> &amp;dir, TQWidget *parent = 0, const char *name = 0 );
@ -1079,7 +1079,7 @@ class TQToolButton;
class FileMainWindow : public <a href="ntqmainwindow.html">TQMainWindow</a> class FileMainWindow : public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
FileMainWindow(); FileMainWindow();

@ -63,7 +63,7 @@ const int numColors = 120;
class Forever : public <a href="ntqwidget.html">TQWidget</a> class Forever : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Forever( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); Forever( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
protected: protected:

@ -40,8 +40,8 @@ API with links to the class documentation for each function.
<ul> <ul>
<li>DTDHandler: <li>DTDHandler:
<a href="qxmlreader.html#DTDHandler">TQXmlReader</a><li>Q_ASSERT: <a href="qxmlreader.html#DTDHandler">TQXmlReader</a><li>Q_ASSERT:
<a href="ntqapplication.html#Q_ASSERT">TQApplication</a><li>Q_CHECK_PTR: <a href="ntqapplication.html#Q_ASSERT">TQApplication</a><li>TQ_CHECK_PTR:
<a href="ntqapplication.html#Q_CHECK_PTR">TQApplication</a><li><a name="a"></a> <a href="ntqapplication.html#TQ_CHECK_PTR">TQApplication</a><li><a name="a"></a>
abort: abort:
<a href="ntqftp.html#abort">TQFtp</a> <a href="ntqhttp.html#abort">TQHttp</a> <a href="ntqprinter.html#abort">TQPrinter</a><li>aborted: <a href="ntqftp.html#abort">TQFtp</a> <a href="ntqhttp.html#abort">TQHttp</a> <a href="ntqprinter.html#abort">TQPrinter</a><li>aborted:
<a href="ntqprinter.html#aborted">TQPrinter</a><li>about: <a href="ntqprinter.html#aborted">TQPrinter</a><li>about:

@ -121,7 +121,7 @@ public:
// //
class Graph : public <a href="qnpwidget.html">TQNPWidget</a> { class Graph : public <a href="qnpwidget.html">TQNPWidget</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
// Constructs a Graph to display a GraphModel // Constructs a Graph to display a GraphModel
// //
@ -449,7 +449,7 @@ const char* Graph::styleName[] = { "Pie", "Bar", 0 };
// //
class Grapher : public <a href="qnpinstance.html">TQNPInstance</a>, GraphModel { class Grapher : public <a href="qnpinstance.html">TQNPInstance</a>, GraphModel {
Q_OBJECT TQ_OBJECT
public: public:
// Create a Grapher - all Grapher plugins are created // Create a Grapher - all Grapher plugins are created
// by one GrapherPlugin object. // by one GrapherPlugin object.

@ -55,7 +55,7 @@ and in different colors.
class Hello : public <a href="ntqwidget.html">TQWidget</a> class Hello : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Hello( const char *text, TQWidget *parent=0, const char *name=0 ); Hello( const char *text, TQWidget *parent=0, const char *name=0 );
signals: signals:

@ -145,7 +145,7 @@ the cell, and use <a href="ntqtooltip.html#tip">TQToolTip::tip</a>() to display
in a tooltip and to provide text for the <a href="qtooltipgroup.html">TQToolTipGroup</a> as before. in a tooltip and to provide text for the <a href="qtooltipgroup.html">TQToolTipGroup</a> as before.
<pre> class WhatsThis : public <a href="ntqobject.html">TQObject</a>, public TQWhatsThis <pre> class WhatsThis : public <a href="ntqobject.html">TQObject</a>, public TQWhatsThis
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
WhatsThis( <a href="ntqwidget.html">TQWidget</a> *w, TQWidget *watch = 0 ); WhatsThis( <a href="ntqwidget.html">TQWidget</a> *w, TQWidget *watch = 0 );
@ -303,7 +303,7 @@ and return a string accordingly.
<pre> class MainWindow : public <a href="ntqmainwindow.html">TQMainWindow</a> <pre> class MainWindow : public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
MainWindow(); MainWindow();
~MainWindow(); ~MainWindow();

@ -61,7 +61,7 @@ class TQPopupMenu;
class HelpWindow : public <a href="ntqmainwindow.html">TQMainWindow</a> class HelpWindow : public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
HelpWindow( const <a href="ntqstring.html">TQString</a>&amp; home_, const <a href="ntqstring.html">TQString</a>&amp; path, TQWidget* parent = 0, const char *name=0 ); HelpWindow( const <a href="ntqstring.html">TQString</a>&amp; home_, const <a href="ntqstring.html">TQString</a>&amp; path, TQWidget* parent = 0, const char *name=0 );
~HelpWindow(); ~HelpWindow();

@ -63,7 +63,7 @@ sending the page, it closes the connection.
// HttpDaemon is the the class that implements the simple HTTP server. // HttpDaemon is the the class that implements the simple HTTP server.
class HttpDaemon : public <a href="ntqserversocket.html">TQServerSocket</a> class HttpDaemon : public <a href="ntqserversocket.html">TQServerSocket</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
HttpDaemon( <a href="ntqobject.html">TQObject</a>* parent=0 ) : HttpDaemon( <a href="ntqobject.html">TQObject</a>* parent=0 ) :
<a href="ntqserversocket.html">TQServerSocket</a>(8080,1,parent) <a href="ntqserversocket.html">TQServerSocket</a>(8080,1,parent)
@ -126,7 +126,7 @@ private slots:
// the actions of the server. // the actions of the server.
class HttpInfo : public <a href="ntqvbox.html">TQVBox</a> class HttpInfo : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
HttpInfo() HttpInfo()
{ {

@ -57,7 +57,7 @@ This example shows how to internationalize applications. Start it with
class MyWidget : public <a href="ntqmainwindow.html">TQMainWindow</a> class MyWidget : public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
MyWidget( <a href="ntqwidget.html">TQWidget</a>* parent=0, const char* name = 0 ); MyWidget( <a href="ntqwidget.html">TQWidget</a>* parent=0, const char* name = 0 );

@ -58,7 +58,7 @@ view modes, rubberband selection, etc.
class ListenDND : public <a href="ntqobject.html">TQObject</a> class ListenDND : public <a href="ntqobject.html">TQObject</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ListenDND( <a href="ntqwidget.html">TQWidget</a> *w ) ListenDND( <a href="ntqwidget.html">TQWidget</a> *w )

@ -55,7 +55,7 @@ class TQDragDropEvent;
class DDListBox : public <a href="ntqlistbox.html">TQListBox</a> class DDListBox : public <a href="ntqlistbox.html">TQListBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
DDListBox( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ); DDListBox( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 );
// Low-level drag and drop // Low-level drag and drop
@ -83,7 +83,7 @@ public:
class DDIconView : public <a href="ntqiconview.html">TQIconView</a> class DDIconView : public <a href="ntqiconview.html">TQIconView</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
DDIconView( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) : DDIconView( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) :
<a href="ntqiconview.html">TQIconView</a>( parent, name, f ) {} <a href="ntqiconview.html">TQIconView</a>( parent, name, f ) {}

@ -8101,7 +8101,7 @@
"QXtWidget::xtWidget" qxtwidget.html#xtWidget "QXtWidget::xtWidget" qxtwidget.html#xtWidget
"QXtWidget::~QXtWidget" qxtwidget.html#~QXtWidget "QXtWidget::~QXtWidget" qxtwidget.html#~QXtWidget
"Q_ASSERT" ntqapplication.html#Q_ASSERT "Q_ASSERT" ntqapplication.html#Q_ASSERT
"Q_CHECK_PTR" ntqapplication.html#Q_CHECK_PTR "TQ_CHECK_PTR" ntqapplication.html#TQ_CHECK_PTR
"Qt" ntqt.html "Qt" ntqt.html
"Qt Commercial Editions" commercialeditions.html "Qt Commercial Editions" commercialeditions.html
"Qt Demo" demo-example.html "Qt Demo" demo-example.html

@ -153,8 +153,8 @@ sets any other settings needed to use TQt in that project.
<a name="3-7"></a><p> The 'Add MOC' button will add in the custom build step for the selected file <a name="3-7"></a><p> The 'Add MOC' button will add in the custom build step for the selected file
so that it creates any needed MOC files and it will add these generated so that it creates any needed MOC files and it will add these generated
files to the project. All you need to do to use it is click on a file that files to the project. All you need to do to use it is click on a file that
has <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> and click the button. has <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> and click the button.
<p> You only need to use this button if you added a file that has <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> in it by hand, you don't need to use this if you used any <p> You only need to use this button if you added a file that has <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> in it by hand, you don't need to use this if you used any
of the previously mentioned buttons. It can also be invoked by using of the previously mentioned buttons. It can also be invoked by using
the Ctrl+Shift+M key combination in Visual Studio. the Ctrl+Shift+M key combination in Visual Studio.
<p> <p>

@ -53,7 +53,7 @@ body { background: #ffffff; color: black; }
class LifeWidget : public <a href="ntqframe.html">TQFrame</a> class LifeWidget : public <a href="ntqframe.html">TQFrame</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
LifeWidget( int s = 10, TQWidget *parent = 0, const char *name = 0 ); LifeWidget( int s = 10, TQWidget *parent = 0, const char *name = 0 );

@ -57,7 +57,7 @@ class TQComboBox;
class LineEdits : public <a href="ntqgroupbox.html">TQGroupBox</a> class LineEdits : public <a href="ntqgroupbox.html">TQGroupBox</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
LineEdits( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); LineEdits( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
<pre> <pre>
button = new TQPushButton( tr("&amp;Quit"), this); button = new TQPushButton( tr("&amp;Quit"), this);
</pre> </pre>
<!-- index Q_OBJECT --><p>All <a href="ntqobject.html">TQObject</a> subclasses that use the <tt>Q_OBJECT</tt> macro implement the <tt>tr()</tt> function.</p> <!-- index TQ_OBJECT --><p>All <a href="ntqobject.html">TQObject</a> subclasses that use the <tt>TQ_OBJECT</tt> macro implement the <tt>tr()</tt> function.</p>
<p>Although the <tt>tr()</tt> call is normally made directly since it is usually called as a member function of a <a href="ntqobject.html">TQObject</a> subclass, in other cases an explicit class name can be supplied, for example:</p> <p>Although the <tt>tr()</tt> call is normally made directly since it is usually called as a member function of a <a href="ntqobject.html">TQObject</a> subclass, in other cases an explicit class name can be supplied, for example:</p>
<pre> <pre>
TQPushButton::tr("&amp;Quit") TQPushButton::tr("&amp;Quit")
@ -315,7 +315,7 @@ TRANSLATIONS = tt2_fr.ts \
<!-- index ArrowPad!in Translation Tutorial --><!-- index English Language --><p>In <tt>arrowpad.h</tt> we define the <tt>ArrowPad</tt> subclass which is a subclass of <a href="ntqwidget.html">TQWidget</a>. In the <em>Tutorial 2 Screenshot, English version</em>, above, the central widget with the four buttons is an <tt>ArrowPad</tt>.</p> <!-- index ArrowPad!in Translation Tutorial --><!-- index English Language --><p>In <tt>arrowpad.h</tt> we define the <tt>ArrowPad</tt> subclass which is a subclass of <a href="ntqwidget.html">TQWidget</a>. In the <em>Tutorial 2 Screenshot, English version</em>, above, the central widget with the four buttons is an <tt>ArrowPad</tt>.</p>
<pre> class ArrowPad : public <a href="ntqgrid.html">TQGrid</a> <pre> class ArrowPad : public <a href="ntqgrid.html">TQGrid</a>
</pre> </pre>
<!-- index Q_OBJECT --><!-- index tr() --><!-- index TQObject!tr() --><!-- index Translation Contexts --><!-- index Contexts!for Translation --> <p>When <a href="linguist-manual-2.html#2">lupdate</a> is run it not only extracts the source texts but it also groups them into contexts. A context is the name of the class in which the source text appears. Thus, in this example, "ArrowPad" is a context: it is the context of the texts in the <tt>ArrowPad</tt> class. The <tt>Q_OBJECT</tt> macro defines <tt>tr(x)</tt> in <tt>ArrowPad</tt> like this</p> <!-- index TQ_OBJECT --><!-- index tr() --><!-- index TQObject!tr() --><!-- index Translation Contexts --><!-- index Contexts!for Translation --> <p>When <a href="linguist-manual-2.html#2">lupdate</a> is run it not only extracts the source texts but it also groups them into contexts. A context is the name of the class in which the source text appears. Thus, in this example, "ArrowPad" is a context: it is the context of the texts in the <tt>ArrowPad</tt> class. The <tt>TQ_OBJECT</tt> macro defines <tt>tr(x)</tt> in <tt>ArrowPad</tt> like this</p>
<!-- index TQApplication!translate() --><!-- index translate()!TQApplication --><pre> <!-- index TQApplication!translate() --><!-- index translate()!TQApplication --><pre>
qApp-&gt;translate( "ArrowPad", x ) qApp-&gt;translate( "ArrowPad", x )
</pre> </pre>
@ -327,11 +327,11 @@ TRANSLATIONS = tt2_fr.ts \
<p align="center"><img align="middle" src="tt2_en.png" width="170" height="157"> <p align="center"><img align="middle" src="tt2_en.png" width="170" height="157">
</p> </p>
<blockquote><p align="center"><em>Tutorial 2 Screenshot, English version</em></p></blockquote> <blockquote><p align="center"><em>Tutorial 2 Screenshot, English version</em></p></blockquote>
<!-- index Q_OBJECT --><!-- index MainWindow!in Translation Tutorial --><pre> class MainWindow : public <a href="ntqmainwindow.html">TQMainWindow</a> <!-- index TQ_OBJECT --><!-- index MainWindow!in Translation Tutorial --><pre> class MainWindow : public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
Q_OBJECT TQ_OBJECT
</pre> </pre>
<p>In the <em>Tutorial 2 Screenshot, English version</em>, above, the whole window is a <tt>MainWindow</tt>. This is defined in the <tt>mainwindow.h</tt> header file. Here too, we use <tt>Q_OBJECT</tt>, so that <tt>MainWindow</tt> will become a context in <em>TQt Linguist</em>.</p> <p>In the <em>Tutorial 2 Screenshot, English version</em>, above, the whole window is a <tt>MainWindow</tt>. This is defined in the <tt>mainwindow.h</tt> header file. Here too, we use <tt>TQ_OBJECT</tt>, so that <tt>MainWindow</tt> will become a context in <em>TQt Linguist</em>.</p>
<p>In the implementation of <tt>MainWindow</tt>, <tt>mainwindow.cpp</tt>, we create an instance of our <tt>ArrowPad</tt> class</p> <p>In the implementation of <tt>MainWindow</tt>, <tt>mainwindow.cpp</tt>, we create an instance of our <tt>ArrowPad</tt> class</p>
<pre> ArrowPad *ap = new ArrowPad( this, "arrow pad" ); <pre> ArrowPad *ap = new ArrowPad( this, "arrow pad" );
</pre> </pre>
@ -426,9 +426,9 @@ TRANSLATIONS = tt3_pt.ts
<p>The PrintPanel is defined in <tt>printpanel.h</tt>.</p> <p>The PrintPanel is defined in <tt>printpanel.h</tt>.</p>
<pre> class PrintPanel : public <a href="ntqvbox.html">TQVBox</a> <pre> class PrintPanel : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
</pre> </pre>
<!-- index Q_OBJECT --><!-- index PrintPanel!in Translation Tutorial --> <p>PrintPanel is a <a href="ntqwidget.html">TQWidget</a>. It needs the <tt>Q_OBJECT</tt> macro for <tt>tr()</tt> to work properly.</p> <!-- index TQ_OBJECT --><!-- index PrintPanel!in Translation Tutorial --> <p>PrintPanel is a <a href="ntqwidget.html">TQWidget</a>. It needs the <tt>TQ_OBJECT</tt> macro for <tt>tr()</tt> to work properly.</p>
<p>The implementation file is <tt>printpanel.cpp</tt>.</p> <p>The implementation file is <tt>printpanel.cpp</tt>.</p>
<pre> /* <pre> /*
<a href="ntqlabel.html">TQLabel</a> *lab = new <a href="ntqlabel.html">TQLabel</a>( <a href="ntqobject.html#tr">tr</a>("&lt;b&gt;TROLL PRINT&lt;/b&gt;"), this ); <a href="ntqlabel.html">TQLabel</a> *lab = new <a href="ntqlabel.html">TQLabel</a>( <a href="ntqobject.html#tr">tr</a>("&lt;b&gt;TROLL PRINT&lt;/b&gt;"), this );

@ -60,7 +60,7 @@ class TQButtonGroup;
class ListBoxDemo: public <a href="ntqwidget.html">TQWidget</a> class ListBoxDemo: public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ListBoxDemo(); ListBoxDemo();
~ListBoxDemo(); ~ListBoxDemo();

@ -57,7 +57,7 @@ class TQLabel;
class ListBoxCombo : public <a href="ntqvbox.html">TQVBox</a> class ListBoxCombo : public <a href="ntqvbox.html">TQVBox</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ListBoxCombo( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); ListBoxCombo( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -120,7 +120,7 @@ protected:
class Folder : public <a href="ntqobject.html">TQObject</a> class Folder : public <a href="ntqobject.html">TQObject</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Folder( Folder *parent, const <a href="ntqstring.html">TQString</a> &amp;name ); Folder( Folder *parent, const <a href="ntqstring.html">TQString</a> &amp;name );
@ -179,7 +179,7 @@ protected:
class ListViews : public <a href="ntqsplitter.html">TQSplitter</a> class ListViews : public <a href="ntqsplitter.html">TQSplitter</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
ListViews( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); ListViews( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -60,7 +60,7 @@ class TQDns;
class Smtp : public <a href="ntqobject.html">TQObject</a> class Smtp : public <a href="ntqobject.html">TQObject</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Smtp( const <a href="ntqstring.html">TQString</a> &amp;from, const <a href="ntqstring.html">TQString</a> &amp;to, Smtp( const <a href="ntqstring.html">TQString</a> &amp;from, const <a href="ntqstring.html">TQString</a> &amp;to,

@ -62,7 +62,7 @@ class TQMovie;
class MDIWindow: public <a href="ntqmainwindow.html">TQMainWindow</a> class MDIWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
MDIWindow( <a href="ntqwidget.html">TQWidget</a>* parent, const char* name, int wflags ); MDIWindow( <a href="ntqwidget.html">TQWidget</a>* parent, const char* name, int wflags );
~MDIWindow(); ~MDIWindow();
@ -87,7 +87,7 @@ private:
class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a> class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
ApplicationWindow(); ApplicationWindow();
~ApplicationWindow(); ~ApplicationWindow();

@ -58,7 +58,7 @@ context menu.
class MenuExample : public <a href="ntqwidget.html">TQWidget</a> class MenuExample : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
MenuExample( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); MenuExample( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
@ -225,7 +225,7 @@ private:
<a href="ntqpixmap.html">TQPixmap</a> p2( p2_xpm ); <a href="ntqpixmap.html">TQPixmap</a> p2( p2_xpm );
<a href="ntqpixmap.html">TQPixmap</a> p3( p3_xpm ); <a href="ntqpixmap.html">TQPixmap</a> p3( p3_xpm );
<a href="ntqpopupmenu.html">TQPopupMenu</a> *print = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqpopupmenu.html">TQPopupMenu</a> *print = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( print ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( print );
<a name="x1879"></a> print-&gt;<a href="ntqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>(); <a name="x1879"></a> print-&gt;<a href="ntqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>();
<a name="x1869"></a> print-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Print to printer", this, SLOT(printer()) ); <a name="x1869"></a> print-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Print to printer", this, SLOT(printer()) );
print-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to &amp;file", this, SLOT(file()) ); print-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to &amp;file", this, SLOT(file()) );
@ -234,7 +234,7 @@ private:
print-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Printer &amp;Setup", this, SLOT(printerSetup()) ); print-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Printer &amp;Setup", this, SLOT(printerSetup()) );
<a href="ntqpopupmenu.html">TQPopupMenu</a> *file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqpopupmenu.html">TQPopupMenu</a> *file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( file ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( p1, "&amp;Open", this, SLOT(open()), CTRL+Key_O ); file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( p1, "&amp;Open", this, SLOT(open()), CTRL+Key_O );
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( p2, "&amp;New", this, SLOT(news()), CTRL+Key_N ); file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( p2, "&amp;New", this, SLOT(news()), CTRL+Key_N );
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( p3, "&amp;Save", this, SLOT(save()), CTRL+Key_S ); file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( p3, "&amp;Save", this, SLOT(save()), CTRL+Key_S );
@ -245,14 +245,14 @@ private:
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q ); file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "E&amp;xit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()), CTRL+Key_Q );
<a href="ntqpopupmenu.html">TQPopupMenu</a> *edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqpopupmenu.html">TQPopupMenu</a> *edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( edit ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit );
int undoID = edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Undo", this, SLOT(undo()) ); int undoID = edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Undo", this, SLOT(undo()) );
int redoID = edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Redo", this, SLOT(redo()) ); int redoID = edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Redo", this, SLOT(redo()) );
<a name="x1873"></a> edit-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( undoID, FALSE ); <a name="x1873"></a> edit-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( undoID, FALSE );
edit-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( redoID, FALSE ); edit-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( redoID, FALSE );
<a href="ntqpopupmenu.html">TQPopupMenu</a>* options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqpopupmenu.html">TQPopupMenu</a>* options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( options ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options );
options-&gt;<a href="ntqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>(); options-&gt;<a href="ntqpopupmenu.html#insertTearOffHandle">insertTearOffHandle</a>();
options-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("Options"); options-&gt;<a href="ntqwidget.html#setCaption">setCaption</a>("Options");
options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Normal Font", this, SLOT(normal()) ); options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Normal Font", this, SLOT(normal()) );
@ -276,13 +276,13 @@ private:
<a href="ntqpopupmenu.html">TQPopupMenu</a> *help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqpopupmenu.html">TQPopupMenu</a> *help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( help ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( help );
help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;About", this, SLOT(about()), CTRL+Key_H ); help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;About", this, SLOT(about()), CTRL+Key_H );
help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "About &amp;TQt", this, SLOT(aboutTQt()) ); help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "About &amp;TQt", this, SLOT(aboutTQt()) );
// If we used a TQMainWindow we could use its built-in menuBar(). // If we used a TQMainWindow we could use its built-in menuBar().
menu = new <a href="ntqmenubar.html">TQMenuBar</a>( this ); menu = new <a href="ntqmenubar.html">TQMenuBar</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( menu ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( menu );
menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file ); menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit ); menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options ); menu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options );
@ -292,7 +292,7 @@ private:
<a href="ntqlabel.html">TQLabel</a> *msg = new <a href="ntqlabel.html">TQLabel</a>( this ); <a href="ntqlabel.html">TQLabel</a> *msg = new <a href="ntqlabel.html">TQLabel</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( msg ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( msg );
msg-&gt;<a href="ntqlabel.html#setText">setText</a>( "A context menu is available.\n" msg-&gt;<a href="ntqlabel.html#setText">setText</a>( "A context menu is available.\n"
"Invoke it by right-clicking or by" "Invoke it by right-clicking or by"
" pressing the 'context' button." ); " pressing the 'context' button." );
@ -300,7 +300,7 @@ private:
<a name="x1864"></a> msg-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter ); <a name="x1864"></a> msg-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignCenter );
label = new <a href="ntqlabel.html">TQLabel</a>( this ); label = new <a href="ntqlabel.html">TQLabel</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( label ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( label );
label-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 ); label-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( 20, rect().center().y()-20, width()-40, 40 );
label-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised ); label-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Box | TQFrame::Raised );
<a name="x1863"></a> label-&gt;<a href="ntqframe.html#setLineWidth">setLineWidth</a>( 1 ); <a name="x1863"></a> label-&gt;<a href="ntqframe.html#setLineWidth">setLineWidth</a>( 1 );
@ -317,7 +317,7 @@ private:
<a name="x1881"></a>void MenuExample::<a href="ntqwidget.html#contextMenuEvent">contextMenuEvent</a>( <a href="qcontextmenuevent.html">TQContextMenuEvent</a> * ) <a name="x1881"></a>void MenuExample::<a href="ntqwidget.html#contextMenuEvent">contextMenuEvent</a>( <a href="qcontextmenuevent.html">TQContextMenuEvent</a> * )
{ {
<a href="ntqpopupmenu.html">TQPopupMenu</a>* contextMenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqpopupmenu.html">TQPopupMenu</a>* contextMenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( contextMenu ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( contextMenu );
<a href="ntqlabel.html">TQLabel</a> *caption = new <a href="ntqlabel.html">TQLabel</a>( "&lt;font color=darkblue&gt;&lt;u&gt;&lt;b&gt;" <a href="ntqlabel.html">TQLabel</a> *caption = new <a href="ntqlabel.html">TQLabel</a>( "&lt;font color=darkblue&gt;&lt;u&gt;&lt;b&gt;"
"Context Menu&lt;/b&gt;&lt;/u&gt;&lt;/font&gt;", this ); "Context Menu&lt;/b&gt;&lt;/u&gt;&lt;/font&gt;", this );
caption-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter ); caption-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( TQt::AlignCenter );
@ -326,7 +326,7 @@ private:
contextMenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Open...", this, SLOT(open()), CTRL+Key_O ); contextMenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Open...", this, SLOT(open()), CTRL+Key_O );
contextMenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Save", this, SLOT(save()), CTRL+Key_S ); contextMenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Save", this, SLOT(save()), CTRL+Key_S );
<a href="ntqpopupmenu.html">TQPopupMenu</a> *submenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqpopupmenu.html">TQPopupMenu</a> *submenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( submenu ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( submenu );
submenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Print to printer", this, SLOT(printer()) ); submenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Print to printer", this, SLOT(printer()) );
submenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to &amp;file", this, SLOT(file()) ); submenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to &amp;file", this, SLOT(file()) );
submenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to fa&amp;x", this, SLOT(fax()) ); submenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Print to fa&amp;x", this, SLOT(fax()) );

@ -33,21 +33,21 @@ body { background: #ffffff; color: black; }
<p> <!-- index meta object --><a name="meta-object"></a><!-- index Q_OBJECT --><a name="Q_OBJECT"></a> <p> <!-- index meta object --><a name="meta-object"></a><!-- index TQ_OBJECT --><a name="TQ_OBJECT"></a>
<p> TQt's Meta Object System provides the signals and slots mechanism for <p> TQt's Meta Object System provides the signals and slots mechanism for
inter-object communication, runtime type information, and the dynamic inter-object communication, runtime type information, and the dynamic
property system. property system.
<p> The Meta Object System is based on three things: <p> The Meta Object System is based on three things:
<ol type=1> <ol type=1>
<li> the <a href="ntqobject.html">TQObject</a> class; <li> the <a href="ntqobject.html">TQObject</a> class;
<li> the Q_OBJECT macro inside the private section of the class <li> the TQ_OBJECT macro inside the private section of the class
declaration; declaration;
<li> the <a href="moc.html">Meta Object Compiler (moc)</a>. <li> the <a href="moc.html">Meta Object Compiler (moc)</a>.
</ol> </ol>
<p> The <em><a href="moc.html#moc">moc</a></em> reads a C++ source file. If it finds one or more class <p> The <em><a href="moc.html#moc">moc</a></em> reads a C++ source file. If it finds one or more class
declarations that contain the Q_OBJECT macro, it produces another C++ declarations that contain the TQ_OBJECT macro, it produces another C++
source file which contains the meta object code for the classes that source file which contains the meta object code for the classes that
contain the Q_OBJECT macro. This generated source file is either contain the TQ_OBJECT macro. This generated source file is either
#included into the class's source file or compiled and linked with the #included into the class's source file or compiled and linked with the
class's implementation. class's implementation.
<p> In addition to providing the <a href="signalsandslots.html">signals and <p> In addition to providing the <a href="signalsandslots.html">signals and
@ -73,14 +73,14 @@ returns the associated <a href="ntqmetaobject.html">meta object</a> for the
class. class.
<p> </ul> <p> </ul>
<p> While it is possible to use TQObject as a base class without the <p> While it is possible to use TQObject as a base class without the
Q_OBJECT macro and without meta object code, neither signals and slots TQ_OBJECT macro and without meta object code, neither signals and slots
nor the other features described here will be available if the nor the other features described here will be available if the
Q_OBJECT macro is not used. From the meta object system's point of TQ_OBJECT macro is not used. From the meta object system's point of
view, a TQObject subclass without meta code is equivalent to its view, a TQObject subclass without meta code is equivalent to its
closest ancestor with meta object code. This means for example, that closest ancestor with meta object code. This means for example, that
className() will not return the actual name of your class, but the className() will not return the actual name of your class, but the
class name of this ancestor. We <em>strongly</em> recommend that all class name of this ancestor. We <em>strongly</em> recommend that all
subclasses of <a href="ntqobject.html">TQObject</a> use the Q_OBJECT macro regardless of whether subclasses of <a href="ntqobject.html">TQObject</a> use the TQ_OBJECT macro regardless of whether
they actually use signals, slots and properties or not. they actually use signals, slots and properties or not.
<p> <p>
<!-- eof --> <!-- eof -->

@ -37,9 +37,9 @@ body { background: #ffffff; color: black; }
<p> The Meta Object Compiler, moc among friends, is the program which <p> The Meta Object Compiler, moc among friends, is the program which
handles TQt's <a href="metaobjects.html">C++ extensions.</a> handles TQt's <a href="metaobjects.html">C++ extensions.</a>
<p> The moc reads a C++ source file. If it finds one or more class <p> The moc reads a C++ source file. If it finds one or more class
declarations that contain the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro, it produces another declarations that contain the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro, it produces another
C++ source file which contains the <a href="metaobjects.html#meta-object">meta object</a> code for the classes C++ source file which contains the <a href="metaobjects.html#meta-object">meta object</a> code for the classes
that use the Q_OBJECT macro. Among other things, meta object code is that use the TQ_OBJECT macro. Among other things, meta object code is
required for the signal/slot mechanism, runtime type information and required for the signal/slot mechanism, runtime type information and
the dynamic property system. the dynamic property system.
<p> The C++ source file generated by the moc must be compiled and linked <p> The C++ source file generated by the moc must be compiled and linked
@ -57,7 +57,7 @@ like this:
<p> <pre> <p> <pre>
class MyClass : public <a href="ntqobject.html">TQObject</a> class MyClass : public <a href="ntqobject.html">TQObject</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyClass( <a href="ntqobject.html">TQObject</a> * parent=0, const char * name=0 ); MyClass( <a href="ntqobject.html">TQObject</a> * parent=0, const char * name=0 );
~MyClass(); ~MyClass();
@ -82,7 +82,7 @@ function <tt>setPriority()</tt>.
<p> <pre> <p> <pre>
class MyClass : public <a href="ntqobject.html">TQObject</a> class MyClass : public <a href="ntqobject.html">TQObject</a>
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) Q_PROPERTY( Priority priority READ priority WRITE setPriority )
Q_ENUMS( Priority ) Q_ENUMS( Priority )
public: public:
@ -102,7 +102,7 @@ attach additional name/value-pairs to the class' meta object:
<p> <pre> <p> <pre>
class MyClass : public <a href="ntqobject.html">TQObject</a> class MyClass : public <a href="ntqobject.html">TQObject</a>
{ {
Q_OBJECT TQ_OBJECT
Q_CLASSINFO( "Author", "Oscar Peterson") Q_CLASSINFO( "Author", "Oscar Peterson")
Q_CLASSINFO( "Status", "Active") Q_CLASSINFO( "Status", "Active")
public: public:
@ -144,7 +144,7 @@ it is not necessary to compile and link it separately, as in Method A.
<p> </dl> <p> </dl>
<p> Method A is the normal method. Method B can be used in cases where you <p> Method A is the normal method. Method B can be used in cases where you
want the implementation file to be self-contained, or in cases where want the implementation file to be self-contained, or in cases where
the Q_OBJECT class is implementation-internal and thus should not be the TQ_OBJECT class is implementation-internal and thus should not be
visible in the header file. visible in the header file.
<p> <h2> Automating moc Usage with Makefiles <p> <h2> Automating moc Usage with Makefiles
</h2> </h2>
@ -157,7 +157,7 @@ recognizes both Method A and B style source files, and generates a
Makefile that does all the necessary moc handling. Makefile that does all the necessary moc handling.
<p> If you want to create your Makefiles yourself, here are some tips on <p> If you want to create your Makefiles yourself, here are some tips on
how to include moc handling. how to include moc handling.
<p> For Q_OBJECT class declarations in header files, here is a useful <p> For TQ_OBJECT class declarations in header files, here is a useful
makefile rule if you only use GNU make: makefile rule if you only use GNU make:
<p> <pre> <p> <pre>
moc_%.cpp: %.h moc_%.cpp: %.h
@ -177,7 +177,7 @@ following form:
<p> (While we prefer to name our C++ source files .cpp, the moc doesn't <p> (While we prefer to name our C++ source files .cpp, the moc doesn't
care, so you can use .C, .cc, .CC, .cxx or even .c++ if you care, so you can use .C, .cc, .CC, .cxx or even .c++ if you
prefer.) prefer.)
<p> For Q_OBJECT class declarations in implementation (.cpp) files, we <p> For TQ_OBJECT class declarations in implementation (.cpp) files, we
suggest a makefile rule like this: suggest a makefile rule like this:
<p> <pre> <p> <pre>
NAME.o: NAME.moc NAME.o: NAME.moc
@ -240,7 +240,7 @@ MOC_SKIP_END.
<p> <h2> Diagnostics <p> <h2> Diagnostics
</h2> </h2>
<a name="4"></a><p> The moc will warn you about a number of dangerous or illegal <a name="4"></a><p> The moc will warn you about a number of dangerous or illegal
constructs in the Q_OBJECT class declarations. constructs in the TQ_OBJECT class declarations.
<p> If you get linkage errors in the final building phase of your <p> If you get linkage errors in the final building phase of your
program, saying that YourClass::className() is undefined or that program, saying that YourClass::className() is undefined or that
YourClass lacks a vtbl, something has been done wrong. Most often, YourClass lacks a vtbl, something has been done wrong. Most often,
@ -255,7 +255,7 @@ not usually a problem in practice.
templates cannot have signals or slots. Here is an example: templates cannot have signals or slots. Here is an example:
<p> <pre> <p> <pre>
class SomeTemplate&lt;int&gt; : public <a href="ntqframe.html">TQFrame</a> { class SomeTemplate&lt;int&gt; : public <a href="ntqframe.html">TQFrame</a> {
Q_OBJECT TQ_OBJECT
... ...
signals: signals:
void bugInMocDetected( int ); void bugInMocDetected( int );
@ -286,7 +286,7 @@ signal/slot arguments, we think inheritance is a better alternative.
Here is an example of illegal syntax: Here is an example of illegal syntax:
<p> <pre> <p> <pre>
class SomeClass : public <a href="ntqobject.html">TQObject</a> { class SomeClass : public <a href="ntqobject.html">TQObject</a> {
Q_OBJECT TQ_OBJECT
... ...
public slots: public slots:
// illegal // illegal
@ -299,7 +299,7 @@ Here is an example of illegal syntax:
typedef void (*ApplyFunctionType)( List *, void * ); typedef void (*ApplyFunctionType)( List *, void * );
class SomeClass : public <a href="ntqobject.html">TQObject</a> { class SomeClass : public <a href="ntqobject.html">TQObject</a> {
Q_OBJECT TQ_OBJECT
... ...
public slots: public slots:
void apply( ApplyFunctionType, char * ); void apply( ApplyFunctionType, char * );
@ -316,7 +316,7 @@ protected or public sections instead. Here is an example of the
illegal syntax: illegal syntax:
<p> <pre> <p> <pre>
class SomeClass : public <a href="ntqobject.html">TQObject</a> { class SomeClass : public <a href="ntqobject.html">TQObject</a> {
Q_OBJECT TQ_OBJECT
... ...
signals: signals:
friend class ClassTemplate&lt;char&gt;; // WRONG friend class ClassTemplate&lt;char&gt;; // WRONG
@ -371,7 +371,7 @@ signals or slots
<a name="5-6"></a><p> Here's an example: <a name="5-6"></a><p> Here's an example:
<p> <pre> <p> <pre>
class A { class A {
Q_OBJECT TQ_OBJECT
public: public:
class B { class B {
public slots: // WRONG public slots: // WRONG
@ -395,7 +395,7 @@ protected or public sections, where they belong. Here is an example
of the illegal syntax: of the illegal syntax:
<p> <pre> <p> <pre>
class SomeClass : public <a href="ntqobject.html">TQObject</a> { class SomeClass : public <a href="ntqobject.html">TQObject</a> {
Q_OBJECT TQ_OBJECT
public slots: public slots:
SomeClass( <a href="ntqobject.html">TQObject</a> *parent, const char *name ) SomeClass( <a href="ntqobject.html">TQObject</a> *parent, const char *name )
: <a href="ntqobject.html">TQObject</a>( parent, name ) { } // WRONG : <a href="ntqobject.html">TQObject</a>( parent, name ) { } // WRONG
@ -413,7 +413,7 @@ find the functions nor resolve the type. Here is an example of the
illegal syntax: illegal syntax:
<p> <pre> <p> <pre>
class SomeClass : public <a href="ntqobject.html">TQObject</a> { class SomeClass : public <a href="ntqobject.html">TQObject</a> {
Q_OBJECT TQ_OBJECT
public: public:
... ...
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) // WRONG Q_PROPERTY( Priority priority READ priority WRITE setPriority ) // WRONG
@ -426,10 +426,10 @@ illegal syntax:
</pre> </pre>
<p> Work around this limitation by declaring all properties at the <p> Work around this limitation by declaring all properties at the
beginning of the class declaration, right after Q_OBJECT: beginning of the class declaration, right after TQ_OBJECT:
<p> <pre> <p> <pre>
class SomeClass : public <a href="ntqobject.html">TQObject</a> { class SomeClass : public <a href="ntqobject.html">TQObject</a> {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) Q_PROPERTY( Priority priority READ priority WRITE setPriority )
Q_ENUMS( Priority ) Q_ENUMS( Priority )
public: public:

@ -59,7 +59,7 @@ The Movies example displays MNG and animated GIF files using the <a href="ntqmov
class MovieScreen : public <a href="ntqframe.html">TQFrame</a> { class MovieScreen : public <a href="ntqframe.html">TQFrame</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
<a href="ntqmovie.html">TQMovie</a> movie; <a href="ntqmovie.html">TQMovie</a> movie;
<a href="ntqstring.html">TQString</a> filename; <a href="ntqstring.html">TQString</a> filename;
<a href="ntqsize.html">TQSize</a> sh; <a href="ntqsize.html">TQSize</a> sh;
@ -259,7 +259,7 @@ public:
// A TQFileDialog that chooses movies. // A TQFileDialog that chooses movies.
// //
class MovieStarter: public <a href="ntqfiledialog.html">TQFileDialog</a> { class MovieStarter: public <a href="ntqfiledialog.html">TQFileDialog</a> {
Q_OBJECT TQ_OBJECT
public: public:
MovieStarter(const char *dir); MovieStarter(const char *dir);

@ -57,7 +57,7 @@ should not be used as a real NNTP implemention.
class Nntp : public <a href="ntqnetworkprotocol.html">TQNetworkProtocol</a> class Nntp : public <a href="ntqnetworkprotocol.html">TQNetworkProtocol</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Nntp(); Nntp();

@ -178,7 +178,7 @@ flow and main settings.
<li class=fn>void <a href="#qFatal"><b>qFatal</b></a> ( const&nbsp;char&nbsp;*&nbsp;msg, ... )</li> <li class=fn>void <a href="#qFatal"><b>qFatal</b></a> ( const&nbsp;char&nbsp;*&nbsp;msg, ... )</li>
<li class=fn>void <a href="#qSystemWarning"><b>qSystemWarning</b></a> ( const&nbsp;char&nbsp;*&nbsp;msg, int&nbsp;code )</li> <li class=fn>void <a href="#qSystemWarning"><b>qSystemWarning</b></a> ( const&nbsp;char&nbsp;*&nbsp;msg, int&nbsp;code )</li>
<li class=fn>void <a href="#Q_ASSERT"><b>Q_ASSERT</b></a> ( bool&nbsp;test )</li> <li class=fn>void <a href="#Q_ASSERT"><b>Q_ASSERT</b></a> ( bool&nbsp;test )</li>
<li class=fn>void <a href="#Q_CHECK_PTR"><b>Q_CHECK_PTR</b></a> ( void&nbsp;*&nbsp;p )</li> <li class=fn>void <a href="#TQ_CHECK_PTR"><b>TQ_CHECK_PTR</b></a> ( void&nbsp;*&nbsp;p )</li>
<li class=fn>TQtMsgHandler <a href="#qInstallMsgHandler"><b>qInstallMsgHandler</b></a> ( TQtMsgHandler&nbsp;h )</li> <li class=fn>TQtMsgHandler <a href="#qInstallMsgHandler"><b>qInstallMsgHandler</b></a> ( TQtMsgHandler&nbsp;h )</li>
</ul> </ul>
<hr><a name="details"></a><h2>Detailed Description</h2> <hr><a name="details"></a><h2>Detailed Description</h2>
@ -1808,7 +1808,7 @@ message using the <a href="#qWarning">qWarning</a>() function:
<p> <p>See also <a href="#qWarning">qWarning</a>() and <a href="debug.html">Debugging</a>. <p> <p>See also <a href="#qWarning">qWarning</a>() and <a href="debug.html">Debugging</a>.
<h3 class=fn>void <a name="Q_CHECK_PTR"></a>Q_CHECK_PTR ( void&nbsp;*&nbsp;p ) <h3 class=fn>void <a name="TQ_CHECK_PTR"></a>TQ_CHECK_PTR ( void&nbsp;*&nbsp;p )
</h3> </h3>
<p> <p>
@ -1819,10 +1819,10 @@ name and line number, saying that the program ran out of memory.
<pre> <pre>
int *a; int *a;
<a href="#Q_CHECK_PTR">Q_CHECK_PTR</a>( a = new int[80] ); // WRONG! <a href="#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( a = new int[80] ); // WRONG!
a = new (nothrow) int[80]; // Right a = new (nothrow) int[80]; // Right
<a href="#Q_CHECK_PTR">Q_CHECK_PTR</a>( a ); <a href="#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( a );
</pre> </pre>
<p> <p>See also <a href="#qWarning">qWarning</a>() and <a href="debug.html">Debugging</a>. <p> <p>See also <a href="#qWarning">qWarning</a>() and <a href="debug.html">Debugging</a>.
@ -2004,9 +2004,9 @@ defined.
<p> Returns the TQt version number as a string, for example, "2.3.0" or <p> Returns the TQt version number as a string, for example, "2.3.0" or
"3.0.5". "3.0.5".
<p> The <tt>QT_VERSION</tt> define has the numeric value in the form: <p> The <tt>TQT_VERSION</tt> define has the numeric value in the form:
0xmmiibb (m = major, i = minor, b = bugfix). For example, TQt 0xmmiibb (m = major, i = minor, b = bugfix). For example, TQt
3.0.5's <tt>QT_VERSION</tt> is 0x030005. 3.0.5's <tt>TQT_VERSION</tt> is 0x030005.
<h3 class=fn>void <a name="qWarning"></a>qWarning ( const&nbsp;char&nbsp;*&nbsp;msg, ... ) <h3 class=fn>void <a name="qWarning"></a>qWarning ( const&nbsp;char&nbsp;*&nbsp;msg, ... )
</h3> </h3>

@ -352,7 +352,7 @@ Returns TRUE if successful, otherwise FALSE.
{ {
TQFile f; TQFile f;
f.<a href="#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a>, stderr ); f.<a href="#open">open</a>( <a href="ntqfile.html#open">IO_WriteOnly</a>, stderr );
f.<a href="ntqiodevice.html#writeBlock">writeBlock</a>( msg, qstrlen(msg) ); // write to stderr f.<a href="ntqiodevice.html#writeBlock">writeBlock</a>( msg, tqstrlen(msg) ); // write to stderr
f.<a href="#close">close</a>(); f.<a href="#close">close</a>();
} }
</pre> </pre>

@ -147,7 +147,7 @@ details. A convenience handler, <a href="#childEvent">childEvent</a>(), can be r
to catch child events. to catch child events.
<p> Last but not least, TQObject provides the basic timer support in <p> Last but not least, TQObject provides the basic timer support in
TQt; see <a href="ntqtimer.html">TQTimer</a> for high-level support for timers. TQt; see <a href="ntqtimer.html">TQTimer</a> for high-level support for timers.
<p> Notice that the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro is mandatory for any object that <p> Notice that the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro is mandatory for any object that
implements signals, slots or properties. You also need to run the implements signals, slots or properties. You also need to run the
<a href="moc.html">moc program (Meta Object Compiler)</a> on the <a href="moc.html">moc program (Meta Object Compiler)</a> on the
source file. We strongly recommend the use of this macro in <em>all</em> source file. We strongly recommend the use of this macro in <em>all</em>
@ -270,7 +270,7 @@ in the list.
<p> This function is generated by the <a href="metaobjects.html">Meta <p> This function is generated by the <a href="metaobjects.html">Meta
Object Compiler.</a> Object Compiler.</a>
<p> <b>Warning:</b> This function will return the wrong name if the class <p> <b>Warning:</b> This function will return the wrong name if the class
definition lacks the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro. definition lacks the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro.
<p> <p>See also <a href="#name-prop">name</a>, <a href="#inherits">inherits</a>(), <a href="#isA">isA</a>(), and <a href="#isWidgetType">isWidgetType</a>(). <p> <p>See also <a href="#name-prop">name</a>, <a href="#inherits">inherits</a>(), <a href="#isA">isA</a>(), and <a href="#isWidgetType">isWidgetType</a>().
<p>Example: <a href="sql.html#x2235">sql/overview/custom1/main.cpp</a>. <p>Example: <a href="sql.html#x2235">sql/overview/custom1/main.cpp</a>.
@ -298,7 +298,7 @@ label, SLOT(setNum(int v)) );
<p> <pre> <p> <pre>
class MyWidget : public <a href="ntqwidget.html">TQWidget</a> class MyWidget : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
MyWidget(); MyWidget();
@ -684,7 +684,7 @@ by you, which is often not what you want. We recommend using a
<p> Returns a pointer to the <a href="metaobjects.html#meta-object">meta object</a> of this object. <p> Returns a pointer to the <a href="metaobjects.html#meta-object">meta object</a> of this object.
<p> A meta object contains information about a class that inherits <p> A meta object contains information about a class that inherits
TQObject, e.g. class name, superclass name, properties, signals and TQObject, e.g. class name, superclass name, properties, signals and
slots. Every class that contains the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro will also have slots. Every class that contains the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro will also have
a meta object. a meta object.
<p> The meta object information is required by the signal/slot <p> The meta object information is required by the signal/slot
connection mechanism and the property system. The functions <a href="#isA">isA</a>() connection mechanism and the property system. The functions <a href="#isA">isA</a>()
@ -841,7 +841,7 @@ used to find out which timer was activated.
<pre> <pre>
class MyObject : public TQObject class MyObject : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyObject( TQObject *parent = 0, const char *name = 0 ); MyObject( TQObject *parent = 0, const char *name = 0 );
@ -887,7 +887,7 @@ functionality, and also more general information about timers.
<p> Returns a translated version of <em>sourceText</em>, or <em>sourceText</em> <p> Returns a translated version of <em>sourceText</em>, or <em>sourceText</em>
itself if there is no appropriate translated version. The itself if there is no appropriate translated version. The
translation context is TQObject with <em>comment</em> (0 by default). translation context is TQObject with <em>comment</em> (0 by default).
All TQObject subclasses using the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro automatically have All TQObject subclasses using the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro automatically have
a reimplementation of this function with the subclass name as a reimplementation of this function with the subclass name as
context. context.
<p> <b>Warning:</b> This method is reentrant only if all translators are <p> <b>Warning:</b> This method is reentrant only if all translators are

@ -162,7 +162,7 @@ the range of integers used inside the program would be -1 to 100:
<p> <pre> <p> <pre>
class MySpinBox : public TQSpinBox class MySpinBox : public TQSpinBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
... ...

@ -217,7 +217,7 @@ returned by end().
<p> <pre> <p> <pre>
TQValueList&lt;int&gt; list; TQValueList&lt;int&gt; list;
... ...
TQValueList&lt;int&gt;::<a href="#iterator">iterator</a> it = qFind( list.<a href="#begin">begin</a>(), list.<a href="#end">end</a>(), 3 ); TQValueList&lt;int&gt;::<a href="#iterator">iterator</a> it = tqFind( list.<a href="#begin">begin</a>(), list.<a href="#end">end</a>(), 3 );
if ( it != list.<a href="#end">end</a>() ) if ( it != list.<a href="#end">end</a>() )
// it points to the found item // it points to the found item
</pre> </pre>

@ -239,7 +239,7 @@ For example:
<p> <pre> <p> <pre>
TQValueVector&lt;int&gt; vec; TQValueVector&lt;int&gt; vec;
... ...
TQValueVector&lt;int&gt;::<a href="#const_iterator">const_iterator</a> it = qFind( vec.<a href="#begin">begin</a>(), vec.<a href="#end">end</a>(), 3 ); TQValueVector&lt;int&gt;::<a href="#const_iterator">const_iterator</a> it = tqFind( vec.<a href="#begin">begin</a>(), vec.<a href="#end">end</a>(), 3 );
if ( it != vector.end() ) if ( it != vector.end() )
// 'it' points to the found element // 'it' points to the found element
</pre> </pre>

@ -117,7 +117,7 @@ traverse it.
class OutlineTree : public <a href="ntqlistview.html">TQListView</a> class OutlineTree : public <a href="ntqlistview.html">TQListView</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
OutlineTree( const <a href="ntqstring.html">TQString</a> fileName, TQWidget *parent = 0, const char *name = 0 ); OutlineTree( const <a href="ntqstring.html">TQString</a> fileName, TQWidget *parent = 0, const char *name = 0 );

@ -59,7 +59,7 @@ pop up.
class FancyPopup : public <a href="ntqlabel.html">TQLabel</a> class FancyPopup : public <a href="ntqlabel.html">TQLabel</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
FancyPopup( <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name=0); FancyPopup( <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name=0);
@ -77,7 +77,7 @@ private:
class Frame : public <a href="ntqframe.html">TQFrame</a> class Frame : public <a href="ntqframe.html">TQFrame</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
Frame( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char* name=0); Frame( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char* name=0);

@ -222,7 +222,7 @@ but source compatibility should not be affected if the macro variable
<tt>QT_CLEAN_NAMESPACE</tt> is not defined: <tt>QT_CLEAN_NAMESPACE</tt> is not defined:
<p> <ul> <p> <ul>
<li> <tt>ASSERT</tt> becomes <tt>Q_ASSERT</tt> <li> <tt>ASSERT</tt> becomes <tt>Q_ASSERT</tt>
<li> <tt>CHECK_PTR</tt> becomes <tt>Q_CHECK_PTR</tt> <li> <tt>CHECK_PTR</tt> becomes <tt>TQ_CHECK_PTR</tt>
</ul> </ul>
<p> For the record, undocumented macro variables that are not part of the API <p> For the record, undocumented macro variables that are not part of the API
have been changed: have been changed:
@ -386,10 +386,10 @@ new code.
</ul> </ul>
<p> Additionally, these preprocessor directives have been removed: <p> Additionally, these preprocessor directives have been removed:
<p> <ul> <p> <ul>
<li> <tt>#define strlen qstrlen</tt> <li> <tt>#define strlen tqstrlen</tt>
<li> <tt>#define strcpy qstrcpy</tt> <li> <tt>#define strcpy qstrcpy</tt>
<li> <tt>#define strcmp qstrcmp</tt> <li> <tt>#define strcmp qstrcmp</tt>
<li> <tt>#define strncmp qstrncmp</tt> <li> <tt>#define strncmp tqstrncmp</tt>
<li> <tt>#define stricmp qstricmp</tt> <li> <tt>#define stricmp qstricmp</tt>
<li> <tt>#define strnicmp qstrnicmp</tt> <li> <tt>#define strnicmp qstrnicmp</tt>
</ul> </ul>

@ -61,7 +61,7 @@ output of the command.
class UicManager : public <a href="ntqvbox.html">TQVBox</a> class UicManager : public <a href="ntqvbox.html">TQVBox</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
UicManager(); UicManager();

@ -160,7 +160,7 @@ private:
class CPUWaster : public <a href="ntqwidget.html">TQWidget</a> class CPUWaster : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
enum { first_draw_item = 1000, last_draw_item = 1006 }; enum { first_draw_item = 1000, last_draw_item = 1006 };
@ -183,10 +183,10 @@ public:
pb(0) pb(0)
{ {
menubar = new <a href="ntqmenubar.html">TQMenuBar</a>( this, "menu" ); menubar = new <a href="ntqmenubar.html">TQMenuBar</a>( this, "menu" );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( menubar ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( menubar );
<a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(); <a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( file ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file ); menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
for (int i=first_draw_item; i&lt;=last_draw_item; i++) for (int i=first_draw_item; i&lt;=last_draw_item; i++)
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( drawItemText(i), i ); file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( drawItemText(i), i );
@ -195,7 +195,7 @@ public:
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(); options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( options ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( options );
menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options ); menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Options", options );
td_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Timer driven", this, SLOT(timerDriven()) ); td_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Timer driven", this, SLOT(timerDriven()) );
ld_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Loop driven", this, SLOT(loopDriven()) ); ld_id = options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Loop driven", this, SLOT(loopDriven()) );

@ -58,7 +58,7 @@ class TQProgressBar;
class ProgressBar : public <a href="ntqbuttongroup.html">TQButtonGroup</a> class ProgressBar : public <a href="ntqbuttongroup.html">TQButtonGroup</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ProgressBar( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); ProgressBar( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -88,7 +88,7 @@ functions in use:
<p> <pre> <p> <pre>
class MyClass : public <a href="ntqobject.html">TQObject</a> class MyClass : public <a href="ntqobject.html">TQObject</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
MyClass( <a href="ntqobject.html">TQObject</a> * parent=0, const char * name=0 ); MyClass( <a href="ntqobject.html">TQObject</a> * parent=0, const char * name=0 );
~MyClass(); ~MyClass();
@ -132,7 +132,7 @@ final class declaration including the property related declarations:
<p> <pre> <p> <pre>
class MyClass : public <a href="ntqobject.html">TQObject</a> class MyClass : public <a href="ntqobject.html">TQObject</a>
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) Q_PROPERTY( Priority priority READ priority WRITE setPriority )
Q_ENUMS( Priority ) Q_ENUMS( Priority )
public: public:

@ -88,7 +88,7 @@ class TQAccelPrivate;
class Q_EXPORT TQAccel : public TQObject // accelerator class class Q_EXPORT TQAccel : public TQObject // accelerator class
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQAccel( TQWidget *parent, const char *name=0 ); TQAccel( TQWidget *parent, const char *name=0 );
TQAccel( TQWidget* watch, TQObject *parent, const char *name=0 ); TQAccel( TQWidget* watch, TQObject *parent, const char *name=0 );
@ -134,7 +134,7 @@ private:
TQAccelPrivate * d; TQAccelPrivate * d;
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQAccel( const TQAccel &amp; ); TQAccel( const TQAccel &amp; );
TQAccel &amp;operator=( const TQAccel &amp; ); TQAccel &amp;operator=( const TQAccel &amp; );
#endif #endif

@ -60,7 +60,7 @@ class TQTextEdit;
class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a> class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ApplicationWindow(); ApplicationWindow();

@ -94,7 +94,7 @@ class TQToolTipGroup;
class Q_EXPORT TQAction : public TQObject class Q_EXPORT TQAction : public TQObject
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool toggleAction READ isToggleAction WRITE setToggleAction) Q_PROPERTY( bool toggleAction READ isToggleAction WRITE setToggleAction)
Q_PROPERTY( bool on READ isOn WRITE setOn ) Q_PROPERTY( bool on READ isOn WRITE setOn )
Q_PROPERTY( bool enabled READ isEnabled WRITE setEnabled ) Q_PROPERTY( bool enabled READ isEnabled WRITE setEnabled )
@ -181,7 +181,7 @@ private:
friend class TQActionGroupPrivate; friend class TQActionGroupPrivate;
TQActionPrivate* d; TQActionPrivate* d;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQAction( const TQAction &amp; ); TQAction( const TQAction &amp; );
TQAction &amp;operator=( const TQAction &amp; ); TQAction &amp;operator=( const TQAction &amp; );
#endif #endif
@ -189,7 +189,7 @@ private:
class Q_EXPORT TQActionGroup : public TQAction class Q_EXPORT TQActionGroup : public TQAction
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool exclusive READ isExclusive WRITE setExclusive ) Q_PROPERTY( bool exclusive READ isExclusive WRITE setExclusive )
Q_PROPERTY( bool usesDropDown READ usesDropDown WRITE setUsesDropDown ) Q_PROPERTY( bool usesDropDown READ usesDropDown WRITE setUsesDropDown )
@ -243,7 +243,7 @@ public:
#endif #endif
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQActionGroup( const TQActionGroup &amp; ); TQActionGroup( const TQActionGroup &amp; );
TQActionGroup &amp;operator=( const TQActionGroup &amp; ); TQActionGroup &amp;operator=( const TQActionGroup &amp; );
#endif #endif

@ -105,7 +105,7 @@ extern Q_EXPORT TQApplication *qApp; // global application object
class Q_EXPORT TQApplication : public TQObject class Q_EXPORT TQApplication : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQApplication( int &amp;argc, char **argv ); TQApplication( int &amp;argc, char **argv );
TQApplication( int &amp;argc, char **argv, bool GUIenabled ); TQApplication( int &amp;argc, char **argv, bool GUIenabled );
@ -451,7 +451,7 @@ private:
friend class TQInputContext; friend class TQInputContext;
#endif #endif
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQApplication( const TQApplication &amp; ); TQApplication( const TQApplication &amp; );
TQApplication &amp;operator=( const TQApplication &amp; ); TQApplication &amp;operator=( const TQApplication &amp; );
#endif #endif

@ -76,7 +76,7 @@ class TQProcess;
class TQAssistantClient : public TQObject class TQAssistantClient : public TQObject
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool open READ isOpen ) Q_PROPERTY( bool open READ isOpen )
public: public:

@ -137,7 +137,7 @@ public:
}; };
class Q_EXPORT TQDataPump : public TQObject { class Q_EXPORT TQDataPump : public TQObject {
Q_OBJECT TQ_OBJECT
int interval; int interval;
TQTimer timer; TQTimer timer;
TQDataSource* source; TQDataSource* source;

@ -70,7 +70,7 @@ TQWidget <em>first</em>.
<p> <pre> <p> <pre>
class MyActiveX : public <a href="ntqwidget.html">TQWidget</a>, public TQAxBindable class MyActiveX : public <a href="ntqwidget.html">TQWidget</a>, public TQAxBindable
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
Q_PROPERTY( int value READ value WRITE setValue ) Q_PROPERTY( int value READ value WRITE setValue )
public: public:
MyActiveX( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); MyActiveX( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -70,7 +70,7 @@ COM object directly through the IUnknown pointer.
organized in an object hierarchy, receive events and connect to organized in an object hierarchy, receive events and connect to
signals and slots. signals and slots.
<p> <b>Warning:</b> <p> <b>Warning:</b>
You can subclass TQAxObject, but you cannot use the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro You can subclass TQAxObject, but you cannot use the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro
in the subclass (the generated <a href="moc.html#moc">moc</a>-file will not compile), so you in the subclass (the generated <a href="moc.html#moc">moc</a>-file will not compile), so you
cannot add further signals, slots or properties. This limitation is cannot add further signals, slots or properties. This limitation is
due to the metaobject information generated in runtime. due to the metaobject information generated in runtime.

@ -113,7 +113,7 @@ private:
class TQAxScript : public TQObject class TQAxScript : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
enum FunctionFlags { enum FunctionFlags {
@ -166,7 +166,7 @@ private:
class TQAxScriptManager : public TQObject class TQAxScriptManager : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQAxScriptManager( TQObject *parent = 0, const char *name = 0 ); TQAxScriptManager( TQObject *parent = 0, const char *name = 0 );

@ -39,7 +39,7 @@ subclass with child widgets that are accessible as sub types.
<pre> class TQParentWidget : public <a href="ntqwidget.html">TQWidget</a> <pre> class TQParentWidget : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
TQParentWidget( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = 0 ); TQParentWidget( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = 0 );
@ -85,7 +85,7 @@ name.
<pre> class TQSubWidget : public <a href="ntqwidget.html">TQWidget</a> <pre> class TQSubWidget : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString label READ label WRITE setLabel ) Q_PROPERTY( TQString label READ label WRITE setLabel )
public: public:
TQSubWidget( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = 0 ); TQSubWidget( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = 0 );

@ -43,11 +43,11 @@ the <a href="qaxfactory.html#TQAXFACTORY_BEGIN">TQAXFACTORY_BEGIN</a>, <a href="
<pre> class TQAxWidget1 : public <a href="ntqwidget.html">TQWidget</a> <pre> class TQAxWidget1 : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
Q_CLASSINFO("ClassID", "{1D9928BD-4453-4bdd-903D-E525ED17FDE5}") Q_CLASSINFO("ClassID", "{1D9928BD-4453-4bdd-903D-E525ED17FDE5}")
Q_CLASSINFO("InterfaceID", "{99F6860E-2C5A-42ec-87F2-43396F4BE389}") Q_CLASSINFO("InterfaceID", "{99F6860E-2C5A-42ec-87F2-43396F4BE389}")
Q_CLASSINFO("EventsID", "{0A3E9F27-E4F1-45bb-9E47-63099BCCD0E3}") Q_CLASSINFO("EventsID", "{0A3E9F27-E4F1-45bb-9E47-63099BCCD0E3}")
</pre>The class declaration includes the Q_OBJECT macro to activate TQt's <a href="metaobjects.html#meta-object">meta object</a> system, and sets COM identifiers for the class using the </pre>The class declaration includes the TQ_OBJECT macro to activate TQt's <a href="metaobjects.html#meta-object">meta object</a> system, and sets COM identifiers for the class using the
Q_CLASSINFO macro. Q_CLASSINFO macro.
<pre> Q_PROPERTY( TQColor fillColor READ fillColor WRITE setFillColor ) <pre> Q_PROPERTY( TQColor fillColor READ fillColor WRITE setFillColor )
public: public:
@ -84,7 +84,7 @@ property using the Q_PROPERTY macro.
<pre> class TQAxWidget2 : public <a href="ntqwidget.html">TQWidget</a> <pre> class TQAxWidget2 : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
Q_CLASSINFO("ClassID", "{58139D56-6BE9-4b17-937D-1B1EDEDD5B71}") Q_CLASSINFO("ClassID", "{58139D56-6BE9-4b17-937D-1B1EDEDD5B71}")
Q_CLASSINFO("InterfaceID", "{B66280AB-08CC-4dcc-924F-58E6D7975B7D}") Q_CLASSINFO("InterfaceID", "{B66280AB-08CC-4dcc-924F-58E6D7975B7D}")
Q_CLASSINFO("EventsID", "{D72BACBA-03C4-4480-B4BB-DE4FE3AA14A0}") Q_CLASSINFO("EventsID", "{D72BACBA-03C4-4480-B4BB-DE4FE3AA14A0}")

@ -92,7 +92,7 @@ to render OpenGL, and from <a href="qaxbindable.html">TQAxBindable</a>.
class GLBox : public <a href="qglwidget.html">TQGLWidget</a>, class GLBox : public <a href="qglwidget.html">TQGLWidget</a>,
public TQAxBindable public TQAxBindable
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
</pre>The class reimplements the <a href="qaxbindable.html#createAggregate">TQAxBindable::createAggregate</a>() function from <a href="qaxbindable.html">TQAxBindable</a> </pre>The class reimplements the <a href="qaxbindable.html#createAggregate">TQAxBindable::createAggregate</a>() function from <a href="qaxbindable.html">TQAxBindable</a>
to return the pointer to a <a href="qaxaggregated.html">TQAxAggregated</a> object. to return the pointer to a <a href="qaxaggregated.html">TQAxAggregated</a> object.
<pre> public: <pre> public:

@ -46,7 +46,7 @@ and <a href="qaxbindable.html#propertyChanged">TQAxBindable::propertyChanged</a>
<p> The TQt implementation of the ActiveX for this example is <p> The TQt implementation of the ActiveX for this example is
<pre> class TQSimpleAX : public <a href="ntqwidget.html">TQWidget</a>, public TQAxBindable <pre> class TQSimpleAX : public <a href="ntqwidget.html">TQWidget</a>, public TQAxBindable
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
Q_PROPERTY( TQString text READ text WRITE setText ) Q_PROPERTY( TQString text READ text WRITE setText )
Q_PROPERTY( int value READ value WRITE setValue ) Q_PROPERTY( int value READ value WRITE setValue )
public: public:

@ -383,10 +383,10 @@ or any existing TQWidget subclass:
class MyActiveX : public <a href="ntqwidget.html">TQWidget</a> class MyActiveX : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
</pre> </pre>
<p> The <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro is required to provide the <a href="metaobjects.html#meta-object">meta object</a> information <p> The <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro is required to provide the <a href="metaobjects.html#meta-object">meta object</a> information
about the widget to the ActiveTQt framework. about the widget to the ActiveTQt framework.
Use the <tt>Q_PROPERTY</tt> macro to declare properties for the ActiveX control: Use the <tt>Q_PROPERTY</tt> macro to declare properties for the ActiveX control:
<p> <pre> <p> <pre>
@ -618,7 +618,7 @@ inheritance from the <a href="qaxbindable.html">TQAxBindable</a> class:
class MyActiveX : public <a href="ntqwidget.html">TQWidget</a><b>, public TQAxBindable</b> class MyActiveX : public <a href="ntqwidget.html">TQWidget</a><b>, public TQAxBindable</b>
{ {
Q_OBJECT TQ_OBJECT
</pre> </pre>
When implementing the property write functions, use the When implementing the property write functions, use the
@ -914,7 +914,7 @@ Office applications.
<pre> <pre>
class MyActiveX : public <a href="ntqwidget.html">TQWidget</a> class MyActiveX : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
<b>Q_CLASSINFO("Version", "2.0") <b>Q_CLASSINFO("Version", "2.0")
Q_CLASSINFO("ClassID", "{7a4cffd8-cbcd-4ae9-ae7e-343e1e5710df}") Q_CLASSINFO("ClassID", "{7a4cffd8-cbcd-4ae9-ae7e-343e1e5710df}")
Q_CLASSINFO("InterfaceID", "{6fb035bf-8019-48d8-be51-ef05427d8994}") Q_CLASSINFO("InterfaceID", "{6fb035bf-8019-48d8-be51-ef05427d8994}")
@ -945,7 +945,7 @@ macro.
<pre> <pre>
class MyLicensedControl : public <a href="ntqwidget.html">TQWidget</a> class MyLicensedControl : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
<b>Q_CLASSINFO("LicenseKey", "&lt;key string&gt;")</b> <b>Q_CLASSINFO("LicenseKey", "&lt;key string&gt;")</b>
... ...
}; };
@ -1023,7 +1023,7 @@ a new object of the <a href="qaxaggregated.html">TQAxAggregated</a> subclass.
class MyActiveX : public <a href="ntqwidget.html">TQWidget</a>, class MyActiveX : public <a href="ntqwidget.html">TQWidget</a>,
<b>public TQAxBindable</b> <b>public TQAxBindable</b>
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyActiveX( TQWidget *parent, const char *name = 0 ); MyActiveX( TQWidget *parent, const char *name = 0 );

@ -75,7 +75,7 @@ filter. Standard widget properties, e.g. <a href="ntqwidget.html#enabled-prop">e
control to implement support for ambient properties like e.g. control to implement support for ambient properties like e.g.
palette or font. TQAxWidget tries to provide the necessary hints. palette or font. TQAxWidget tries to provide the necessary hints.
<p> <b>Warning:</b> <p> <b>Warning:</b>
You can subclass TQAxWidget, but you cannot use the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro You can subclass TQAxWidget, but you cannot use the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro
in the subclass (the generated <a href="moc.html#moc">moc</a>-file will not compile), so you in the subclass (the generated <a href="moc.html#moc">moc</a>-file will not compile), so you
cannot add further signals, slots or properties. This limitation cannot add further signals, slots or properties. This limitation
is due to the metaobject information generated in runtime. To work is due to the metaobject information generated in runtime. To work

@ -119,7 +119,7 @@ private:
uint a_inc; uint a_inc;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQBuffer( const TQBuffer &amp; ); TQBuffer( const TQBuffer &amp; );
TQBuffer &amp;operator=( const TQBuffer &amp; ); TQBuffer &amp;operator=( const TQBuffer &amp; );
#endif #endif

@ -91,7 +91,7 @@ class TQButtonData;
class Q_EXPORT TQButton : public TQWidget class Q_EXPORT TQButton : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( ToggleType ToggleState ) Q_ENUMS( ToggleType ToggleState )
Q_PROPERTY( TQString text READ text WRITE setText ) Q_PROPERTY( TQString text READ text WRITE setText )
Q_PROPERTY( TQPixmap pixmap READ pixmap WRITE setPixmap ) Q_PROPERTY( TQPixmap pixmap READ pixmap WRITE setPixmap )
@ -200,7 +200,7 @@ private:
void nextState(); void nextState();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQButton( const TQButton &amp; ); TQButton( const TQButton &amp; );
TQButton &amp;operator=( const TQButton &amp; ); TQButton &amp;operator=( const TQButton &amp; );
#endif #endif

@ -90,7 +90,7 @@ class TQButtonList;
class Q_EXPORT TQButtonGroup : public TQGroupBox class Q_EXPORT TQButtonGroup : public TQGroupBox
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool exclusive READ isExclusive WRITE setExclusive ) Q_PROPERTY( bool exclusive READ isExclusive WRITE setExclusive )
Q_PROPERTY( bool radioButtonExclusive READ isRadioButtonExclusive WRITE setRadioButtonExclusive ) Q_PROPERTY( bool radioButtonExclusive READ isRadioButtonExclusive WRITE setRadioButtonExclusive )
Q_PROPERTY( int selectedId READ selectedId WRITE setButton ) Q_PROPERTY( int selectedId READ selectedId WRITE setButton )
@ -145,7 +145,7 @@ private:
TQButtonList *buttons; TQButtonList *buttons;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQButtonGroup( const TQButtonGroup &amp; ); TQButtonGroup( const TQButtonGroup &amp; );
TQButtonGroup &amp;operator=( const TQButtonGroup &amp; ); TQButtonGroup &amp;operator=( const TQButtonGroup &amp; );
#endif #endif

@ -87,7 +87,7 @@ body { background: #ffffff; color: black; }
#include "ntqpointarray.h" #include "ntqpointarray.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_CANVAS ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_CANVAS ) #if !defined( TQT_MODULE_CANVAS ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_CANVAS )
#define TQM_EXPORT_CANVAS #define TQM_EXPORT_CANVAS
#define TQM_TEMPLATE_EXTERN_CANVAS #define TQM_TEMPLATE_EXTERN_CANVAS
#else #else
@ -254,7 +254,7 @@ class TQCanvasData;
class TQM_EXPORT_CANVAS TQCanvas : public TQObject class TQM_EXPORT_CANVAS TQCanvas : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQCanvas( TQObject* parent = 0, const char* name = 0 ); TQCanvas( TQObject* parent = 0, const char* name = 0 );
TQCanvas(int w, int h); TQCanvas(int w, int h);
@ -389,7 +389,7 @@ private:
friend void qt_unview(TQCanvas* c); friend void qt_unview(TQCanvas* c);
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQCanvas( const TQCanvas &amp; ); TQCanvas( const TQCanvas &amp; );
TQCanvas &amp;operator=( const TQCanvas &amp; ); TQCanvas &amp;operator=( const TQCanvas &amp; );
#endif #endif
@ -399,7 +399,7 @@ class TQCanvasViewData;
class TQM_EXPORT_CANVAS TQCanvasView : public TQScrollView class TQM_EXPORT_CANVAS TQCanvasView : public TQScrollView
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQCanvasView(TQWidget* parent=0, const char* name=0, WFlags f=0); TQCanvasView(TQWidget* parent=0, const char* name=0, WFlags f=0);
@ -429,7 +429,7 @@ private slots:
void updateContentsSize(); void updateContentsSize();
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQCanvasView( const TQCanvasView &amp; ); TQCanvasView( const TQCanvasView &amp; );
TQCanvasView &amp;operator=( const TQCanvasView &amp; ); TQCanvasView &amp;operator=( const TQCanvasView &amp; );
#endif #endif
@ -453,7 +453,7 @@ public:
void setOffset(int x, int y) { hotx = x; hoty = y; } void setOffset(int x, int y) { hotx = x; hoty = y; }
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCanvasPixmap( const TQCanvasPixmap &amp; ); TQCanvasPixmap( const TQCanvasPixmap &amp; );
TQCanvasPixmap &amp;operator=( const TQCanvasPixmap &amp; ); TQCanvasPixmap &amp;operator=( const TQCanvasPixmap &amp; );
#endif #endif
@ -499,7 +499,7 @@ public:
{ return (uint)framecount; } { return (uint)framecount; }
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCanvasPixmapArray( const TQCanvasPixmapArray &amp; ); TQCanvasPixmapArray( const TQCanvasPixmapArray &amp; );
TQCanvasPixmapArray &amp;operator=( const TQCanvasPixmapArray &amp; ); TQCanvasPixmapArray &amp;operator=( const TQCanvasPixmapArray &amp; );
#endif #endif
@ -565,7 +565,7 @@ public:
void draw(TQPainter&amp; painter); void draw(TQPainter&amp; painter);
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCanvasSprite( const TQCanvasSprite &amp; ); TQCanvasSprite( const TQCanvasSprite &amp; );
TQCanvasSprite &amp;operator=( const TQCanvasSprite &amp; ); TQCanvasSprite &amp;operator=( const TQCanvasSprite &amp; );
#endif #endif
@ -822,7 +822,7 @@ protected:
virtual void draw(TQPainter&amp;); virtual void draw(TQPainter&amp;);
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCanvasText( const TQCanvasText &amp; ); TQCanvasText( const TQCanvasText &amp; );
TQCanvasText &amp;operator=( const TQCanvasText &amp; ); TQCanvasText &amp;operator=( const TQCanvasText &amp; );
#endif #endif

@ -92,7 +92,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT_STYLE_CDE TQCDEStyle : public TQMotifStyle class Q_EXPORT_STYLE_CDE TQCDEStyle : public TQMotifStyle
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQCDEStyle( bool useHighlightCols = FALSE ); TQCDEStyle( bool useHighlightCols = FALSE );

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQCheckBox : public TQButton class Q_EXPORT TQCheckBox : public TQButton
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool checked READ isChecked WRITE setChecked ) Q_PROPERTY( bool checked READ isChecked WRITE setChecked )
Q_PROPERTY( bool tristate READ isTristate WRITE setTristate ) Q_PROPERTY( bool tristate READ isTristate WRITE setTristate )
Q_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true ) Q_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true )
@ -113,7 +113,7 @@ protected:
void updateMask(); void updateMask();
bool hitButton( const TQPoint &amp;pos ) const; bool hitButton( const TQPoint &amp;pos ) const;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCheckBox( const TQCheckBox &amp; ); TQCheckBox( const TQCheckBox &amp; );
TQCheckBox &amp;operator=( const TQCheckBox &amp; ); TQCheckBox &amp;operator=( const TQCheckBox &amp; );
#endif #endif

@ -88,7 +88,7 @@ class TQMimeSource;
class Q_EXPORT TQClipboard : public TQObject class Q_EXPORT TQClipboard : public TQObject
{ {
Q_OBJECT TQ_OBJECT
private: private:
TQClipboard( TQObject *parent=0, const char *name=0 ); TQClipboard( TQObject *parent=0, const char *name=0 );
~TQClipboard(); ~TQClipboard();
@ -159,7 +159,7 @@ private:
#endif #endif
// Disabled copy constructor and operator= // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQClipboard( const TQClipboard &amp; ); TQClipboard( const TQClipboard &amp; );
TQClipboard &amp;operator=( const TQClipboard &amp; ); TQClipboard &amp;operator=( const TQClipboard &amp; );
#endif #endif

@ -87,7 +87,7 @@ class TQColorDialogPrivate;
class Q_EXPORT TQColorDialog : public TQDialog class Q_EXPORT TQColorDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
static TQColor getColor( const TQColor&amp; init = white, TQWidget* parent=0, const char* name=0 ); static TQColor getColor( const TQColor&amp; init = white, TQWidget* parent=0, const char* name=0 );
@ -118,7 +118,7 @@ private: // Disabled copy constructor and operator=
friend class TQColorDialogPrivate; friend class TQColorDialogPrivate;
friend class TQColorShower; friend class TQColorShower;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQColorDialog( const TQColorDialog &amp; ); TQColorDialog( const TQColorDialog &amp; );
TQColorDialog&amp; operator=( const TQColorDialog &amp; ); TQColorDialog&amp; operator=( const TQColorDialog &amp; );
#endif #endif

@ -94,7 +94,7 @@ class TQWheelEvent;
class Q_EXPORT TQComboBox : public TQWidget class Q_EXPORT TQComboBox : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Policy ) Q_ENUMS( Policy )
Q_PROPERTY( bool editable READ editable WRITE setEditable ) Q_PROPERTY( bool editable READ editable WRITE setEditable )
Q_PROPERTY( int count READ count ) Q_PROPERTY( int count READ count )
@ -230,7 +230,7 @@ private:
TQComboBoxData *d; TQComboBoxData *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQComboBox( const TQComboBox &amp; ); TQComboBox( const TQComboBox &amp; );
TQComboBox &amp;operator=( const TQComboBox &amp; ); TQComboBox &amp;operator=( const TQComboBox &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQCommonStyle: public TQStyle class Q_EXPORT TQCommonStyle: public TQStyle
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQCommonStyle(); TQCommonStyle();
@ -160,7 +160,7 @@ public:
private: private:
// Disabled copy constructor and operator= // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCommonStyle( const TQCommonStyle &amp; ); TQCommonStyle( const TQCommonStyle &amp; );
TQCommonStyle &amp;operator=( const TQCommonStyle &amp; ); TQCommonStyle &amp;operator=( const TQCommonStyle &amp; );
#endif #endif

@ -86,7 +86,7 @@ class TQCopChannelPrivate;
class TQCopChannel : public TQObject class TQCopChannel : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQCopChannel( const TQCString&amp; channel, TQObject* parent=0, const char* name=0 ); TQCopChannel( const TQCString&amp; channel, TQObject* parent=0, const char* name=0 );
virtual ~TQCopChannel(); virtual ~TQCopChannel();

@ -93,7 +93,7 @@ Q_EXPORT void *qmemmove( void *dst, const void *src, uint len );
Q_EXPORT char *qstrdup( const char * ); Q_EXPORT char *qstrdup( const char * );
Q_EXPORT inline uint qstrlen( const char *str ) Q_EXPORT inline uint tqstrlen( const char *str )
{ return str ? (uint)strlen(str) : 0u; } { return str ? (uint)strlen(str) : 0u; }
Q_EXPORT inline char *qstrcpy( char *dst, const char *src ) Q_EXPORT inline char *qstrcpy( char *dst, const char *src )
@ -107,7 +107,7 @@ Q_EXPORT inline int qstrcmp( const char *str1, const char *str2 )
: ( str1 ? 1 : ( str2 ? -1 : 0 ) ); : ( str1 ? 1 : ( str2 ? -1 : 0 ) );
} }
Q_EXPORT inline int qstrncmp( const char *str1, const char *str2, uint len ) Q_EXPORT inline int tqstrncmp( const char *str1, const char *str2, uint len )
{ {
return ( str1 &amp;&amp; str2 ) ? strncmp( str1, str2, len ) return ( str1 &amp;&amp; str2 ) ? strncmp( str1, str2, len )
: ( str1 ? 1 : ( str2 ? -1 : 0 ) ); : ( str1 ? 1 : ( str2 ? -1 : 0 ) );
@ -157,11 +157,11 @@ typedef TQMemArray&lt;char&gt; TQByteArray;
#ifndef QT_NO_COMPRESS #ifndef QT_NO_COMPRESS
Q_EXPORT TQByteArray qCompress( const uchar* data, int nbytes ); Q_EXPORT TQByteArray qCompress( const uchar* data, int nbytes );
Q_EXPORT TQByteArray qUncompress( const uchar* data, int nbytes ); Q_EXPORT TQByteArray tqUncompress( const uchar* data, int nbytes );
Q_EXPORT inline TQByteArray qCompress( const TQByteArray&amp; data) Q_EXPORT inline TQByteArray qCompress( const TQByteArray&amp; data)
{ return qCompress( (const uchar*)data.data(), data.size() ); } { return qCompress( (const uchar*)data.data(), data.size() ); }
Q_EXPORT inline TQByteArray qUncompress( const TQByteArray&amp; data ) Q_EXPORT inline TQByteArray tqUncompress( const TQByteArray&amp; data )
{ return qUncompress( (const uchar*)data.data(), data.size() ); } { return tqUncompress( (const uchar*)data.data(), data.size() ); }
#endif #endif
/***************************************************************************** /*****************************************************************************
@ -288,7 +288,7 @@ inline TQCString &amp;TQCString::operator=( const TQCString &amp;s )
{ return (TQCString&amp;)assign( s ); } { return (TQCString&amp;)assign( s ); }
inline TQCString &amp;TQCString::operator=( const char *str ) inline TQCString &amp;TQCString::operator=( const char *str )
{ return (TQCString&amp;)duplicate( str, qstrlen(str)+1 ); } { return (TQCString&amp;)duplicate( str, tqstrlen(str)+1 ); }
inline bool TQCString::isNull() const inline bool TQCString::isNull() const
{ return data() == 0; } { return data() == 0; }
@ -297,7 +297,7 @@ inline bool TQCString::isEmpty() const
{ return data() == 0 || *data() == '\0'; } { return data() == 0 || *data() == '\0'; }
inline uint TQCString::length() const inline uint TQCString::length() const
{ return qstrlen( data() ); } { return tqstrlen( data() ); }
inline bool TQCString::truncate( uint pos ) inline bool TQCString::truncate( uint pos )
{ return resize(pos+1); } { return resize(pos+1); }

@ -93,7 +93,7 @@ class TQDataBrowserPrivate;
class Q_EXPORT TQDataBrowser : public TQWidget class Q_EXPORT TQDataBrowser : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool boundaryChecking READ boundaryChecking WRITE setBoundaryChecking ) Q_PROPERTY( bool boundaryChecking READ boundaryChecking WRITE setBoundaryChecking )
Q_PROPERTY( TQString filter READ filter WRITE setFilter ) Q_PROPERTY( TQString filter READ filter WRITE setFilter )
Q_PROPERTY( TQStringList sort READ sort WRITE setSort ) Q_PROPERTY( TQStringList sort READ sort WRITE setSort )
@ -201,7 +201,7 @@ private:
void nav( Nav nav ); void nav( Nav nav );
TQDataBrowserPrivate* d; TQDataBrowserPrivate* d;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQDataBrowser( const TQDataBrowser &amp; ); TQDataBrowser( const TQDataBrowser &amp; );
TQDataBrowser &amp;operator=( const TQDataBrowser &amp; ); TQDataBrowser &amp;operator=( const TQDataBrowser &amp; );
#endif #endif

@ -156,7 +156,7 @@ private:
int ver; int ver;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDataStream( const TQDataStream &amp; ); TQDataStream( const TQDataStream &amp; );
TQDataStream &amp;operator=( const TQDataStream &amp; ); TQDataStream &amp;operator=( const TQDataStream &amp; );
#endif #endif

@ -87,7 +87,7 @@ body { background: #ffffff; color: black; }
#include "ntqiconset.h" #include "ntqiconset.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -102,7 +102,7 @@ class TQDataTablePrivate;
class TQM_EXPORT_SQL TQDataTable : public TQTable class TQM_EXPORT_SQL TQDataTable : public TQTable
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString nullText READ nullText WRITE setNullText ) Q_PROPERTY( TQString nullText READ nullText WRITE setNullText )
Q_PROPERTY( TQString trueText READ trueText WRITE setTrueText ) Q_PROPERTY( TQString trueText READ trueText WRITE setTrueText )
@ -269,7 +269,7 @@ private:
void endUpdate(); void endUpdate();
TQDataTablePrivate* d; TQDataTablePrivate* d;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQDataTable( const TQDataTable &amp; ); TQDataTable( const TQDataTable &amp; );
TQDataTable &amp;operator=( const TQDataTable &amp; ); TQDataTable &amp;operator=( const TQDataTable &amp; );
#endif #endif

@ -80,7 +80,7 @@ body { background: #ffffff; color: black; }
#include "ntqwidget.h" #include "ntqwidget.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -94,7 +94,7 @@ class TQDataViewPrivate;
class TQM_EXPORT_SQL TQDataView : public TQWidget class TQM_EXPORT_SQL TQDataView : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQDataView( TQWidget* parent=0, const char* name=0, WFlags fl = 0 ); TQDataView( TQWidget* parent=0, const char* name=0, WFlags fl = 0 );
@ -114,7 +114,7 @@ public slots:
private: private:
TQDataViewPrivate* d; TQDataViewPrivate* d;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQDataView( const TQDataView &amp; ); TQDataView( const TQDataView &amp; );
TQDataView &amp;operator=( const TQDataView &amp; ); TQDataView &amp;operator=( const TQDataView &amp; );
#endif #endif

@ -87,7 +87,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQDateTimeEditBase : public TQWidget class Q_EXPORT TQDateTimeEditBase : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQDateTimeEditBase( TQWidget* parent=0, const char* name=0 ) TQDateTimeEditBase( TQWidget* parent=0, const char* name=0 )
: TQWidget( parent, name ) {} : TQWidget( parent, name ) {}
@ -102,7 +102,7 @@ public slots:
virtual void stepDown() = 0; virtual void stepDown() = 0;
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQDateTimeEditBase( const TQDateTimeEditBase &amp; ); TQDateTimeEditBase( const TQDateTimeEditBase &amp; );
TQDateTimeEditBase &amp;operator=( const TQDateTimeEditBase &amp; ); TQDateTimeEditBase &amp;operator=( const TQDateTimeEditBase &amp; );
#endif #endif
@ -112,7 +112,7 @@ class TQDateEditPrivate;
class Q_EXPORT TQDateEdit : public TQDateTimeEditBase class Q_EXPORT TQDateEdit : public TQDateTimeEditBase
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Order ) Q_ENUMS( Order )
Q_PROPERTY( Order order READ order WRITE setOrder ) Q_PROPERTY( Order order READ order WRITE setOrder )
Q_PROPERTY( TQDate date READ date WRITE setDate ) Q_PROPERTY( TQDate date READ date WRITE setDate )
@ -182,7 +182,7 @@ private:
TQString sectionText( int sec ) const; TQString sectionText( int sec ) const;
TQDateEditPrivate* d; TQDateEditPrivate* d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDateEdit( const TQDateEdit &amp; ); TQDateEdit( const TQDateEdit &amp; );
TQDateEdit &amp;operator=( const TQDateEdit &amp; ); TQDateEdit &amp;operator=( const TQDateEdit &amp; );
#endif #endif
@ -192,7 +192,7 @@ class TQTimeEditPrivate;
class Q_EXPORT TQTimeEdit : public TQDateTimeEditBase class Q_EXPORT TQTimeEdit : public TQDateTimeEditBase
{ {
Q_OBJECT TQ_OBJECT
Q_SETS( Display ) Q_SETS( Display )
Q_PROPERTY( TQTime time READ time WRITE setTime ) Q_PROPERTY( TQTime time READ time WRITE setTime )
Q_PROPERTY( bool autoAdvance READ autoAdvance WRITE setAutoAdvance ) Q_PROPERTY( bool autoAdvance READ autoAdvance WRITE setAutoAdvance )
@ -265,7 +265,7 @@ private:
TQString sectionText( int sec ); TQString sectionText( int sec );
TQTimeEditPrivate* d; TQTimeEditPrivate* d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTimeEdit( const TQTimeEdit &amp; ); TQTimeEdit( const TQTimeEdit &amp; );
TQTimeEdit &amp;operator=( const TQTimeEdit &amp; ); TQTimeEdit &amp;operator=( const TQTimeEdit &amp; );
#endif #endif
@ -276,7 +276,7 @@ class TQDateTimeEditPrivate;
class Q_EXPORT TQDateTimeEdit : public TQWidget class Q_EXPORT TQDateTimeEdit : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQDateTime dateTime READ dateTime WRITE setDateTime ) Q_PROPERTY( TQDateTime dateTime READ dateTime WRITE setDateTime )
public: public:
@ -319,7 +319,7 @@ private:
TQTimeEdit* te; TQTimeEdit* te;
TQDateTimeEditPrivate* d; TQDateTimeEditPrivate* d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDateTimeEdit( const TQDateTimeEdit &amp; ); TQDateTimeEdit( const TQDateTimeEdit &amp; );
TQDateTimeEdit &amp;operator=( const TQDateTimeEdit &amp; ); TQDateTimeEdit &amp;operator=( const TQDateTimeEdit &amp; );
#endif #endif

@ -84,7 +84,7 @@ class TQDesktopWidgetPrivate; /* Don't touch! */
class Q_EXPORT TQDesktopWidget : public TQWidget class Q_EXPORT TQDesktopWidget : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQDesktopWidget(); TQDesktopWidget();
~TQDesktopWidget(); ~TQDesktopWidget();
@ -123,7 +123,7 @@ protected:
private: private:
TQDesktopWidgetPrivate *d; TQDesktopWidgetPrivate *d;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQDesktopWidget( const TQDesktopWidget &amp; ); TQDesktopWidget( const TQDesktopWidget &amp; );
TQDesktopWidget &amp;operator=( const TQDesktopWidget &amp; ); TQDesktopWidget &amp;operator=( const TQDesktopWidget &amp; );
#endif #endif

@ -89,7 +89,7 @@ class TQDialPrivate;
class Q_EXPORT TQDial: public TQWidget, public TQRangeControl class Q_EXPORT TQDial: public TQWidget, public TQRangeControl
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool tracking READ tracking WRITE setTracking ) Q_PROPERTY( bool tracking READ tracking WRITE setTracking )
Q_PROPERTY( bool wrapping READ wrapping WRITE setWrapping ) Q_PROPERTY( bool wrapping READ wrapping WRITE setWrapping )
Q_PROPERTY( int notchSize READ notchSize ) Q_PROPERTY( int notchSize READ notchSize )
@ -177,7 +177,7 @@ private:
void calcLines(); void calcLines();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDial( const TQDial &amp; ); TQDial( const TQDial &amp; );
TQDial &amp;operator=( const TQDial &amp; ); TQDial &amp;operator=( const TQDial &amp; );
#endif #endif

@ -82,7 +82,7 @@ body { background: #ffffff; color: black; }
#endif // QT_H #endif // QT_H
#ifndef QT_NO_DIALOG #ifndef QT_NO_DIALOG
#if 0 #if 0
Q_OBJECT TQ_OBJECT
#endif #endif
class TQPushButton; class TQPushButton;
@ -91,7 +91,7 @@ class TQDialogPrivate;
class Q_EXPORT TQDialog : public TQWidget class Q_EXPORT TQDialog : public TQWidget
{ {
friend class TQPushButton; friend class TQPushButton;
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled ) Q_PROPERTY( bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled )
Q_PROPERTY( bool modal READ isModal WRITE setModal ) Q_PROPERTY( bool modal READ isModal WRITE setModal )
@ -167,7 +167,7 @@ private:
TQDialogPrivate* d; TQDialogPrivate* d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDialog( const TQDialog &amp; ); TQDialog( const TQDialog &amp; );
TQDialog &amp;operator=( const TQDialog &amp; ); TQDialog &amp;operator=( const TQDialog &amp; );
#endif #endif

@ -84,7 +84,7 @@ body { background: #ffffff; color: black; }
#include "ntqstringlist.h" #include "ntqstringlist.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK ) #if !defined( TQT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK )
#define TQM_EXPORT_DNS #define TQM_EXPORT_DNS
#else #else
#define TQM_EXPORT_DNS Q_EXPORT #define TQM_EXPORT_DNS Q_EXPORT
@ -97,7 +97,7 @@ body { background: #ffffff; color: black; }
class TQDnsPrivate; class TQDnsPrivate;
class TQM_EXPORT_DNS TQDns: public TQObject { class TQM_EXPORT_DNS TQDns: public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
enum RecordType { enum RecordType {
None, None,
@ -189,7 +189,7 @@ private:
// TQDnsSocket are sockets that are used for DNS lookup // TQDnsSocket are sockets that are used for DNS lookup
class TQDnsSocket: public TQObject { class TQDnsSocket: public TQObject {
Q_OBJECT TQ_OBJECT
// note: Private not public. This class contains NO public API. // note: Private not public. This class contains NO public API.
protected: protected:
TQDnsSocket( TQObject *, const char * ); TQDnsSocket( TQObject *, const char * );

@ -98,7 +98,7 @@ class TQDockAreaPrivate;
class Q_EXPORT TQDockAreaLayout : public TQLayout class Q_EXPORT TQDockAreaLayout : public TQLayout
{ {
Q_OBJECT TQ_OBJECT
friend class TQDockArea; friend class TQDockArea;
public: public:
@ -133,7 +133,7 @@ private:
TQWidget *parentWidget; TQWidget *parentWidget;
TQValueList&lt;TQRect&gt; lines; TQValueList&lt;TQRect&gt; lines;
TQPtrList&lt;TQDockWindow&gt; ls; TQPtrList&lt;TQDockWindow&gt; ls;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQDockAreaLayout( const TQDockAreaLayout &amp; ); TQDockAreaLayout( const TQDockAreaLayout &amp; );
TQDockAreaLayout &amp;operator=( const TQDockAreaLayout &amp; ); TQDockAreaLayout &amp;operator=( const TQDockAreaLayout &amp; );
#endif #endif
@ -141,7 +141,7 @@ private:
class Q_EXPORT TQDockArea : public TQWidget class Q_EXPORT TQDockArea : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( HandlePosition ) Q_ENUMS( HandlePosition )
Q_PROPERTY( Orientation orientation READ orientation ) Q_PROPERTY( Orientation orientation READ orientation )
Q_PROPERTY( int count READ count ) Q_PROPERTY( int count READ count )
@ -208,7 +208,7 @@ private:
TQDockAreaPrivate *d; TQDockAreaPrivate *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDockArea( const TQDockArea &amp; ); TQDockArea( const TQDockArea &amp; );
TQDockArea&amp; operator=( const TQDockArea &amp; ); TQDockArea&amp; operator=( const TQDockArea &amp; );
#endif #endif

@ -100,7 +100,7 @@ class TQWindowsXPStyle;
class Q_EXPORT TQDockWindow : public TQFrame class Q_EXPORT TQDockWindow : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( CloseMode Place ) Q_ENUMS( CloseMode Place )
Q_PROPERTY( int closeMode READ closeMode WRITE setCloseMode ) //### this shouldn't be of type int?! Q_PROPERTY( int closeMode READ closeMode WRITE setCloseMode ) //### this shouldn't be of type int?!
Q_PROPERTY( bool resizeEnabled READ isResizeEnabled WRITE setResizeEnabled ) Q_PROPERTY( bool resizeEnabled READ isResizeEnabled WRITE setResizeEnabled )
@ -255,7 +255,7 @@ private:
TQDockWindowPrivate *d; TQDockWindowPrivate *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDockWindow( const TQDockWindow &amp; ); TQDockWindow( const TQDockWindow &amp; );
TQDockWindow&amp; operator=( const TQDockWindow &amp; ); TQDockWindow&amp; operator=( const TQDockWindow &amp; );
#endif #endif

@ -81,7 +81,7 @@ body { background: #ffffff; color: black; }
#include "ntqstring.h" #include "ntqstring.h"
#endif // QT_H #endif // QT_H
#if !defined(QT_MODULE_XML) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_XML ) #if !defined(TQT_MODULE_XML) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_XML )
#define TQM_EXPORT_DOM #define TQM_EXPORT_DOM
#else #else
#define TQM_EXPORT_DOM Q_EXPORT #define TQM_EXPORT_DOM Q_EXPORT

@ -91,7 +91,7 @@ class TQImageDragData;
#ifndef QT_NO_MIME #ifndef QT_NO_MIME
class Q_EXPORT TQDragObject: public TQObject, public TQMimeSource { class Q_EXPORT TQDragObject: public TQObject, public TQMimeSource {
Q_OBJECT TQ_OBJECT
public: public:
TQDragObject( TQWidget * dragSource = 0, const char * name = 0 ); TQDragObject( TQWidget * dragSource = 0, const char * name = 0 );
virtual ~TQDragObject(); virtual ~TQDragObject();
@ -122,14 +122,14 @@ protected:
private: private:
TQDragObjectData * d; TQDragObjectData * d;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQDragObject( const TQDragObject &amp; ); TQDragObject( const TQDragObject &amp; );
TQDragObject &amp;operator=( const TQDragObject &amp; ); TQDragObject &amp;operator=( const TQDragObject &amp; );
#endif #endif
}; };
class Q_EXPORT TQStoredDrag: public TQDragObject { class Q_EXPORT TQStoredDrag: public TQDragObject {
Q_OBJECT TQ_OBJECT
TQStoredDragData * d; TQStoredDragData * d;
public: public:
@ -143,14 +143,14 @@ public:
virtual TQByteArray encodedData(const char*) const; virtual TQByteArray encodedData(const char*) const;
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQStoredDrag( const TQStoredDrag &amp; ); TQStoredDrag( const TQStoredDrag &amp; );
TQStoredDrag &amp;operator=( const TQStoredDrag &amp; ); TQStoredDrag &amp;operator=( const TQStoredDrag &amp; );
#endif #endif
}; };
class Q_EXPORT TQTextDrag: public TQDragObject { class Q_EXPORT TQTextDrag: public TQDragObject {
Q_OBJECT TQ_OBJECT
TQTextDragPrivate* d; TQTextDragPrivate* d;
public: public:
TQTextDrag( const TQString &amp;, TQTextDrag( const TQString &amp;,
@ -169,14 +169,14 @@ public:
static bool decode( const TQMimeSource* e, TQString&amp; s, TQCString&amp; subtype ); static bool decode( const TQMimeSource* e, TQString&amp; s, TQCString&amp; subtype );
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQTextDrag( const TQTextDrag &amp; ); TQTextDrag( const TQTextDrag &amp; );
TQTextDrag &amp;operator=( const TQTextDrag &amp; ); TQTextDrag &amp;operator=( const TQTextDrag &amp; );
#endif #endif
}; };
class Q_EXPORT TQImageDrag: public TQDragObject { class Q_EXPORT TQImageDrag: public TQDragObject {
Q_OBJECT TQ_OBJECT
TQImage img; TQImage img;
TQStrList ofmts; TQStrList ofmts;
TQImageDragData* d; TQImageDragData* d;
@ -196,7 +196,7 @@ public:
static bool decode( const TQMimeSource* e, TQPixmap&amp; i ); static bool decode( const TQMimeSource* e, TQPixmap&amp; i );
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQImageDrag( const TQImageDrag &amp; ); TQImageDrag( const TQImageDrag &amp; );
TQImageDrag &amp;operator=( const TQImageDrag &amp; ); TQImageDrag &amp;operator=( const TQImageDrag &amp; );
#endif #endif
@ -204,7 +204,7 @@ private:
class Q_EXPORT TQUriDrag: public TQStoredDrag { class Q_EXPORT TQUriDrag: public TQStoredDrag {
Q_OBJECT TQ_OBJECT
public: public:
TQUriDrag( TQStrList uris, TQWidget * dragSource = 0, const char * name = 0 ); TQUriDrag( TQStrList uris, TQWidget * dragSource = 0, const char * name = 0 );
@ -226,7 +226,7 @@ public:
static bool decodeLocalFiles( const TQMimeSource* e, TQStringList&amp; i ); static bool decodeLocalFiles( const TQMimeSource* e, TQStringList&amp; i );
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQUriDrag( const TQUriDrag &amp; ); TQUriDrag( const TQUriDrag &amp; );
TQUriDrag &amp;operator=( const TQUriDrag &amp; ); TQUriDrag &amp;operator=( const TQUriDrag &amp; );
#endif #endif
@ -234,7 +234,7 @@ private:
class Q_EXPORT TQColorDrag : public TQStoredDrag class Q_EXPORT TQColorDrag : public TQStoredDrag
{ {
Q_OBJECT TQ_OBJECT
TQColor color; TQColor color;
public: public:
@ -246,7 +246,7 @@ public:
static bool decode( TQMimeSource *, TQColor &amp;col ); static bool decode( TQMimeSource *, TQColor &amp;col );
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQColorDrag( const TQColorDrag &amp; ); TQColorDrag( const TQColorDrag &amp; );
TQColorDrag &amp;operator=( const TQColorDrag &amp; ); TQColorDrag &amp;operator=( const TQColorDrag &amp; );
#endif #endif
@ -264,7 +264,7 @@ typedef TQUriDrag TQUrlDrag;
// //
class Q_EXPORT TQDragManager: public TQObject { class Q_EXPORT TQDragManager: public TQObject {
Q_OBJECT TQ_OBJECT
private: private:
TQDragManager(); TQDragManager();
@ -301,7 +301,7 @@ private:
TQPixmap *pm_cursor; TQPixmap *pm_cursor;
int n_cursor; int n_cursor;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQDragManager( const TQDragManager &amp; ); TQDragManager( const TQDragManager &amp; );
TQDragManager &amp;operator=( const TQDragManager &amp; ); TQDragManager &amp;operator=( const TQDragManager &amp; );
#endif #endif

@ -81,7 +81,7 @@ body { background: #ffffff; color: black; }
#include "ntqvariant.h" #include "ntqvariant.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -101,7 +101,7 @@ public:
static void installDefaultFactory( TQEditorFactory * factory); static void installDefaultFactory( TQEditorFactory * factory);
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQEditorFactory( const TQEditorFactory &amp; ); TQEditorFactory( const TQEditorFactory &amp; );
TQEditorFactory &amp;operator=( const TQEditorFactory &amp; ); TQEditorFactory &amp;operator=( const TQEditorFactory &amp; );
#endif #endif

@ -91,7 +91,7 @@ template&lt;class type&gt; class TQDict;
class Q_EXPORT TQErrorMessage: public TQDialog { class Q_EXPORT TQErrorMessage: public TQDialog {
Q_OBJECT TQ_OBJECT
public: public:
TQErrorMessage( TQWidget* parent, const char* name=0 ); TQErrorMessage( TQWidget* parent, const char* name=0 );
~TQErrorMessage(); ~TQErrorMessage();
@ -114,7 +114,7 @@ private:
bool nextPending(); bool nextPending();
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQErrorMessage( const TQErrorMessage &amp; ); TQErrorMessage( const TQErrorMessage &amp; );
TQErrorMessage &amp;operator=( const TQErrorMessage &amp; ); TQErrorMessage &amp;operator=( const TQErrorMessage &amp; );
#endif #endif

@ -95,7 +95,7 @@ class TQMutex;
class Q_EXPORT TQEventLoop : public TQObject class Q_EXPORT TQEventLoop : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQEventLoop( TQObject *parent = 0, const char *name = 0 ); TQEventLoop( TQObject *parent = 0, const char *name = 0 );

@ -55,7 +55,7 @@ This example program displays all characters of a font.
class TQSlider; class TQSlider;
class FontRowTable : public <a href="ntqframe.html">TQFrame</a> { class FontRowTable : public <a href="ntqframe.html">TQFrame</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
FontRowTable( <a href="ntqwidget.html">TQWidget</a>* parent=0, const char* name=0 ); FontRowTable( <a href="ntqwidget.html">TQWidget</a>* parent=0, const char* name=0 );
@ -78,7 +78,7 @@ private:
}; };
class FontDisplayer : public <a href="ntqmainwindow.html">TQMainWindow</a> { class FontDisplayer : public <a href="ntqmainwindow.html">TQMainWindow</a> {
Q_OBJECT TQ_OBJECT
public: public:
FontDisplayer( <a href="ntqwidget.html">TQWidget</a>* parent=0, const char* name=0 ); FontDisplayer( <a href="ntqwidget.html">TQWidget</a>* parent=0, const char* name=0 );
}; };

@ -150,7 +150,7 @@ private:
TQCString ungetchBuffer; TQCString ungetchBuffer;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQFile( const TQFile &amp; ); TQFile( const TQFile &amp; );
TQFile &amp;operator=( const TQFile &amp; ); TQFile &amp;operator=( const TQFile &amp; );
#endif #endif

@ -105,13 +105,13 @@ class TQFileDialogTQFileListView;
class Q_EXPORT TQFileIconProvider : public TQObject class Q_EXPORT TQFileIconProvider : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQFileIconProvider( TQObject * parent = 0, const char* name = 0 ); TQFileIconProvider( TQObject * parent = 0, const char* name = 0 );
virtual const TQPixmap * pixmap( const TQFileInfo &amp; ); virtual const TQPixmap * pixmap( const TQFileInfo &amp; );
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQFileIconProvider( const TQFileIconProvider &amp; ); TQFileIconProvider( const TQFileIconProvider &amp; );
TQFileIconProvider&amp; operator=( const TQFileIconProvider &amp; ); TQFileIconProvider&amp; operator=( const TQFileIconProvider &amp; );
#endif #endif
@ -127,7 +127,7 @@ public:
class Q_EXPORT TQFileDialog : public TQDialog class Q_EXPORT TQFileDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Mode ViewMode PreviewMode ) Q_ENUMS( Mode ViewMode PreviewMode )
// ##### Why are this read-only properties ? // ##### Why are this read-only properties ?
Q_PROPERTY( TQString selectedFile READ selectedFile ) Q_PROPERTY( TQString selectedFile READ selectedFile )
@ -372,7 +372,7 @@ private:
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQFileDialog( const TQFileDialog &amp; ); TQFileDialog( const TQFileDialog &amp; );
TQFileDialog &amp;operator=( const TQFileDialog &amp; ); TQFileDialog &amp;operator=( const TQFileDialog &amp; );
#endif #endif

@ -155,7 +155,7 @@ public:
bool permission( int permissionSpec ) const; bool permission( int permissionSpec ) const;
#if (QT_VERSION-0 &gt;= 0x040000) #if (TQT_VERSION-0 &gt;= 0x040000)
#error "TQFileInfo::size() should return TQIODevice::Offset instead of uint" #error "TQFileInfo::size() should return TQIODevice::Offset instead of uint"
#elif defined(QT_ABI_QT4) #elif defined(QT_ABI_QT4)
TQIODevice::Offset size() const; TQIODevice::Offset size() const;

@ -100,7 +100,7 @@ class TQFontDialogPrivate;
class Q_EXPORT TQFontDialog: public TQDialog class Q_EXPORT TQFontDialog: public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
static TQFont getFont( bool *ok, const TQFont &amp;def, static TQFont getFont( bool *ok, const TQFont &amp;def,
@ -137,7 +137,7 @@ private:
TQFontDialogPrivate * d; TQFontDialogPrivate * d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQFontDialog( const TQFontDialog &amp; ); TQFontDialog( const TQFontDialog &amp; );
TQFontDialog&amp; operator=( const TQFontDialog &amp; ); TQFontDialog&amp; operator=( const TQFontDialog &amp; );
#endif #endif

@ -88,7 +88,7 @@ body { background: #ffffff; color: black; }
class TQFontDef; class TQFontDef;
class Q_PACKED TQGlyphMetrics { class TQ_PACKED TQGlyphMetrics {
public: public:
Q_UINT8 linestep; Q_UINT8 linestep;

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQFrame : public TQWidget class Q_EXPORT TQFrame : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Shape Shadow ) Q_ENUMS( Shape Shadow )
Q_PROPERTY( int frameWidth READ frameWidth ) Q_PROPERTY( int frameWidth READ frameWidth )
Q_PROPERTY( TQRect contentsRect READ contentsRect ) Q_PROPERTY( TQRect contentsRect READ contentsRect )
@ -167,7 +167,7 @@ private:
void * d; void * d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQFrame( const TQFrame &amp; ); TQFrame( const TQFrame &amp; );
TQFrame &amp;operator=( const TQFrame &amp; ); TQFrame &amp;operator=( const TQFrame &amp; );
#endif #endif

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqnetworkprotocol.h" #include "ntqnetworkprotocol.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK ) #if !defined( TQT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK )
#define TQM_EXPORT_FTP #define TQM_EXPORT_FTP
#else #else
#define TQM_EXPORT_FTP Q_EXPORT #define TQM_EXPORT_FTP Q_EXPORT
@ -97,7 +97,7 @@ class TQFtpCommand;
class TQM_EXPORT_FTP TQFtp : public TQNetworkProtocol class TQM_EXPORT_FTP TQFtp : public TQNetworkProtocol
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQFtp(); // ### TQt 4.0: get rid of this overload TQFtp(); // ### TQt 4.0: get rid of this overload

@ -87,7 +87,7 @@ class TQGfxDriverPluginPrivate;
class Q_EXPORT TQGfxDriverPlugin : public TQGPlugin class Q_EXPORT TQGfxDriverPlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQGfxDriverPlugin(); TQGfxDriverPlugin();
~TQGfxDriverPlugin(); ~TQGfxDriverPlugin();

@ -82,7 +82,7 @@ body { background: #ffffff; color: black; }
#include "ntqglcolormap.h" #include "ntqglcolormap.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_OPENGL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_OPENGL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_OPENGL #define TQM_EXPORT_OPENGL
#else #else
#define TQM_EXPORT_OPENGL Q_EXPORT #define TQM_EXPORT_OPENGL Q_EXPORT
@ -310,7 +310,7 @@ private: // Disabled copy constructor and operator=
class TQM_EXPORT_OPENGL TQGLWidget : public TQWidget, public TQGL class TQM_EXPORT_OPENGL TQGLWidget : public TQWidget, public TQGL
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQGLWidget( TQWidget* parent=0, const char* name=0, TQGLWidget( TQWidget* parent=0, const char* name=0,
const TQGLWidget* shareWidget = 0, WFlags f=0 ); const TQGLWidget* shareWidget = 0, WFlags f=0 );
@ -403,7 +403,7 @@ private:
#endif #endif
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQGLWidget( const TQGLWidget&amp; ); TQGLWidget( const TQGLWidget&amp; );
TQGLWidget&amp; operator=( const TQGLWidget&amp; ); TQGLWidget&amp; operator=( const TQGLWidget&amp; );
#endif #endif

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqshared.h" #include "ntqshared.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_OPENGL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_OPENGL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_OPENGL #define TQM_EXPORT_OPENGL
#else #else
#define TQM_EXPORT_OPENGL Q_EXPORT #define TQM_EXPORT_OPENGL Q_EXPORT

@ -77,11 +77,11 @@ body { background: #ffffff; color: black; }
#ifndef TQGLOBAL_H #ifndef TQGLOBAL_H
#define TQGLOBAL_H #define TQGLOBAL_H
#define QT_VERSION_STR "3.3.8" #define TQT_VERSION_STR "3.3.8"
/* /*
QT_VERSION is (major &lt;&lt; 16) + (minor &lt;&lt; 8) + patch. TQT_VERSION is (major &lt;&lt; 16) + (minor &lt;&lt; 8) + patch.
*/ */
#define QT_VERSION 0x030308 #define TQT_VERSION 0x030308
/* /*
The operating system, must be one of: (Q_OS_x) The operating system, must be one of: (Q_OS_x)
@ -353,7 +353,7 @@ body { background: #ffffff; color: black; }
members of a packed struct. (Pointers are OK, because then you members of a packed struct. (Pointers are OK, because then you
supposedly know what you are doing.) */ supposedly know what you are doing.) */
# if (defined(__arm__) || defined(__ARMEL__)) &amp;&amp; !defined(QT_MOC_CPP) # if (defined(__arm__) || defined(__ARMEL__)) &amp;&amp; !defined(QT_MOC_CPP)
# define Q_PACKED __attribute__ ((packed)) # define TQ_PACKED __attribute__ ((packed))
# if __GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &gt;= 4 # if __GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &gt;= 4
# define Q_NO_PACKED_REFERENCE # define Q_NO_PACKED_REFERENCE
# endif # endif
@ -580,8 +580,8 @@ body { background: #ffffff; color: black; }
# error "TQt has not been tested with this compiler - talk to qt-bugs@trolltech.com" # error "TQt has not been tested with this compiler - talk to qt-bugs@trolltech.com"
#endif #endif
#ifndef Q_PACKED #ifndef TQ_PACKED
# define Q_PACKED # define TQ_PACKED
#endif #endif
@ -639,10 +639,10 @@ body { background: #ffffff; color: black; }
Some classes do not permit copies to be made of an object. Some classes do not permit copies to be made of an object.
These classes contains a private copy constructor and operator= These classes contains a private copy constructor and operator=
to disable copying (the compiler gives an error message). to disable copying (the compiler gives an error message).
Undefine Q_DISABLE_COPY to turn off this checking. Undefine TQ_DISABLE_COPY to turn off this checking.
*/ */
#define Q_DISABLE_COPY #define TQ_DISABLE_COPY
#if defined(__cplusplus) #if defined(__cplusplus)
@ -724,7 +724,7 @@ const bool true = TRUE;
#define TQMIN(a, b) ((a) &lt; (b) ? (a) : (b)) #define TQMIN(a, b) ((a) &lt; (b) ? (a) : (b))
#define TQABS(a) ((a) &gt;= 0 ? (a) : -(a)) #define TQABS(a) ((a) &gt;= 0 ? (a) : -(a))
inline int qRound( double d ) inline int tqRound( double d )
{ {
return d &gt;= 0.0 ? int(d + 0.5) : int( d - ((int)d-1) + 0.5 ) + ((int)d-1); return d &gt;= 0.0 ? int(d + 0.5) : int( d - ((int)d-1) + 0.5 ) + ((int)d-1);
} }
@ -758,13 +758,13 @@ typedef long Q_LONG; // word up to 64 bit signed
typedef unsigned long Q_ULONG; // word up to 64 bit unsigned typedef unsigned long Q_ULONG; // word up to 64 bit unsigned
#endif #endif
#if defined(Q_OS_WIN) &amp;&amp; !defined(Q_CC_GNU) #if defined(Q_OS_WIN) &amp;&amp; !defined(Q_CC_GNU)
# define Q_INT64_C(c) c ## i64 // signed 64 bit constant # define TQ_INT64_C(c) c ## i64 // signed 64 bit constant
# define Q_UINT64_C(c) c ## ui64 // unsigned 64 bit constant # define TQ_UINT64_C(c) c ## ui64 // unsigned 64 bit constant
typedef __int64 Q_INT64; // 64 bit signed typedef __int64 Q_INT64; // 64 bit signed
typedef unsigned __int64 Q_UINT64; // 64 bit unsigned typedef unsigned __int64 Q_UINT64; // 64 bit unsigned
#else #else
# define Q_INT64_C(c) c ## LL // signed 64 bit constant # define TQ_INT64_C(c) c ## LL // signed 64 bit constant
# define Q_UINT64_C(c) c ## ULL // unsigned 64 bit constant # define TQ_UINT64_C(c) c ## ULL // unsigned 64 bit constant
typedef long long Q_INT64; // 64 bit signed typedef long long Q_INT64; // 64 bit signed
typedef unsigned long long Q_UINT64; // 64 bit unsigned typedef unsigned long long Q_UINT64; // 64 bit unsigned
#endif #endif
@ -814,37 +814,37 @@ class TQDataStream;
#endif #endif
#ifndef QT_BUILD_KEY #ifndef TQT_BUILD_KEY
#define QT_BUILD_KEY "unspecified" #define TQT_BUILD_KEY "unspecified"
#endif #endif
// prune to local config // prune to local config
#include "ntqmodules.h" #include "ntqmodules.h"
#ifndef QT_MODULE_DIALOGS #ifndef TQT_MODULE_DIALOGS
# define QT_NO_DIALOG # define QT_NO_DIALOG
#endif #endif
#ifndef QT_MODULE_ICONVIEW #ifndef TQT_MODULE_ICONVIEW
# define QT_NO_ICONVIEW # define QT_NO_ICONVIEW
#endif #endif
#ifndef QT_MODULE_WORKSPACE #ifndef TQT_MODULE_WORKSPACE
# define QT_NO_WORKSPACE # define QT_NO_WORKSPACE
#endif #endif
#ifndef QT_MODULE_NETWORK #ifndef TQT_MODULE_NETWORK
#define QT_NO_NETWORK #define QT_NO_NETWORK
#endif #endif
#ifndef QT_MODULE_CANVAS #ifndef TQT_MODULE_CANVAS
# define QT_NO_CANVAS # define QT_NO_CANVAS
#endif #endif
#ifndef QT_MODULE_TABLE #ifndef TQT_MODULE_TABLE
#define QT_NO_TABLE #define QT_NO_TABLE
#endif #endif
#ifndef QT_MODULE_XML #ifndef TQT_MODULE_XML
# define QT_NO_XML # define QT_NO_XML
#endif #endif
#ifndef QT_MODULE_OPENGL #ifndef TQT_MODULE_OPENGL
# define QT_NO_OPENGL # define QT_NO_OPENGL
#endif #endif
#if !defined(QT_MODULE_SQL) #if !defined(TQT_MODULE_SQL)
# define QT_NO_SQL # define QT_NO_SQL
#endif #endif
@ -895,7 +895,7 @@ class TQDataStream;
# define Q_EXPORT __declspec(dllexport) # define Q_EXPORT __declspec(dllexport)
# define Q_TEMPLATEDLL # define Q_TEMPLATEDLL
# define Q_TEMPLATE_EXTERN # define Q_TEMPLATE_EXTERN
# undef Q_DISABLE_COPY /* avoid unresolved externals */ # undef TQ_DISABLE_COPY /* avoid unresolved externals */
# elif defined(QT_DLL) /* use a TQt DLL library */ # elif defined(QT_DLL) /* use a TQt DLL library */
# define Q_EXPORT __declspec(dllimport) # define Q_EXPORT __declspec(dllimport)
# define Q_TEMPLATEDLL # define Q_TEMPLATEDLL
@ -906,18 +906,18 @@ class TQDataStream;
# define Q_TEMPLATE_EXTERN # define Q_TEMPLATE_EXTERN
# endif # endif
# endif # endif
# undef Q_DISABLE_COPY /* avoid unresolved externals */ # undef TQ_DISABLE_COPY /* avoid unresolved externals */
# endif # endif
#elif defined(Q_OS_LINUX) &amp;&amp; defined(Q_CC_BOR) #elif defined(Q_OS_LINUX) &amp;&amp; defined(Q_CC_BOR)
# if defined(QT_SHARED) /* create a TQt shared library */ # if defined(QT_SHARED) /* create a TQt shared library */
# define Q_EXPORT __declspec(dllexport) # define Q_EXPORT __declspec(dllexport)
# define Q_TEMPLATEDLL # define Q_TEMPLATEDLL
# define Q_TEMPLATE_EXTERN # define Q_TEMPLATE_EXTERN
# undef Q_DISABLE_COPY /* avoid unresolved externals */ # undef TQ_DISABLE_COPY /* avoid unresolved externals */
# else # else
# define Q_TEMPLATEDLL # define Q_TEMPLATEDLL
# define Q_TEMPLATE_EXTERN # define Q_TEMPLATE_EXTERN
# undef Q_DISABLE_COPY /* avoid unresolved externals */ # undef TQ_DISABLE_COPY /* avoid unresolved externals */
# endif # endif
#else #else
# undef QT_MAKEDLL /* ignore these for other platforms */ # undef QT_MAKEDLL /* ignore these for other platforms */
@ -1070,14 +1070,14 @@ Q_EXPORT void fatal( const char *, ... ) // print fatal message and exit
Q_EXPORT bool qt_check_pointer( bool c, const char *, int ); Q_EXPORT bool qt_check_pointer( bool c, const char *, int );
#if defined(QT_CHECK_NULL) #if defined(QT_CHECK_NULL)
# define Q_CHECK_PTR(p) (qt_check_pointer((p)==0,__FILE__,__LINE__)) # define TQ_CHECK_PTR(p) (qt_check_pointer((p)==0,__FILE__,__LINE__))
#else #else
# define Q_CHECK_PTR(p) # define TQ_CHECK_PTR(p)
#endif #endif
#if !defined(QT_NO_COMPAT) // compatibility with TQt 2 #if !defined(QT_NO_COMPAT) // compatibility with TQt 2
# if !defined(CHECK_PTR) # if !defined(CHECK_PTR)
# define CHECK_PTR(x) Q_CHECK_PTR(x) # define CHECK_PTR(x) TQ_CHECK_PTR(x)
# endif # endif
#endif // QT_NO_COMPAT #endif // QT_NO_COMPAT

@ -117,7 +117,7 @@ paintGL() is called.
<p> <pre> <p> <pre>
class MyGLDrawer : public TQGLWidget class MyGLDrawer : public TQGLWidget
{ {
Q_OBJECT // must include this if you use TQt signals/slots TQ_OBJECT // must include this if you use TQt signals/slots
public: public:
MyGLDrawer( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name ) MyGLDrawer( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name )

@ -83,7 +83,7 @@ class TQGridLayout;
class Q_EXPORT TQGrid : public TQFrame class Q_EXPORT TQGrid : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQGrid( int n, TQWidget* parent=0, const char* name=0, WFlags f = 0 ); TQGrid( int n, TQWidget* parent=0, const char* name=0, WFlags f = 0 );
TQGrid( int n, Orientation orient, TQWidget* parent=0, const char* name=0, TQGrid( int n, Orientation orient, TQWidget* parent=0, const char* name=0,
@ -102,7 +102,7 @@ protected:
private: private:
TQGridLayout *lay; TQGridLayout *lay;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQGrid( const TQGrid &amp; ); TQGrid( const TQGrid &amp; );
TQGrid&amp; operator=( const TQGrid &amp; ); TQGrid&amp; operator=( const TQGrid &amp; );
#endif #endif

@ -87,7 +87,7 @@ class TQGridViewPrivate;
class Q_EXPORT TQGridView : public TQScrollView class Q_EXPORT TQGridView : public TQScrollView
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int numRows READ numRows WRITE setNumRows ) Q_PROPERTY( int numRows READ numRows WRITE setNumRows )
Q_PROPERTY( int numCols READ numCols WRITE setNumCols ) Q_PROPERTY( int numCols READ numCols WRITE setNumCols )
Q_PROPERTY( int cellWidth READ cellWidth WRITE setCellWidth ) Q_PROPERTY( int cellWidth READ cellWidth WRITE setCellWidth )
@ -137,7 +137,7 @@ private:
TQGridViewPrivate* d; TQGridViewPrivate* d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQGridView( const TQGridView &amp; ); TQGridView( const TQGridView &amp; );
TQGridView &amp;operator=( const TQGridView &amp; ); TQGridView &amp;operator=( const TQGridView &amp; );
#endif #endif

@ -92,7 +92,7 @@ class TQSpacerItem;
class Q_EXPORT TQGroupBox : public TQFrame class Q_EXPORT TQGroupBox : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString title READ title WRITE setTitle ) Q_PROPERTY( TQString title READ title WRITE setTitle )
Q_PROPERTY( Alignment alignment READ alignment WRITE setAlignment ) Q_PROPERTY( Alignment alignment READ alignment WRITE setAlignment )
Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation DESIGNABLE false ) Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation DESIGNABLE false )
@ -189,7 +189,7 @@ private:
int spac, marg; int spac, marg;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQGroupBox( const TQGroupBox &amp; ); TQGroupBox( const TQGroupBox &amp; );
TQGroupBox &amp;operator=( const TQGroupBox &amp; ); TQGroupBox &amp;operator=( const TQGroupBox &amp; );
#endif #endif

@ -84,7 +84,7 @@ body { background: #ffffff; color: black; }
// ### 4.0: rename to something without Private in it. Not really internal. // ### 4.0: rename to something without Private in it. Not really internal.
class Q_EXPORT TQGuardedPtrPrivate : public TQObject, public TQShared class Q_EXPORT TQGuardedPtrPrivate : public TQObject, public TQShared
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQGuardedPtrPrivate( TQObject* ); TQGuardedPtrPrivate( TQObject* );
~TQGuardedPtrPrivate(); ~TQGuardedPtrPrivate();
@ -97,7 +97,7 @@ private slots:
private: private:
TQObject* obj; TQObject* obj;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQGuardedPtrPrivate( const TQGuardedPtrPrivate &amp; ); TQGuardedPtrPrivate( const TQGuardedPtrPrivate &amp; );
TQGuardedPtrPrivate &amp;operator=( const TQGuardedPtrPrivate &amp; ); TQGuardedPtrPrivate &amp;operator=( const TQGuardedPtrPrivate &amp; );
#endif #endif

@ -86,7 +86,7 @@ class TQBoxLayout;
class Q_EXPORT TQHBox : public TQFrame class Q_EXPORT TQHBox : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQHBox( TQWidget* parent=0, const char* name=0, WFlags f=0 ); TQHBox( TQWidget* parent=0, const char* name=0, WFlags f=0 );
@ -101,7 +101,7 @@ protected:
private: private:
TQBoxLayout *lay; TQBoxLayout *lay;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQHBox( const TQHBox &amp; ); TQHBox( const TQHBox &amp; );
TQHBox &amp;operator=( const TQHBox &amp; ); TQHBox &amp;operator=( const TQHBox &amp; );
#endif #endif

@ -85,14 +85,14 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQHButtonGroup : public TQButtonGroup class Q_EXPORT TQHButtonGroup : public TQButtonGroup
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQHButtonGroup( TQWidget* parent=0, const char* name=0 ); TQHButtonGroup( TQWidget* parent=0, const char* name=0 );
TQHButtonGroup( const TQString &amp;title, TQWidget* parent=0, const char* name=0 ); TQHButtonGroup( const TQString &amp;title, TQWidget* parent=0, const char* name=0 );
~TQHButtonGroup(); ~TQHButtonGroup();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQHButtonGroup( const TQHButtonGroup &amp; ); TQHButtonGroup( const TQHButtonGroup &amp; );
TQHButtonGroup &amp;operator=( const TQHButtonGroup &amp; ); TQHButtonGroup &amp;operator=( const TQHButtonGroup &amp; );
#endif #endif

@ -95,7 +95,7 @@ class Q_EXPORT TQHeader : public TQWidget
friend class TQTableHeader; friend class TQTableHeader;
friend class TQListView; friend class TQListView;
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation ) Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation )
Q_PROPERTY( bool tracking READ tracking WRITE setTracking ) Q_PROPERTY( bool tracking READ tracking WRITE setTracking )
Q_PROPERTY( int count READ count ) Q_PROPERTY( int count READ count )
@ -233,7 +233,7 @@ private:
TQHeaderData *d; TQHeaderData *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQHeader( const TQHeader &amp; ); TQHeader( const TQHeader &amp; );
TQHeader &amp;operator=( const TQHeader &amp; ); TQHeader &amp;operator=( const TQHeader &amp; );
#endif #endif

@ -85,14 +85,14 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQHGroupBox : public TQGroupBox class Q_EXPORT TQHGroupBox : public TQGroupBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQHGroupBox( TQWidget* parent=0, const char* name=0 ); TQHGroupBox( TQWidget* parent=0, const char* name=0 );
TQHGroupBox( const TQString &amp;title, TQWidget* parent=0, const char* name=0 ); TQHGroupBox( const TQString &amp;title, TQWidget* parent=0, const char* name=0 );
~TQHGroupBox(); ~TQHGroupBox();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQHGroupBox( const TQHGroupBox &amp; ); TQHGroupBox( const TQHGroupBox &amp; );
TQHGroupBox &amp;operator=( const TQHGroupBox &amp; ); TQHGroupBox &amp;operator=( const TQHGroupBox &amp; );
#endif #endif

@ -81,7 +81,7 @@ body { background: #ffffff; color: black; }
#include "ntqstring.h" #include "ntqstring.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK ) #if !defined( TQT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK )
#define TQM_EXPORT_NETWORK #define TQM_EXPORT_NETWORK
#else #else
#define TQM_EXPORT_NETWORK Q_EXPORT #define TQM_EXPORT_NETWORK Q_EXPORT

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqstringlist.h" #include "ntqstringlist.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK ) #if !defined( TQT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK )
#define TQM_EXPORT_HTTP #define TQM_EXPORT_HTTP
#define TQM_TEMPLATE_EXTERN_HTTP #define TQM_TEMPLATE_EXTERN_HTTP
#else #else
@ -204,7 +204,7 @@ private:
class TQM_EXPORT_HTTP TQHttp : public TQNetworkProtocol class TQM_EXPORT_HTTP TQHttp : public TQNetworkProtocol
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQHttp(); TQHttp();

@ -152,7 +152,7 @@ public:
static void installDefaultFactory( TQIconFactory *factory ); static void installDefaultFactory( TQIconFactory *factory );
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQIconFactory( const TQIconFactory &amp; ); TQIconFactory( const TQIconFactory &amp; );
TQIconFactory &amp;operator=( const TQIconFactory &amp; ); TQIconFactory &amp;operator=( const TQIconFactory &amp; );
#endif #endif

@ -91,7 +91,7 @@ body { background: #ffffff; color: black; }
#ifndef QT_NO_ICONVIEW #ifndef QT_NO_ICONVIEW
#if !defined( QT_MODULE_ICONVIEW ) || defined( QT_INTERNAL_ICONVIEW ) #if !defined( TQT_MODULE_ICONVIEW ) || defined( QT_INTERNAL_ICONVIEW )
#define TQM_EXPORT_ICONVIEW #define TQM_EXPORT_ICONVIEW
#else #else
#define TQM_EXPORT_ICONVIEW Q_EXPORT #define TQM_EXPORT_ICONVIEW Q_EXPORT
@ -130,7 +130,7 @@ private:
class TQM_EXPORT_ICONVIEW TQIconDrag : public TQDragObject class TQM_EXPORT_ICONVIEW TQIconDrag : public TQDragObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQIconDrag( TQWidget * dragSource, const char* name = 0 ); TQIconDrag( TQWidget * dragSource, const char* name = 0 );
virtual ~TQIconDrag(); virtual ~TQIconDrag();
@ -147,7 +147,7 @@ private:
friend class TQIconView; friend class TQIconView;
friend class TQIconViewPrivate; friend class TQIconViewPrivate;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQIconDrag( const TQIconDrag &amp; ); TQIconDrag( const TQIconDrag &amp; );
TQIconDrag &amp;operator=( const TQIconDrag &amp; ); TQIconDrag &amp;operator=( const TQIconDrag &amp; );
#endif #endif
@ -307,7 +307,7 @@ class TQM_EXPORT_ICONVIEW TQIconView : public TQScrollView
friend class TQIconViewPrivate; friend class TQIconViewPrivate;
friend class TQIconViewToolTip; friend class TQIconViewToolTip;
Q_OBJECT TQ_OBJECT
// #### sorting and sort direction do not work // #### sorting and sort direction do not work
Q_ENUMS( SelectionMode ItemTextPos Arrangement ResizeMode ) Q_ENUMS( SelectionMode ItemTextPos Arrangement ResizeMode )
Q_PROPERTY( bool sorting READ sorting ) Q_PROPERTY( bool sorting READ sorting )
@ -539,7 +539,7 @@ private:
TQIconViewPrivate *d; TQIconViewPrivate *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQIconView( const TQIconView &amp; ); TQIconView( const TQIconView &amp; );
TQIconView&amp; operator=( const TQIconView &amp; ); TQIconView&amp; operator=( const TQIconView &amp; );
#endif #endif

@ -362,7 +362,7 @@ private:
TQImageIOData *d; TQImageIOData *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQImageIO( const TQImageIO &amp; ); TQImageIO( const TQImageIO &amp; );
TQImageIO &amp;operator=( const TQImageIO &amp; ); TQImageIO &amp;operator=( const TQImageIO &amp; );
#endif #endif

@ -86,7 +86,7 @@ class TQImageFormatPluginPrivate;
class Q_EXPORT TQImageFormatPlugin : public TQGPlugin class Q_EXPORT TQImageFormatPlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQImageFormatPlugin(); TQImageFormatPlugin();
~TQImageFormatPlugin(); ~TQImageFormatPlugin();

@ -91,7 +91,7 @@ class TQInputDialogPrivate;
class Q_EXPORT TQInputDialog : public TQDialog class Q_EXPORT TQInputDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
private: private:
enum Type { LineEdit, SpinBox, ComboBox, EditableComboBox }; enum Type { LineEdit, SpinBox, ComboBox, EditableComboBox };
@ -131,7 +131,7 @@ private:
friend class TQInputDialogPrivate; /* to avoid 'has no friends' warnings... */ friend class TQInputDialogPrivate; /* to avoid 'has no friends' warnings... */
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQInputDialog( const TQInputDialog &amp; ); TQInputDialog( const TQInputDialog &amp; );
TQInputDialog &amp;operator=( const TQInputDialog &amp; ); TQInputDialog &amp;operator=( const TQInputDialog &amp; );
#endif #endif

@ -190,7 +190,7 @@ private:
int ioSt; int ioSt;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQIODevice( const TQIODevice &amp; ); TQIODevice( const TQIODevice &amp; );
TQIODevice &amp;operator=( const TQIODevice &amp; ); TQIODevice &amp;operator=( const TQIODevice &amp; );
#endif #endif

@ -87,7 +87,7 @@ class TQKbdDriverPluginPrivate;
class Q_EXPORT TQKbdDriverPlugin : public TQGPlugin class Q_EXPORT TQKbdDriverPlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQKbdDriverPlugin(); TQKbdDriverPlugin();
~TQKbdDriverPlugin(); ~TQKbdDriverPlugin();

@ -81,7 +81,7 @@ body { background: #ffffff; color: black; }
#ifndef QT_NO_QWS_KEYBOARD #ifndef QT_NO_QWS_KEYBOARD
class TQWSKeyboardHandler : public TQObject { class TQWSKeyboardHandler : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
TQWSKeyboardHandler(); TQWSKeyboardHandler();
virtual ~TQWSKeyboardHandler(); virtual ~TQWSKeyboardHandler();

@ -88,7 +88,7 @@ class TQLabelPrivate;
class Q_EXPORT TQLabel : public TQFrame class Q_EXPORT TQLabel : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString text READ text WRITE setText ) Q_PROPERTY( TQString text READ text WRITE setText )
Q_PROPERTY( TextFormat textFormat READ textFormat WRITE setTextFormat ) Q_PROPERTY( TextFormat textFormat READ textFormat WRITE setTextFormat )
Q_PROPERTY( TQPixmap pixmap READ pixmap WRITE setPixmap ) Q_PROPERTY( TQPixmap pixmap READ pixmap WRITE setPixmap )
@ -198,7 +198,7 @@ private:
friend class TQTipLabel; friend class TQTipLabel;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQLabel( const TQLabel &amp; ); TQLabel( const TQLabel &amp; );
TQLabel &amp;operator=( const TQLabel &amp; ); TQLabel &amp;operator=( const TQLabel &amp; );
#endif #endif

@ -88,7 +88,7 @@ body { background: #ffffff; color: black; }
#ifndef QT_NO_LAYOUT #ifndef QT_NO_LAYOUT
#if 0 #if 0
Q_OBJECT TQ_OBJECT
#endif #endif
static const int TQLAYOUTSIZE_MAX = INT_MAX/256/16; static const int TQLAYOUTSIZE_MAX = INT_MAX/256/16;
@ -214,7 +214,7 @@ private:
class Q_EXPORT TQLayout : public TQObject, public TQLayoutItem class Q_EXPORT TQLayout : public TQObject, public TQLayoutItem
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( ResizeMode ) Q_ENUMS( ResizeMode )
Q_PROPERTY( int margin READ margin WRITE setMargin ) Q_PROPERTY( int margin READ margin WRITE setMargin )
Q_PROPERTY( int spacing READ spacing WRITE setSpacing ) Q_PROPERTY( int spacing READ spacing WRITE setSpacing )
@ -311,7 +311,7 @@ private:
#endif #endif
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQLayout( const TQLayout &amp; ); TQLayout( const TQLayout &amp; );
TQLayout &amp;operator=( const TQLayout &amp; ); TQLayout &amp;operator=( const TQLayout &amp; );
#endif #endif
@ -326,7 +326,7 @@ inline void TQLayoutIterator::deleteCurrent()
class Q_EXPORT TQGridLayout : public TQLayout class Q_EXPORT TQGridLayout : public TQLayout
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQGridLayout( TQWidget *parent, int nRows = 1, int nCols = 1, int border = 0, TQGridLayout( TQWidget *parent, int nRows = 1, int nCols = 1, int border = 0,
int spacing = -1, const char *name = 0 ); int spacing = -1, const char *name = 0 );
@ -389,7 +389,7 @@ protected:
void add( TQLayoutItem*, int row, int col ); void add( TQLayoutItem*, int row, int col );
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQGridLayout( const TQGridLayout &amp; ); TQGridLayout( const TQGridLayout &amp; );
TQGridLayout &amp;operator=( const TQGridLayout &amp; ); TQGridLayout &amp;operator=( const TQGridLayout &amp; );
#endif #endif
@ -403,7 +403,7 @@ class TQDockWindow;
class Q_EXPORT TQBoxLayout : public TQLayout class Q_EXPORT TQBoxLayout : public TQLayout
{ {
Q_OBJECT TQ_OBJECT
public: public:
enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop, enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop,
Down = TopToBottom, Up = BottomToTop }; Down = TopToBottom, Up = BottomToTop };
@ -455,7 +455,7 @@ protected:
private: private:
friend class TQDockWindow; friend class TQDockWindow;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQBoxLayout( const TQBoxLayout &amp; ); TQBoxLayout( const TQBoxLayout &amp; );
TQBoxLayout &amp;operator=( const TQBoxLayout &amp; ); TQBoxLayout &amp;operator=( const TQBoxLayout &amp; );
#endif #endif
@ -469,7 +469,7 @@ private:
class Q_EXPORT TQHBoxLayout : public TQBoxLayout class Q_EXPORT TQHBoxLayout : public TQBoxLayout
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQHBoxLayout( TQWidget *parent, int border = 0, TQHBoxLayout( TQWidget *parent, int border = 0,
int spacing = -1, const char *name = 0 ); int spacing = -1, const char *name = 0 );
@ -480,7 +480,7 @@ public:
~TQHBoxLayout(); ~TQHBoxLayout();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQHBoxLayout( const TQHBoxLayout &amp; ); TQHBoxLayout( const TQHBoxLayout &amp; );
TQHBoxLayout &amp;operator=( const TQHBoxLayout &amp; ); TQHBoxLayout &amp;operator=( const TQHBoxLayout &amp; );
#endif #endif
@ -488,7 +488,7 @@ private: // Disabled copy constructor and operator=
class Q_EXPORT TQVBoxLayout : public TQBoxLayout class Q_EXPORT TQVBoxLayout : public TQBoxLayout
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQVBoxLayout( TQWidget *parent, int border = 0, TQVBoxLayout( TQWidget *parent, int border = 0,
int spacing = -1, const char *name = 0 ); int spacing = -1, const char *name = 0 );
@ -499,7 +499,7 @@ public:
~TQVBoxLayout(); ~TQVBoxLayout();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQVBoxLayout( const TQVBoxLayout &amp; ); TQVBoxLayout( const TQVBoxLayout &amp; );
TQVBoxLayout &amp;operator=( const TQVBoxLayout &amp; ); TQVBoxLayout &amp;operator=( const TQVBoxLayout &amp; );
#endif #endif

@ -89,7 +89,7 @@ class TQLCDNumberPrivate;
class Q_EXPORT TQLCDNumber : public TQFrame // LCD number widget class Q_EXPORT TQLCDNumber : public TQFrame // LCD number widget
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Mode SegmentStyle ) Q_ENUMS( Mode SegmentStyle )
Q_PROPERTY( bool smallDecimalPoint READ smallDecimalPoint WRITE setSmallDecimalPoint ) Q_PROPERTY( bool smallDecimalPoint READ smallDecimalPoint WRITE setSmallDecimalPoint )
Q_PROPERTY( int numDigits READ numDigits WRITE setNumDigits ) Q_PROPERTY( int numDigits READ numDigits WRITE setNumDigits )
@ -164,7 +164,7 @@ private:
TQLCDNumberPrivate * d; TQLCDNumberPrivate * d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQLCDNumber( const TQLCDNumber &amp; ); TQLCDNumber( const TQLCDNumber &amp; );
TQLCDNumber &amp;operator=( const TQLCDNumber &amp; ); TQLCDNumber &amp;operator=( const TQLCDNumber &amp; );
#endif #endif

@ -110,7 +110,7 @@ private:
uint aunload : 1; uint aunload : 1;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQLibrary( const TQLibrary &amp; ); TQLibrary( const TQLibrary &amp; );
TQLibrary &amp;operator=( const TQLibrary &amp; ); TQLibrary &amp;operator=( const TQLibrary &amp; );
#endif #endif

@ -94,7 +94,7 @@ class TQTextCursor;
class Q_EXPORT TQLineEdit : public TQFrame class Q_EXPORT TQLineEdit : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( EchoMode ) Q_ENUMS( EchoMode )
Q_PROPERTY( TQString text READ text WRITE setText ) Q_PROPERTY( TQString text READ text WRITE setText )
Q_PROPERTY( int maxLength READ maxLength WRITE setMaxLength ) Q_PROPERTY( int maxLength READ maxLength WRITE setMaxLength )
@ -255,7 +255,7 @@ private:
TQLineEditPrivate * d; TQLineEditPrivate * d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQLineEdit( const TQLineEdit &amp; ); TQLineEdit( const TQLineEdit &amp; );
TQLineEdit &amp;operator=( const TQLineEdit &amp; ); TQLineEdit &amp;operator=( const TQLineEdit &amp; );
#endif #endif

@ -97,7 +97,7 @@ class Q_EXPORT TQListBox : public TQScrollView
friend class TQListBoxItem; friend class TQListBoxItem;
friend class TQListBoxPrivate; friend class TQListBoxPrivate;
Q_OBJECT TQ_OBJECT
Q_ENUMS( SelectionMode LayoutMode ) Q_ENUMS( SelectionMode LayoutMode )
Q_PROPERTY( uint count READ count ) Q_PROPERTY( uint count READ count )
Q_PROPERTY( int numItemsVisible READ numItemsVisible ) Q_PROPERTY( int numItemsVisible READ numItemsVisible )
@ -344,7 +344,7 @@ private:
static TQListBox * changedListBox; static TQListBox * changedListBox;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQListBox( const TQListBox &amp; ); TQListBox( const TQListBox &amp; );
TQListBox &amp;operator=( const TQListBox &amp; ); TQListBox &amp;operator=( const TQListBox &amp; );
#endif #endif
@ -402,7 +402,7 @@ private:
friend class TQComboBoxPopupItem; friend class TQComboBoxPopupItem;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQListBoxItem( const TQListBoxItem &amp; ); TQListBoxItem( const TQListBoxItem &amp; );
TQListBoxItem &amp;operator=( const TQListBoxItem &amp; ); TQListBoxItem &amp;operator=( const TQListBoxItem &amp; );
#endif #endif
@ -427,7 +427,7 @@ protected:
void paint( TQPainter * ); void paint( TQPainter * );
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQListBoxText( const TQListBoxText &amp; ); TQListBoxText( const TQListBoxText &amp; );
TQListBoxText &amp;operator=( const TQListBoxText &amp; ); TQListBoxText &amp;operator=( const TQListBoxText &amp; );
#endif #endif
@ -459,7 +459,7 @@ protected:
private: private:
TQPixmap pm; TQPixmap pm;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQListBoxPixmap( const TQListBoxPixmap &amp; ); TQListBoxPixmap( const TQListBoxPixmap &amp; );
TQListBoxPixmap &amp;operator=( const TQListBoxPixmap &amp; ); TQListBoxPixmap &amp;operator=( const TQListBoxPixmap &amp; );
#endif #endif

@ -276,7 +276,7 @@ class Q_EXPORT TQListView: public TQScrollView
friend class TQCheckListItem; friend class TQCheckListItem;
friend class TQListViewToolTip; friend class TQListViewToolTip;
Q_OBJECT TQ_OBJECT
Q_ENUMS( SelectionMode ResizeMode RenameAction ) Q_ENUMS( SelectionMode ResizeMode RenameAction )
Q_PROPERTY( int columns READ columns ) Q_PROPERTY( int columns READ columns )
Q_PROPERTY( bool multiSelection READ isMultiSelection WRITE setMultiSelection DESIGNABLE false ) Q_PROPERTY( bool multiSelection READ isMultiSelection WRITE setMultiSelection DESIGNABLE false )
@ -496,7 +496,7 @@ private:
TQListViewPrivate * d; TQListViewPrivate * d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQListView( const TQListView &amp; ); TQListView( const TQListView &amp; );
TQListView &amp;operator=( const TQListView &amp; ); TQListView &amp;operator=( const TQListView &amp; );
#endif #endif

@ -86,7 +86,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQLocalFs : public TQNetworkProtocol class Q_EXPORT TQLocalFs : public TQNetworkProtocol
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQLocalFs(); TQLocalFs();

@ -95,7 +95,7 @@ class TQMacStylePrivate;
class Q_EXPORT_STYLE_MAC TQMacStyle : public TQWindowsStyle class Q_EXPORT_STYLE_MAC TQMacStyle : public TQWindowsStyle
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQMacStyle( ); TQMacStyle( );
virtual ~TQMacStyle(); virtual ~TQMacStyle();
@ -171,7 +171,7 @@ protected:
bool event(TQEvent *); bool event(TQEvent *);
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMacStyle( const TQMacStyle &amp; ); TQMacStyle( const TQMacStyle &amp; );
TQMacStyle&amp; operator=( const TQMacStyle &amp; ); TQMacStyle&amp; operator=( const TQMacStyle &amp; );
#endif #endif

@ -67,7 +67,7 @@ magnified area as a .bmp file.
class MagWidget : public <a href="ntqwidget.html">TQWidget</a> class MagWidget : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
MagWidget( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); MagWidget( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
@ -133,12 +133,12 @@ static const int timer[] = {
int w=0, x=0, n; int w=0, x=0, n;
zoom = new <a href="ntqcombobox.html">TQComboBox</a>( FALSE, this ); zoom = new <a href="ntqcombobox.html">TQComboBox</a>( FALSE, this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(zoom); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(zoom);
<a name="x1773"></a> zoom-&gt;<a href="ntqcombobox.html#insertStrList">insertStrList</a>( zoomfactors, 9 ); <a name="x1773"></a> zoom-&gt;<a href="ntqcombobox.html#insertStrList">insertStrList</a>( zoomfactors, 9 );
<a name="x1772"></a> <a href="ntqobject.html#connect">connect</a>( zoom, SIGNAL(<a href="ntqcombobox.html#activated">activated</a>(int)), SLOT(setZoom(int)) ); <a name="x1772"></a> <a href="ntqobject.html#connect">connect</a>( zoom, SIGNAL(<a href="ntqcombobox.html#activated">activated</a>(int)), SLOT(setZoom(int)) );
refresh = new <a href="ntqcombobox.html">TQComboBox</a>( FALSE, this ); refresh = new <a href="ntqcombobox.html">TQComboBox</a>( FALSE, this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(refresh); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(refresh);
refresh-&gt;<a href="ntqcombobox.html#insertStrList">insertStrList</a>( refreshrates, 9 ); refresh-&gt;<a href="ntqcombobox.html#insertStrList">insertStrList</a>( refreshrates, 9 );
<a href="ntqobject.html#connect">connect</a>( refresh, SIGNAL(<a href="ntqcombobox.html#activated">activated</a>(int)), SLOT(setRefresh(int)) ); <a href="ntqobject.html#connect">connect</a>( refresh, SIGNAL(<a href="ntqcombobox.html#activated">activated</a>(int)), SLOT(setRefresh(int)) );
@ -157,7 +157,7 @@ static const int timer[] = {
refresh-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( x, 2, w+30, 20 ); refresh-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( x, 2, w+30, 20 );
saveButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this ); saveButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(saveButton); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(saveButton);
<a href="ntqobject.html#connect">connect</a>( saveButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, SLOT(save()) ); <a href="ntqobject.html#connect">connect</a>( saveButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, SLOT(save()) );
<a name="x1771"></a> saveButton-&gt;<a href="ntqbutton.html#setText">setText</a>( "Save" ); <a name="x1771"></a> saveButton-&gt;<a href="ntqbutton.html#setText">setText</a>( "Save" );
<a name="x1788"></a> saveButton-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( x+w+30+2, 2, <a name="x1788"></a> saveButton-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( x+w+30+2, 2,
@ -165,14 +165,14 @@ static const int timer[] = {
multiSaveButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this ); multiSaveButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this );
<a name="x1790"></a> multiSaveButton-&gt;<a href="ntqpushbutton.html#setToggleButton">setToggleButton</a>(TRUE); <a name="x1790"></a> multiSaveButton-&gt;<a href="ntqpushbutton.html#setToggleButton">setToggleButton</a>(TRUE);
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(multiSaveButton); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(multiSaveButton);
<a href="ntqobject.html#connect">connect</a>( multiSaveButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, SLOT(multiSave()) ); <a href="ntqobject.html#connect">connect</a>( multiSaveButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, SLOT(multiSave()) );
multiSaveButton-&gt;<a href="ntqbutton.html#setText">setText</a>( "MultiSave" ); multiSaveButton-&gt;<a href="ntqbutton.html#setText">setText</a>( "MultiSave" );
<a name="x1798"></a> multiSaveButton-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( saveButton-&gt;<a href="ntqwidget.html#geometry">geometry</a>().right() + 2, 2, <a name="x1798"></a> multiSaveButton-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( saveButton-&gt;<a href="ntqwidget.html#geometry">geometry</a>().right() + 2, 2,
10+multiSaveButton-&gt;<a href="ntqwidget.html#fontMetrics">fontMetrics</a>().width("MultiSave"), 20 ); 10+multiSaveButton-&gt;<a href="ntqwidget.html#fontMetrics">fontMetrics</a>().width("MultiSave"), 20 );
quitButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this ); quitButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(quitButton); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(quitButton);
<a href="ntqobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); <a href="ntqobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
quitButton-&gt;<a href="ntqbutton.html#setText">setText</a>( "Quit" ); quitButton-&gt;<a href="ntqbutton.html#setText">setText</a>( "Quit" );
quitButton-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( multiSaveButton-&gt;<a href="ntqwidget.html#geometry">geometry</a>().right() + 2, 2, quitButton-&gt;<a href="ntqwidget.html#setGeometry">setGeometry</a>( multiSaveButton-&gt;<a href="ntqwidget.html#geometry">geometry</a>().right() + 2, 2,
@ -186,7 +186,7 @@ static const int timer[] = {
setZoom(5); setZoom(5);
rgb = new <a href="ntqlabel.html">TQLabel</a>( this ); rgb = new <a href="ntqlabel.html">TQLabel</a>( this );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( rgb ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( rgb );
<a name="x1779"></a> rgb-&gt;<a href="ntqlabel.html#setText">setText</a>( "" ); <a name="x1779"></a> rgb-&gt;<a href="ntqlabel.html#setText">setText</a>( "" );
rgb-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignVCenter ); rgb-&gt;<a href="ntqlabel.html#setAlignment">setAlignment</a>( AlignVCenter );
rgb-&gt;<a href="ntqwidget.html#resize">resize</a>( <a href="ntqwidget.html#width">width</a>(), rgb-&gt;<a href="ntqwidget.html#fontMetrics">fontMetrics</a>().height() + 4 ); rgb-&gt;<a href="ntqwidget.html#resize">resize</a>( <a href="ntqwidget.html#width">width</a>(), rgb-&gt;<a href="ntqwidget.html#fontMetrics">fontMetrics</a>().height() + 4 );

@ -95,7 +95,7 @@ class TQPopupMenu;
class Q_EXPORT TQMainWindow: public TQWidget class Q_EXPORT TQMainWindow: public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool rightJustification READ rightJustification WRITE setRightJustification DESIGNABLE false ) Q_PROPERTY( bool rightJustification READ rightJustification WRITE setRightJustification DESIGNABLE false )
Q_PROPERTY( bool usesBigPixmaps READ usesBigPixmaps WRITE setUsesBigPixmaps ) Q_PROPERTY( bool usesBigPixmaps READ usesBigPixmaps WRITE setUsesBigPixmaps )
Q_PROPERTY( bool usesTextLabel READ usesTextLabel WRITE setUsesTextLabel ) Q_PROPERTY( bool usesTextLabel READ usesTextLabel WRITE setUsesTextLabel )
@ -238,7 +238,7 @@ private:
friend class TQToolBar; friend class TQToolBar;
friend class TQMainWindowLayout; friend class TQMainWindowLayout;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMainWindow( const TQMainWindow &amp; ); TQMainWindow( const TQMainWindow &amp; );
TQMainWindow&amp; operator=( const TQMainWindow &amp; ); TQMainWindow&amp; operator=( const TQMainWindow &amp; );
#endif #endif

@ -299,7 +299,7 @@ message($$join(urlPieces, $$LITERAL_HASH))
<a name="OBJECTS"></a><h5><a name="4-2-8"></a>OBJECTS</h5> <a name="OBJECTS"></a><h5><a name="4-2-8"></a>OBJECTS</h5>
<p>This variable is generated from the <a href="qmake-manual-8.html#SOURCES">SOURCES</a> variable. The extension of each source file will have been replaced by .o (Unix) or .obj (Win32). The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p> <p>This variable is generated from the <a href="qmake-manual-8.html#SOURCES">SOURCES</a> variable. The extension of each source file will have been replaced by .o (Unix) or .obj (Win32). The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<a name="OBJMOC"></a><h5><a name="4-2-9"></a>OBJMOC</h5> <a name="OBJMOC"></a><h5><a name="4-2-9"></a>OBJMOC</h5>
<p>This variable is set by <em>qmake</em> if files can be found that contain the Q_OBJECT macro. <tt>OBJMOC</tt> contains the name of all intermediate moc object files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p> <p>This variable is set by <em>qmake</em> if files can be found that contain the TQ_OBJECT macro. <tt>OBJMOC</tt> contains the name of all intermediate moc object files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<a name="PRECOMPILED_HEADER"></a><h5><a name="4-2-10"></a>PRECOMPILED_HEADER</h5> <a name="PRECOMPILED_HEADER"></a><h5><a name="4-2-10"></a>PRECOMPILED_HEADER</h5>
<p>This variable indicates the header file for creating a precompiled header file, to increase the compilation speed of a project. Precompiled headers are currently only supported on some platforms (Windows - all MSVC project types, Mac OS X - Xcode, Makefile, UNIX - gcc 3.3 and up).</p> <p>This variable indicates the header file for creating a precompiled header file, to increase the compilation speed of a project. Precompiled headers are currently only supported on some platforms (Windows - all MSVC project types, Mac OS X - Xcode, Makefile, UNIX - gcc 3.3 and up).</p>
<p>On other platforms, this variable has different meaning, as noted below.</p> <p>On other platforms, this variable has different meaning, as noted below.</p>
@ -510,7 +510,7 @@ app {
<h5><a name="4-2-96"></a>RES_FILE</h5> <h5><a name="4-2-96"></a>RES_FILE</h5>
<p>This variable contains the name of the resource file for the application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p> <p>This variable contains the name of the resource file for the application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-97"></a>SRCMOC</h5> <h5><a name="4-2-97"></a>SRCMOC</h5>
<p>This variable is set by <em>qmake</em> if files can be found that contain the Q_OBJECT macro. <tt>SRCMOC</tt> contains the name of all the generated moc files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p> <p>This variable is set by <em>qmake</em> if files can be found that contain the TQ_OBJECT macro. <tt>SRCMOC</tt> contains the name of all the generated moc files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-98"></a>TARGET_EXT</h5> <h5><a name="4-2-98"></a>TARGET_EXT</h5>
<p>This variable specifies the target's extension. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p> <p>This variable specifies the target's extension. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-8.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p>
<h5><a name="4-2-99"></a>TARGET_x</h5> <h5><a name="4-2-99"></a>TARGET_x</h5>

@ -89,7 +89,7 @@ class TQPopupMenu;
class Q_EXPORT TQMenuBar : public TQFrame, public TQMenuData class Q_EXPORT TQMenuBar : public TQFrame, public TQMenuData
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Separator ) Q_ENUMS( Separator )
Q_PROPERTY( Separator separator READ separator WRITE setSeparator DESIGNABLE false ) Q_PROPERTY( Separator separator READ separator WRITE setSeparator DESIGNABLE false )
Q_PROPERTY( bool defaultUp READ isDefaultUp WRITE setDefaultUp ) Q_PROPERTY( bool defaultUp READ isDefaultUp WRITE setDefaultUp )
@ -229,7 +229,7 @@ private:
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMenuBar( const TQMenuBar &amp; ); TQMenuBar( const TQMenuBar &amp; );
TQMenuBar &amp;operator=( const TQMenuBar &amp; ); TQMenuBar &amp;operator=( const TQMenuBar &amp; );
#endif #endif

@ -148,7 +148,7 @@ private:
TQMenuItemData* extra(); TQMenuItemData* extra();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMenuItem( const TQMenuItem &amp; ); TQMenuItem( const TQMenuItem &amp; );
TQMenuItem &amp;operator=( const TQMenuItem &amp; ); TQMenuItem &amp;operator=( const TQMenuItem &amp; );
#endif #endif
@ -310,7 +310,7 @@ private:
TQMenuDataData *d; TQMenuDataData *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMenuData( const TQMenuData &amp; ); TQMenuData( const TQMenuData &amp; );
TQMenuData &amp;operator=( const TQMenuData &amp; ); TQMenuData &amp;operator=( const TQMenuData &amp; );
#endif #endif

@ -89,7 +89,7 @@ struct TQMessageBoxData;
class Q_EXPORT TQMessageBox : public TQDialog class Q_EXPORT TQMessageBox : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Icon ) Q_ENUMS( Icon )
Q_PROPERTY( TQString text READ text WRITE setText ) Q_PROPERTY( TQString text READ text WRITE setText )
Q_PROPERTY( Icon icon READ icon WRITE setIcon ) Q_PROPERTY( Icon icon READ icon WRITE setIcon )
@ -227,7 +227,7 @@ private:
void *reserved2; void *reserved2;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMessageBox( const TQMessageBox &amp; ); TQMessageBox( const TQMessageBox &amp; );
TQMessageBox &amp;operator=( const TQMessageBox &amp; ); TQMessageBox &amp;operator=( const TQMessageBox &amp; );
#endif #endif
@ -249,7 +249,7 @@ TQString sq=TQString::fromLatin1(qVersion()); if ( (sq.section('.',0,0).toInt()&
(sq.section('.',1,1).toInt()&lt;&lt;8)+sq.section('.',2,2).toInt()&lt;(s.section('.',0,0).toInt()&lt;&lt;16)+\ (sq.section('.',1,1).toInt()&lt;&lt;8)+sq.section('.',2,2).toInt()&lt;(s.section('.',0,0).toInt()&lt;&lt;16)+\
(s.section('.',1,1).toInt()&lt;&lt;8)+s.section('.',2,2).toInt() ){if ( !qApp){ int c=0; new \ (s.section('.',1,1).toInt()&lt;&lt;8)+s.section('.',2,2).toInt() ){if ( !qApp){ int c=0; new \
TQApplication(argc,argv);} TQString s = TQApplication::tr("Executable '%1' requires TQt "\ TQApplication(argc,argv);} TQString s = TQApplication::tr("Executable '%1' requires TQt "\
"%2, found TQt %3.").arg(TQString::fromLatin1(qAppName())).arg(TQString::fromLatin1(\ "%2, found TQt %3.").arg(TQString::fromLatin1(tqAppName())).arg(TQString::fromLatin1(\
str)).arg(TQString::fromLatin1(qVersion()) ); TQMessageBox::critical( 0, TQApplication::tr(\ str)).arg(TQString::fromLatin1(qVersion()) ); TQMessageBox::critical( 0, TQApplication::tr(\
"Incompatible TQt Library Error" ), s, TQMessageBox::Abort,0 ); qFatal(s.ascii()); }} "Incompatible TQt Library Error" ), s, TQMessageBox::Abort,0 ); qFatal(s.ascii()); }}

@ -287,7 +287,7 @@ private:
#endif #endif
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMetaObject( const TQMetaObject &amp; ); TQMetaObject( const TQMetaObject &amp; );
TQMetaObject &amp;operator=( const TQMetaObject &amp; ); TQMetaObject &amp;operator=( const TQMetaObject &amp; );
#endif #endif

@ -72,7 +72,7 @@ class TQMotifPrivate;
class TQMotif : public TQEventLoop class TQMotif : public TQEventLoop
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQMotif( const char *applicationClass, XtAppContext context = NULL, XrmOptionDescRec *options = 0, int numOptions = 0); TQMotif( const char *applicationClass, XtAppContext context = NULL, XrmOptionDescRec *options = 0, int numOptions = 0);

@ -74,7 +74,7 @@ class TQMotifDialogPrivate;
class TQMotifDialog : public TQDialog class TQMotifDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
// obsolete // obsolete

@ -92,7 +92,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT_STYLE_MOTIFPLUS TQMotifPlusStyle : public TQMotifStyle class Q_EXPORT_STYLE_MOTIFPLUS TQMotifPlusStyle : public TQMotifStyle
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQMotifPlusStyle(bool hoveringHighlight = TRUE); TQMotifPlusStyle(bool hoveringHighlight = TRUE);

@ -94,7 +94,7 @@ class TQPalette;
class Q_EXPORT_STYLE_MOTIF TQMotifStyle : public TQCommonStyle class Q_EXPORT_STYLE_MOTIF TQMotifStyle : public TQCommonStyle
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQMotifStyle( bool useHighlightCols=FALSE ); TQMotifStyle( bool useHighlightCols=FALSE );
virtual ~TQMotifStyle(); virtual ~TQMotifStyle();
@ -161,7 +161,7 @@ private:
bool highlightCols; bool highlightCols;
// Disabled copy constructor and operator= // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMotifStyle( const TQMotifStyle &amp; ); TQMotifStyle( const TQMotifStyle &amp; );
TQMotifStyle&amp; operator=( const TQMotifStyle &amp; ); TQMotifStyle&amp; operator=( const TQMotifStyle &amp; );
#endif #endif

@ -73,7 +73,7 @@ class TQKeyEvent;
class TQMotifWidget : public TQWidget class TQMotifWidget : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQMotifWidget( TQWidget *, WidgetClass, ArgList = NULL, Cardinal = 0, TQMotifWidget( TQWidget *, WidgetClass, ArgList = NULL, Cardinal = 0,

@ -87,7 +87,7 @@ class TQMouseDriverPluginPrivate;
class Q_EXPORT TQMouseDriverPlugin : public TQGPlugin class Q_EXPORT TQMouseDriverPlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQMouseDriverPlugin(); TQMouseDriverPlugin();
~TQMouseDriverPlugin(); ~TQMouseDriverPlugin();

@ -89,7 +89,7 @@ class TQMultiLineEditData;
class Q_EXPORT TQMultiLineEdit : public TQTextEdit class Q_EXPORT TQMultiLineEdit : public TQTextEdit
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int numLines READ numLines ) Q_PROPERTY( int numLines READ numLines )
Q_PROPERTY( bool atBeginning READ atBeginning ) Q_PROPERTY( bool atBeginning READ atBeginning )
Q_PROPERTY( bool atEnd READ atEnd ) Q_PROPERTY( bool atEnd READ atEnd )
@ -166,7 +166,7 @@ private:
TQMultiLineEditData *d; TQMultiLineEditData *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMultiLineEdit( const TQMultiLineEdit &amp; ); TQMultiLineEdit( const TQMultiLineEdit &amp; );
TQMultiLineEdit &amp;operator=( const TQMultiLineEdit &amp; ); TQMultiLineEdit &amp;operator=( const TQMultiLineEdit &amp; );
#endif #endif

@ -106,7 +106,7 @@ public:
private: private:
TQMutexPrivate * d; TQMutexPrivate * d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMutex( const TQMutex &amp; ); TQMutex( const TQMutex &amp; );
TQMutex &amp;operator=( const TQMutex &amp; ); TQMutex &amp;operator=( const TQMutex &amp; );
#endif #endif
@ -123,7 +123,7 @@ public:
private: private:
TQMutex *mtx; TQMutex *mtx;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQMutexLocker( const TQMutexLocker &amp; ); TQMutexLocker( const TQMutexLocker &amp; );
TQMutexLocker &amp;operator=( const TQMutexLocker &amp; ); TQMutexLocker &amp;operator=( const TQMutexLocker &amp; );
#endif #endif

@ -118,7 +118,7 @@ typedef TQDict&lt; TQNetworkProtocolFactoryBase &gt; TQNetworkProtocolDict;
class Q_EXPORT TQNetworkProtocol : public TQObject class Q_EXPORT TQNetworkProtocol : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
enum State { enum State {
@ -224,7 +224,7 @@ private slots:
void removeMe(); void removeMe();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQNetworkProtocol( const TQNetworkProtocol &amp; ); TQNetworkProtocol( const TQNetworkProtocol &amp; );
TQNetworkProtocol &amp;operator=( const TQNetworkProtocol &amp; ); TQNetworkProtocol &amp;operator=( const TQNetworkProtocol &amp; );
#endif #endif
@ -234,7 +234,7 @@ class TQNetworkOperationPrivate;
class Q_EXPORT TQNetworkOperation : public TQObject class Q_EXPORT TQNetworkOperation : public TQObject
{ {
Q_OBJECT TQ_OBJECT
friend class TQUrlOperator; friend class TQUrlOperator;
public: public:
@ -269,7 +269,7 @@ private:
TQNetworkOperationPrivate *d; TQNetworkOperationPrivate *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQNetworkOperation( const TQNetworkOperation &amp; ); TQNetworkOperation( const TQNetworkOperation &amp; );
TQNetworkOperation &amp;operator=( const TQNetworkOperation &amp; ); TQNetworkOperation &amp;operator=( const TQNetworkOperation &amp; );
#endif #endif

@ -117,7 +117,7 @@ private:
}; };
class TQNPWidget : public TQWidget { class TQNPWidget : public TQWidget {
Q_OBJECT TQ_OBJECT
public: public:
TQNPWidget(); TQNPWidget();
~TQNPWidget(); ~TQNPWidget();
@ -134,7 +134,7 @@ private:
}; };
class TQNPInstance : public TQObject { class TQNPInstance : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
~TQNPInstance(); ~TQNPInstance();

@ -101,7 +101,7 @@ struct TQUObject;
class Q_EXPORT TQObject: public TQt class Q_EXPORT TQObject: public TQt
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQCString name READ name WRITE setName ) Q_PROPERTY( TQCString name READ name WRITE setName )
public: public:
@ -246,7 +246,7 @@ private:
friend class TQSignal; friend class TQSignal;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQObject( const TQObject &amp; ); TQObject( const TQObject &amp; );
TQObject &amp;operator=( const TQObject &amp; ); TQObject &amp;operator=( const TQObject &amp; );
#endif #endif

@ -83,7 +83,7 @@ class TQObjectList;
class Q_EXPORT TQObjectCleanupHandler : public TQObject class Q_EXPORT TQObjectCleanupHandler : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQObjectCleanupHandler(); TQObjectCleanupHandler();

@ -109,7 +109,7 @@ public:
TQPtrListIterator&lt;TQObject&gt;::operator=( i ); } TQPtrListIterator&lt;TQObject&gt;::operator=( i ); }
}; };
#if (QT_VERSION-0 &gt;= 0x040000) #if (TQT_VERSION-0 &gt;= 0x040000)
#if defined(Q_CC_GNU) #if defined(Q_CC_GNU)
#warning "remove the TQObjectListIt class" #warning "remove the TQObjectListIt class"
#warning "remove the typedef too, maybe" #warning "remove the typedef too, maybe"

@ -320,7 +320,7 @@ private:
#endif #endif
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQPaintDevice( const TQPaintDevice &amp; ); TQPaintDevice( const TQPaintDevice &amp; );
TQPaintDevice &amp;operator=( const TQPaintDevice &amp; ); TQPaintDevice &amp;operator=( const TQPaintDevice &amp; );
#endif #endif

@ -463,7 +463,7 @@ protected:
friend class TQPrinter; friend class TQPrinter;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQPainter( const TQPainter &amp; ); TQPainter( const TQPainter &amp; );
TQPainter &amp;operator=( const TQPainter &amp; ); TQPainter &amp;operator=( const TQPainter &amp; );
#endif #endif

@ -93,7 +93,7 @@ class TQPalette;
class Q_EXPORT_STYLE_PLATINUM TQPlatinumStyle : public TQWindowsStyle class Q_EXPORT_STYLE_PLATINUM TQPlatinumStyle : public TQWindowsStyle
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQPlatinumStyle(); TQPlatinumStyle();
virtual ~TQPlatinumStyle(); virtual ~TQPlatinumStyle();
@ -142,7 +142,7 @@ protected:
void drawRiffles( TQPainter* p, int x, int y, int w, int h, void drawRiffles( TQPainter* p, int x, int y, int w, int h,
const TQColorGroup &amp;g, bool horizontal ) const; const TQColorGroup &amp;g, bool horizontal ) const;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQPlatinumStyle( const TQPlatinumStyle &amp; ); TQPlatinumStyle( const TQPlatinumStyle &amp; );
TQPlatinumStyle&amp; operator=( const TQPlatinumStyle &amp; ); TQPlatinumStyle&amp; operator=( const TQPlatinumStyle &amp; );
#endif #endif

@ -87,7 +87,7 @@ class TQPopupMenuPrivate;
class Q_EXPORT TQPopupMenu : public TQFrame, public TQMenuData class Q_EXPORT TQPopupMenu : public TQFrame, public TQMenuData
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool checkable READ isCheckable WRITE setCheckable ) Q_PROPERTY( bool checkable READ isCheckable WRITE setCheckable )
public: public:
TQPopupMenu( TQWidget* parent=0, const char* name=0 ); TQPopupMenu( TQWidget* parent=0, const char* name=0 );
@ -224,7 +224,7 @@ private:
void connectModal(TQPopupMenu* receiver, bool doConnect); void connectModal(TQPopupMenu* receiver, bool doConnect);
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQPopupMenu( const TQPopupMenu &amp; ); TQPopupMenu( const TQPopupMenu &amp; );
TQPopupMenu &amp;operator=( const TQPopupMenu &amp; ); TQPopupMenu &amp;operator=( const TQPopupMenu &amp; );
#endif #endif

@ -259,7 +259,7 @@ private:
TQPrinterPrivate *d; TQPrinterPrivate *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQPrinter( const TQPrinter &amp; ); TQPrinter( const TQPrinter &amp; );
TQPrinter &amp;operator=( const TQPrinter &amp; ); TQPrinter &amp;operator=( const TQPrinter &amp; );
#endif #endif

@ -91,7 +91,7 @@ class TQMembuf;
class Q_EXPORT TQProcess : public TQObject class Q_EXPORT TQProcess : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQProcess( TQObject *parent=0, const char *name=0 ); TQProcess( TQObject *parent=0, const char *name=0 );
TQProcess( const TQString&amp; arg0, TQObject *parent=0, const char *name=0 ); TQProcess( const TQString&amp; arg0, TQObject *parent=0, const char *name=0 );
@ -203,7 +203,7 @@ private:
friend class TQProc; friend class TQProc;
#endif #endif
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQProcess( const TQProcess &amp; ); TQProcess( const TQProcess &amp; );
TQProcess &amp;operator=( const TQProcess &amp; ); TQProcess &amp;operator=( const TQProcess &amp; );
#endif #endif

@ -89,7 +89,7 @@ class TQProgressBarPrivate;
class Q_EXPORT TQProgressBar : public TQFrame class Q_EXPORT TQProgressBar : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int totalSteps READ totalSteps WRITE setTotalSteps ) Q_PROPERTY( int totalSteps READ totalSteps WRITE setTotalSteps )
Q_PROPERTY( int progress READ progress WRITE setProgress ) Q_PROPERTY( int progress READ progress WRITE setProgress )
Q_PROPERTY( TQString progressString READ progressString ) Q_PROPERTY( TQString progressString READ progressString )
@ -143,7 +143,7 @@ private:
void initFrame(); void initFrame();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQProgressBar( const TQProgressBar &amp; ); TQProgressBar( const TQProgressBar &amp; );
TQProgressBar &amp;operator=( const TQProgressBar &amp; ); TQProgressBar &amp;operator=( const TQProgressBar &amp; );
#endif #endif

@ -91,7 +91,7 @@ class TQProgressDialogData;
class Q_EXPORT TQProgressDialog : public TQDialog class Q_EXPORT TQProgressDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool wasCancelled READ wasCancelled DESIGNABLE false STORED false ) // ### remove in 4.0 Q_PROPERTY( bool wasCancelled READ wasCancelled DESIGNABLE false STORED false ) // ### remove in 4.0
Q_PROPERTY( bool wasCanceled READ wasCanceled ) Q_PROPERTY( bool wasCanceled READ wasCanceled )
Q_PROPERTY( int totalSteps READ totalSteps WRITE setTotalSteps ) Q_PROPERTY( int totalSteps READ totalSteps WRITE setTotalSteps )
@ -166,7 +166,7 @@ private:
TQTimer *forceTimer; TQTimer *forceTimer;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQProgressDialog( const TQProgressDialog &amp; ); TQProgressDialog( const TQProgressDialog &amp; );
TQProgressDialog &amp;operator=( const TQProgressDialog &amp; ); TQProgressDialog &amp;operator=( const TQProgressDialog &amp; );
#endif #endif

@ -88,7 +88,7 @@ class TQPopupMenu;
class Q_EXPORT TQPushButton : public TQButton class Q_EXPORT TQPushButton : public TQButton
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool autoDefault READ autoDefault WRITE setAutoDefault ) Q_PROPERTY( bool autoDefault READ autoDefault WRITE setAutoDefault )
Q_PROPERTY( bool default READ isDefault WRITE setDefault ) Q_PROPERTY( bool default READ isDefault WRITE setDefault )
@ -173,7 +173,7 @@ private:
friend class TQDialog; friend class TQDialog;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQPushButton( const TQPushButton &amp; ); TQPushButton( const TQPushButton &amp; );
TQPushButton &amp;operator=( const TQPushButton &amp; ); TQPushButton &amp;operator=( const TQPushButton &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQRadioButton : public TQButton class Q_EXPORT TQRadioButton : public TQButton
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool checked READ isChecked WRITE setChecked ) Q_PROPERTY( bool checked READ isChecked WRITE setChecked )
Q_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true ) Q_OVERRIDE( bool autoMask DESIGNABLE true SCRIPTABLE true )
@ -112,7 +112,7 @@ private:
void init(); void init();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQRadioButton( const TQRadioButton &amp; ); TQRadioButton( const TQRadioButton &amp; );
TQRadioButton &amp;operator=( const TQRadioButton &amp; ); TQRadioButton &amp;operator=( const TQRadioButton &amp; );
#endif #endif

@ -132,7 +132,7 @@ private:
TQRangeControlPrivate * d; TQRangeControlPrivate * d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQRangeControl( const TQRangeControl &amp; ); TQRangeControl( const TQRangeControl &amp; );
TQRangeControl &amp;operator=( const TQRangeControl &amp; ); TQRangeControl &amp;operator=( const TQRangeControl &amp; );
#endif #endif
@ -165,7 +165,7 @@ inline int TQRangeControl::pageStep() const
class TQSpinWidgetPrivate; class TQSpinWidgetPrivate;
class Q_EXPORT TQSpinWidget : public TQWidget class Q_EXPORT TQSpinWidget : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSpinWidget( TQWidget* parent=0, const char* name=0 ); TQSpinWidget( TQWidget* parent=0, const char* name=0 );
~TQSpinWidget(); ~TQSpinWidget();
@ -219,7 +219,7 @@ private:
void updateDisplay(); void updateDisplay();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSpinWidget( const TQSpinWidget&amp; ); TQSpinWidget( const TQSpinWidget&amp; );
TQSpinWidget&amp; operator=( const TQSpinWidget&amp; ); TQSpinWidget&amp; operator=( const TQSpinWidget&amp; );
#endif #endif

@ -88,7 +88,7 @@ class TQTimer;
class Q_EXPORT TQScrollBar : public TQWidget, public TQRangeControl class Q_EXPORT TQScrollBar : public TQWidget, public TQRangeControl
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int minValue READ minValue WRITE setMinValue ) Q_PROPERTY( int minValue READ minValue WRITE setMinValue )
Q_PROPERTY( int maxValue READ maxValue WRITE setMaxValue ) Q_PROPERTY( int maxValue READ maxValue WRITE setMaxValue )
Q_PROPERTY( int lineStep READ lineStep WRITE setLineStep ) Q_PROPERTY( int lineStep READ lineStep WRITE setLineStep )
@ -195,7 +195,7 @@ private:
void * d; void * d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQScrollBar( const TQScrollBar &amp; ); TQScrollBar( const TQScrollBar &amp; );
TQScrollBar &amp;operator=( const TQScrollBar &amp; ); TQScrollBar &amp;operator=( const TQScrollBar &amp; );
#endif #endif

@ -87,7 +87,7 @@ class TQScrollViewData;
class Q_EXPORT TQScrollView : public TQFrame class Q_EXPORT TQScrollView : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( ResizePolicy ScrollBarMode ) Q_ENUMS( ResizePolicy ScrollBarMode )
Q_PROPERTY( ResizePolicy resizePolicy READ resizePolicy WRITE setResizePolicy ) Q_PROPERTY( ResizePolicy resizePolicy READ resizePolicy WRITE setResizePolicy )
Q_PROPERTY( ScrollBarMode vScrollBarMode READ vScrollBarMode WRITE setVScrollBarMode ) Q_PROPERTY( ScrollBarMode vScrollBarMode READ vScrollBarMode WRITE setVScrollBarMode )
@ -289,7 +289,7 @@ private slots:
#endif #endif
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQScrollView( const TQScrollView &amp; ); TQScrollView( const TQScrollView &amp; );
TQScrollView &amp;operator=( const TQScrollView &amp; ); TQScrollView &amp;operator=( const TQScrollView &amp; );
#endif #endif

@ -106,7 +106,7 @@ public:
private: private:
TQSemaphorePrivate *d; TQSemaphorePrivate *d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSemaphore(const TQSemaphore &amp;); TQSemaphore(const TQSemaphore &amp;);
TQSemaphore &amp;operator=(const TQSemaphore &amp;); TQSemaphore &amp;operator=(const TQSemaphore &amp;);
#endif #endif

@ -84,7 +84,7 @@ body { background: #ffffff; color: black; }
#endif // QT_H #endif // QT_H
#ifndef QT_NO_NETWORK #ifndef QT_NO_NETWORK
#if !defined( QT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK ) #if !defined( TQT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK )
#define TQM_EXPORT_NETWORK #define TQM_EXPORT_NETWORK
#else #else
#define TQM_EXPORT_NETWORK Q_EXPORT #define TQM_EXPORT_NETWORK Q_EXPORT
@ -95,7 +95,7 @@ class TQServerSocketPrivate;
class TQM_EXPORT_NETWORK TQServerSocket : public TQObject class TQM_EXPORT_NETWORK TQServerSocket : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQServerSocket( Q_UINT16 port, int backlog = 1, TQServerSocket( Q_UINT16 port, int backlog = 1,
TQObject *parent=0, const char *name=0 ); TQObject *parent=0, const char *name=0 );

@ -89,7 +89,7 @@ class TQSessionManagerData;
class Q_EXPORT TQSessionManager : public TQObject class Q_EXPORT TQSessionManager : public TQObject
{ {
Q_OBJECT TQ_OBJECT
TQSessionManager( TQApplication *app, TQString &amp;id, TQString &amp;key ); TQSessionManager( TQApplication *app, TQString &amp;id, TQString &amp;key );
~TQSessionManager(); ~TQSessionManager();
public: public:

@ -181,7 +181,7 @@ public:
private: private:
TQSettingsPrivate *d; TQSettingsPrivate *d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSettings(const TQSettings &amp;); TQSettings(const TQSettings &amp;);
TQSettings &amp;operator=(const TQSettings &amp;); TQSettings &amp;operator=(const TQSettings &amp;);
#endif #endif

@ -95,7 +95,7 @@ class TQSGIStylePrivate;
class Q_EXPORT_STYLE_SGI TQSGIStyle: public TQMotifStyle class Q_EXPORT_STYLE_SGI TQSGIStyle: public TQMotifStyle
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSGIStyle( bool useHighlightCols = FALSE ); TQSGIStyle( bool useHighlightCols = FALSE );
virtual ~TQSGIStyle(); virtual ~TQSGIStyle();
@ -157,7 +157,7 @@ private:
TQSGIStylePrivate *d; TQSGIStylePrivate *d;
uint isApplicationStyle :1; uint isApplicationStyle :1;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSGIStyle( const TQSGIStyle &amp; ); TQSGIStyle( const TQSGIStyle &amp; );
TQSGIStyle&amp; operator=( const TQSGIStyle &amp; ); TQSGIStyle&amp; operator=( const TQSGIStyle &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQSignal : public TQObject class Q_EXPORT TQSignal : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSignal( TQObject *parent=0, const char *name=0 ); TQSignal( TQObject *parent=0, const char *name=0 );
@ -120,7 +120,7 @@ private:
TQVariant val; TQVariant val;
#endif #endif
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSignal( const TQSignal &amp; ); TQSignal( const TQSignal &amp; );
TQSignal &amp;operator=( const TQSignal &amp; ); TQSignal &amp;operator=( const TQSignal &amp; );
#endif #endif

@ -86,7 +86,7 @@ struct TQSignalMapperRec;
class Q_EXPORT TQSignalMapper : public TQObject { class Q_EXPORT TQSignalMapper : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
TQSignalMapper( TQObject* parent, const char* name=0 ); TQSignalMapper( TQObject* parent, const char* name=0 );
~TQSignalMapper(); ~TQSignalMapper();

@ -129,7 +129,7 @@ private:
TQSimpleRichTextData* d; TQSimpleRichTextData* d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSimpleRichText( const TQSimpleRichText &amp; ); TQSimpleRichText( const TQSimpleRichText &amp; );
TQSimpleRichText &amp;operator=( const TQSimpleRichText &amp; ); TQSimpleRichText &amp;operator=( const TQSimpleRichText &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQSizeGrip: public TQWidget class Q_EXPORT TQSizeGrip: public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSizeGrip( TQWidget* parent, const char* name=0 ); TQSizeGrip( TQWidget* parent, const char* name=0 );
~TQSizeGrip(); ~TQSizeGrip();

@ -90,7 +90,7 @@ class TQTimer;
class Q_EXPORT TQSlider : public TQWidget, public TQRangeControl class Q_EXPORT TQSlider : public TQWidget, public TQRangeControl
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( TickSetting ) Q_ENUMS( TickSetting )
Q_PROPERTY( int minValue READ minValue WRITE setMinValue ) Q_PROPERTY( int minValue READ minValue WRITE setMinValue )
Q_PROPERTY( int maxValue READ maxValue WRITE setMaxValue ) Q_PROPERTY( int maxValue READ maxValue WRITE setMaxValue )
@ -204,7 +204,7 @@ private:
Orientation orient; Orientation orient;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSlider( const TQSlider &amp; ); TQSlider( const TQSlider &amp; );
TQSlider &amp;operator=( const TQSlider &amp; ); TQSlider &amp;operator=( const TQSlider &amp; );
#endif #endif

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqhostaddress.h" // int-&gt;TQHostAddress conversion #include "ntqhostaddress.h" // int-&gt;TQHostAddress conversion
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK ) #if !defined( TQT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK )
#define TQM_EXPORT_NETWORK #define TQM_EXPORT_NETWORK
#else #else
#define TQM_EXPORT_NETWORK Q_EXPORT #define TQM_EXPORT_NETWORK Q_EXPORT
@ -96,7 +96,7 @@ class TQSocketDevice;
class TQM_EXPORT_NETWORK TQSocket : public TQObject, public TQIODevice class TQM_EXPORT_NETWORK TQSocket : public TQObject, public TQIODevice
{ {
Q_OBJECT TQ_OBJECT
public: public:
enum Error { enum Error {
ErrConnectionRefused, ErrConnectionRefused,
@ -182,7 +182,7 @@ private:
void setSocketIntern( int socket ); void setSocketIntern( int socket );
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSocket( const TQSocket &amp; ); TQSocket( const TQSocket &amp; );
TQSocket &amp;operator=( const TQSocket &amp; ); TQSocket &amp;operator=( const TQSocket &amp; );
#endif #endif

@ -82,7 +82,7 @@ body { background: #ffffff; color: black; }
#include "ntqhostaddress.h" // int-&gt;TQHostAddress conversion #include "ntqhostaddress.h" // int-&gt;TQHostAddress conversion
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK ) #if !defined( TQT_MODULE_NETWORK ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_NETWORK )
#define TQM_EXPORT_NETWORK #define TQM_EXPORT_NETWORK
#else #else
#define TQM_EXPORT_NETWORK Q_EXPORT #define TQM_EXPORT_NETWORK Q_EXPORT
@ -196,7 +196,7 @@ private:
Protocol getProtocol() const; Protocol getProtocol() const;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSocketDevice( const TQSocketDevice &amp; ); TQSocketDevice( const TQSocketDevice &amp; );
TQSocketDevice &amp;operator=( const TQSocketDevice &amp; ); TQSocketDevice &amp;operator=( const TQSocketDevice &amp; );
#endif #endif

@ -84,7 +84,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQSocketNotifier : public TQObject class Q_EXPORT TQSocketNotifier : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
enum Type { Read, Write, Exception }; enum Type { Read, Write, Exception };
@ -109,7 +109,7 @@ private:
bool snenabled; bool snenabled;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSocketNotifier( const TQSocketNotifier &amp; ); TQSocketNotifier( const TQSocketNotifier &amp; );
TQSocketNotifier &amp;operator=( const TQSocketNotifier &amp; ); TQSocketNotifier &amp;operator=( const TQSocketNotifier &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class TQSoundData; class TQSoundData;
class Q_EXPORT TQSound : public TQObject { class Q_EXPORT TQSound : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
static bool isAvailable(); static bool isAvailable();
static void play(const TQString&amp; filename); static void play(const TQString&amp; filename);
@ -138,7 +138,7 @@ public:
}; };
class TQAuServer : public TQObject { class TQAuServer : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
TQAuServer(TQObject* parent, const char* name); TQAuServer(TQObject* parent, const char* name);

@ -90,7 +90,7 @@ class TQSpinBoxPrivate;
class Q_EXPORT TQSpinBox: public TQWidget, public TQRangeControl class Q_EXPORT TQSpinBox: public TQWidget, public TQRangeControl
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( ButtonSymbols ) Q_ENUMS( ButtonSymbols )
Q_PROPERTY( TQString text READ text ) Q_PROPERTY( TQString text READ text )
Q_PROPERTY( TQString prefix READ prefix WRITE setPrefix ) Q_PROPERTY( TQString prefix READ prefix WRITE setPrefix )
@ -196,7 +196,7 @@ private:
void arrangeWidgets(); void arrangeWidgets();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSpinBox( const TQSpinBox&amp; ); TQSpinBox( const TQSpinBox&amp; );
TQSpinBox&amp; operator=( const TQSpinBox&amp; ); TQSpinBox&amp; operator=( const TQSpinBox&amp; );
#endif #endif

@ -85,7 +85,7 @@ class TQSplashScreenPrivate;
class Q_EXPORT TQSplashScreen : public TQWidget class Q_EXPORT TQSplashScreen : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSplashScreen( const TQPixmap &amp;pixmap = TQPixmap(), WFlags f = 0 ); TQSplashScreen( const TQPixmap &amp;pixmap = TQPixmap(), WFlags f = 0 );
virtual ~TQSplashScreen(); virtual ~TQSplashScreen();

@ -91,7 +91,7 @@ class TQTextStream;
class Q_EXPORT TQSplitter : public TQFrame class Q_EXPORT TQSplitter : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation ) Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation )
Q_PROPERTY( bool opaqueResize READ opaqueResize WRITE setOpaqueResize ) Q_PROPERTY( bool opaqueResize READ opaqueResize WRITE setOpaqueResize )
Q_PROPERTY( int handleWidth READ handleWidth WRITE setHandleWidth ) Q_PROPERTY( int handleWidth READ handleWidth WRITE setHandleWidth )
@ -189,7 +189,7 @@ private:
#endif #endif
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSplitter( const TQSplitter &amp; ); TQSplitter( const TQSplitter &amp; );
TQSplitter&amp; operator=( const TQSplitter &amp; ); TQSplitter&amp; operator=( const TQSplitter &amp; );
#endif #endif

@ -80,7 +80,7 @@ body { background: #ffffff; color: black; }
#include "ntqglobal.h" #include "ntqglobal.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -124,7 +124,7 @@ public:
}; };
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSql( const TQSql &amp; ); TQSql( const TQSql &amp; );
TQSql &amp;operator=( const TQSql &amp; ); TQSql &amp;operator=( const TQSql &amp; );
#endif #endif

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqsqlindex.h" #include "ntqsqlindex.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqstringlist.h" #include "ntqstringlist.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -113,7 +113,7 @@ public:
class TQM_EXPORT_SQL TQSqlDatabase : public TQObject class TQM_EXPORT_SQL TQSqlDatabase : public TQObject
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString databaseName READ databaseName WRITE setDatabaseName ) Q_PROPERTY( TQString databaseName READ databaseName WRITE setDatabaseName )
Q_PROPERTY( TQString userName READ userName WRITE setUserName ) Q_PROPERTY( TQString userName READ userName WRITE setUserName )
Q_PROPERTY( TQString password READ password WRITE setPassword ) Q_PROPERTY( TQString password READ password WRITE setPassword )
@ -179,7 +179,7 @@ protected:
private: private:
void init( const TQString&amp; type, const TQString&amp; name ); void init( const TQString&amp; type, const TQString&amp; name );
TQSqlDatabasePrivate* d; TQSqlDatabasePrivate* d;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQSqlDatabase( const TQSqlDatabase &amp; ); TQSqlDatabase( const TQSqlDatabase &amp; );
TQSqlDatabase &amp;operator=( const TQSqlDatabase &amp; ); TQSqlDatabase &amp;operator=( const TQSqlDatabase &amp; );
#endif #endif

@ -88,7 +88,7 @@ body { background: #ffffff; color: black; }
#include "ntqmap.h" #include "ntqmap.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -103,7 +103,7 @@ class TQSqlDatabase;
class TQM_EXPORT_SQL TQSqlDriver : public TQObject class TQM_EXPORT_SQL TQSqlDriver : public TQObject
{ {
friend class TQSqlDatabase; friend class TQSqlDatabase;
Q_OBJECT TQ_OBJECT
public: public:
enum DriverFeature { Transactions, QuerySize, BLOB, Unicode, PreparedQueries, enum DriverFeature { Transactions, QuerySize, BLOB, Unicode, PreparedQueries,
NamedPlaceholders, PositionalPlaceholders }; NamedPlaceholders, PositionalPlaceholders };
@ -150,7 +150,7 @@ private:
// ### This class needs a d-pointer in 4.0. // ### This class needs a d-pointer in 4.0.
int dbState; int dbState;
TQSqlError error; TQSqlError error;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSqlDriver( const TQSqlDriver &amp; ); TQSqlDriver( const TQSqlDriver &amp; );
TQSqlDriver &amp;operator=( const TQSqlDriver &amp; ); TQSqlDriver &amp;operator=( const TQSqlDriver &amp; );
#endif #endif

@ -90,7 +90,7 @@ class TQSqlDriverPluginPrivate;
class Q_EXPORT TQSqlDriverPlugin : public TQGPlugin class Q_EXPORT TQSqlDriverPlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSqlDriverPlugin(); TQSqlDriverPlugin();
~TQSqlDriverPlugin(); ~TQSqlDriverPlugin();

@ -80,7 +80,7 @@ body { background: #ffffff; color: black; }
#include "ntqeditorfactory.h" #include "ntqeditorfactory.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -102,7 +102,7 @@ public:
static void installDefaultFactory( TQSqlEditorFactory * factory ); static void installDefaultFactory( TQSqlEditorFactory * factory );
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQSqlEditorFactory( const TQSqlEditorFactory &amp; ); TQSqlEditorFactory( const TQSqlEditorFactory &amp; );
TQSqlEditorFactory &amp;operator=( const TQSqlEditorFactory &amp; ); TQSqlEditorFactory &amp;operator=( const TQSqlEditorFactory &amp; );
#endif #endif

@ -80,7 +80,7 @@ body { background: #ffffff; color: black; }
#include "ntqstring.h" #include "ntqstring.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT

@ -81,7 +81,7 @@ body { background: #ffffff; color: black; }
#include "ntqvariant.h" #include "ntqvariant.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT

@ -81,7 +81,7 @@ body { background: #ffffff; color: black; }
#include "ntqmap.h" #include "ntqmap.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -98,7 +98,7 @@ class TQSqlFormPrivate;
class TQM_EXPORT_SQL TQSqlForm : public TQObject class TQM_EXPORT_SQL TQSqlForm : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSqlForm( TQObject * parent = 0, const char * name = 0 ); TQSqlForm( TQObject * parent = 0, const char * name = 0 );
~TQSqlForm(); ~TQSqlForm();
@ -133,7 +133,7 @@ private:
virtual void sync(); virtual void sync();
TQSqlFormPrivate* d; TQSqlFormPrivate* d;
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQSqlForm( const TQSqlForm &amp; ); TQSqlForm( const TQSqlForm &amp; );
TQSqlForm &amp;operator=( const TQSqlForm &amp; ); TQSqlForm &amp;operator=( const TQSqlForm &amp; );
#endif #endif

@ -83,7 +83,7 @@ body { background: #ffffff; color: black; }
#include "ntqsqlrecord.h" #include "ntqsqlrecord.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#define TQM_TEMPLATE_EXTERN_SQL #define TQM_TEMPLATE_EXTERN_SQL
#else #else

@ -101,7 +101,7 @@ public:
static void installDefaultMap( TQSqlPropertyMap * map ); static void installDefaultMap( TQSqlPropertyMap * map );
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSqlPropertyMap( const TQSqlPropertyMap &amp; ); TQSqlPropertyMap( const TQSqlPropertyMap &amp; );
TQSqlPropertyMap &amp;operator=( const TQSqlPropertyMap &amp; ); TQSqlPropertyMap &amp;operator=( const TQSqlPropertyMap &amp; );
#endif #endif

@ -94,7 +94,7 @@ class TQSqlDatabase;
class Q_EXPORT TQSqlResultShared : public TQObject, public TQShared class Q_EXPORT TQSqlResultShared : public TQObject, public TQShared
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSqlResultShared( TQSqlResult* result ); TQSqlResultShared( TQSqlResult* result );
virtual ~TQSqlResultShared(); virtual ~TQSqlResultShared();

@ -84,7 +84,7 @@ body { background: #ffffff; color: black; }
#include "ntqsql.h" #include "ntqsql.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT
@ -140,7 +140,7 @@ private:
bool forwardOnly; bool forwardOnly;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQSqlResult( const TQSqlResult &amp; ); TQSqlResult( const TQSqlResult &amp; );
TQSqlResult &amp;operator=( const TQSqlResult &amp; ); TQSqlResult &amp;operator=( const TQSqlResult &amp; );
#endif #endif

@ -80,7 +80,7 @@ body { background: #ffffff; color: black; }
#include "ntqsqlcursor.h" #include "ntqsqlcursor.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL ) #if !defined( TQT_MODULE_SQL ) || defined( QT_LICENSE_PROFESSIONAL )
#define TQM_EXPORT_SQL #define TQM_EXPORT_SQL
#else #else
#define TQM_EXPORT_SQL Q_EXPORT #define TQM_EXPORT_SQL Q_EXPORT

@ -89,7 +89,7 @@ class TQStatusBarPrivate;
class Q_EXPORT TQStatusBar: public TQWidget class Q_EXPORT TQStatusBar: public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled ) Q_PROPERTY( bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled )
public: public:
@ -121,7 +121,7 @@ protected:
private: private:
TQStatusBarPrivate * d; TQStatusBarPrivate * d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQStatusBar( const TQStatusBar &amp; ); TQStatusBar( const TQStatusBar &amp; );
TQStatusBar&amp; operator=( const TQStatusBar &amp; ); TQStatusBar&amp; operator=( const TQStatusBar &amp; );
#endif #endif

@ -280,7 +280,7 @@ private:
#if defined(QT_QSTRING_UCS_4) #if defined(QT_QSTRING_UCS_4)
ushort grp; ushort grp;
#endif #endif
} Q_PACKED; } TQ_PACKED;
inline TQChar::TQChar() : ucs( 0 ) inline TQChar::TQChar() : ucs( 0 )
#ifdef QT_QSTRING_UCS_4 #ifdef QT_QSTRING_UCS_4
@ -426,7 +426,7 @@ struct Q_EXPORT TQStringData : public TQShared {
uint islatin1 : 1; uint islatin1 : 1;
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQStringData( const TQStringData&amp; ); TQStringData( const TQStringData&amp; );
TQStringData&amp; operator=( const TQStringData&amp; ); TQStringData&amp; operator=( const TQStringData&amp; );
#endif #endif

@ -159,7 +159,7 @@ class TQStyleHintReturn; // not defined yet
class Q_EXPORT TQStyle: public TQObject class Q_EXPORT TQStyle: public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQStyle(); TQStyle();
@ -782,7 +782,7 @@ public:
private: private:
TQStylePrivate * d; TQStylePrivate * d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQStyle( const TQStyle &amp; ); TQStyle( const TQStyle &amp; );
TQStyle&amp; operator=( const TQStyle &amp; ); TQStyle&amp; operator=( const TQStyle &amp; );
#endif #endif

@ -90,7 +90,7 @@ class TQStylePluginPrivate;
class Q_EXPORT TQStylePlugin : public TQGPlugin class Q_EXPORT TQStylePlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQStylePlugin(); TQStylePlugin();
~TQStylePlugin(); ~TQStylePlugin();

@ -243,7 +243,7 @@ class TQTextCustomItem;
class Q_EXPORT TQStyleSheet : public TQObject class Q_EXPORT TQStyleSheet : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQStyleSheet( TQObject *parent=0, const char *name=0 ); TQStyleSheet( TQObject *parent=0, const char *name=0 );
virtual ~TQStyleSheet(); virtual ~TQStyleSheet();
@ -278,7 +278,7 @@ private:
TQDict&lt;TQStyleSheetItem&gt; styles; TQDict&lt;TQStyleSheetItem&gt; styles;
TQStyleSheetItem* nullstyle; TQStyleSheetItem* nullstyle;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQStyleSheet( const TQStyleSheet &amp; ); TQStyleSheet( const TQStyleSheet &amp; );
TQStyleSheet &amp;operator=( const TQStyleSheet &amp; ); TQStyleSheet &amp;operator=( const TQStyleSheet &amp; );
#endif #endif

@ -156,19 +156,19 @@ be treated as such.
your data's class. your data's class.
<p> Naturally, the sorting templates won't work with const iterators. <p> Naturally, the sorting templates won't work with const iterators.
<p> <a name="qSwap"></a> <p> <a name="qSwap"></a>
<h3> qSwap() <h3> tqSwap()
</h3> </h3>
<a name="2-2"></a><p> qSwap() exchanges the values of two variables: <a name="2-2"></a><p> tqSwap() exchanges the values of two variables:
<pre> <pre>
<a href="ntqstring.html">TQString</a> second( "Einstein" ); <a href="ntqstring.html">TQString</a> second( "Einstein" );
<a href="ntqstring.html">TQString</a> name( "Albert" ); <a href="ntqstring.html">TQString</a> name( "Albert" );
qSwap( second, name ); tqSwap( second, name );
</pre> </pre>
<p> <a name="qCount"></a> <p> <a name="qCount"></a>
<h3> qCount() <h3> tqCount()
</h3> </h3>
<a name="2-3"></a><p> The qCount() template function counts the number of occurrences of a <a name="2-3"></a><p> The tqCount() template function counts the number of occurrences of a
value within a container. For example: value within a container. For example:
<pre> <pre>
<a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list; <a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list;
@ -177,13 +177,13 @@ value within a container. For example:
list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 ); list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
list.<a href="ntqvaluelist.html#push_back">push_back</a>( 2 ); list.<a href="ntqvaluelist.html#push_back">push_back</a>( 2 );
int c = 0; int c = 0;
qCount( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), 1, c ); // c == 3 tqCount( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), 1, c ); // c == 3
</pre> </pre>
<p> <a name="qFind"></a> <p> <a name="qFind"></a>
<h3> qFind() <h3> tqFind()
</h3> </h3>
<a name="2-4"></a><p> The qFind() template function finds the first occurrence of a value <a name="2-4"></a><p> The tqFind() template function finds the first occurrence of a value
within a container. For example: within a container. For example:
<pre> <pre>
<a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list; <a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list;
@ -191,23 +191,23 @@ within a container. For example:
list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 ); list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 ); list.<a href="ntqvaluelist.html#push_back">push_back</a>( 1 );
list.<a href="ntqvaluelist.html#push_back">push_back</a>( 2 ); list.<a href="ntqvaluelist.html#push_back">push_back</a>( 2 );
<a href="qvaluelistiterator.html">TQValueListIterator</a>&lt;int&gt; it = qFind( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), 2 ); <a href="qvaluelistiterator.html">TQValueListIterator</a>&lt;int&gt; it = tqFind( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), 2 );
</pre> </pre>
<p> <a name="qFill"></a> <p> <a name="qFill"></a>
<h3> qFill() <h3> tqFill()
</h3> </h3>
<a name="2-5"></a><p> The qFill() template function fills a range with copies of a value. <a name="2-5"></a><p> The tqFill() template function fills a range with copies of a value.
For example: For example:
<pre> <pre>
<a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; vec(3); <a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; vec(3);
qFill( vec.<a href="ntqvaluevector.html#begin">begin</a>(), vec.<a href="ntqvaluevector.html#end">end</a>(), 99 ); // vec contains 99, 99, 99 tqFill( vec.<a href="ntqvaluevector.html#begin">begin</a>(), vec.<a href="ntqvaluevector.html#end">end</a>(), 99 ); // vec contains 99, 99, 99
</pre> </pre>
<p> <a name="qEqual"></a> <p> <a name="qEqual"></a>
<h3> qEqual() <h3> tqEqual()
</h3> </h3>
<a name="2-6"></a><p> The qEqual() template function compares two ranges for equality of <a name="2-6"></a><p> The tqEqual() template function compares two ranges for equality of
their elements. Note that the number of elements in each range is not their elements. Note that the number of elements in each range is not
considered, only if the elements in the first range are equal to the considered, only if the elements in the first range are equal to the
corresponding elements in the second range (consequently, both ranges corresponding elements in the second range (consequently, both ranges
@ -225,14 +225,14 @@ must be valid). For example:
v2[4] = 4; v2[4] = 4;
v2[5] = 5; v2[5] = 5;
bool b = qEqual( v1.<a href="ntqvaluevector.html#begin">begin</a>(), v2.<a href="ntqvaluevector.html#end">end</a>(), v2.<a href="ntqvaluevector.html#begin">begin</a>() ); bool b = tqEqual( v1.<a href="ntqvaluevector.html#begin">begin</a>(), v2.<a href="ntqvaluevector.html#end">end</a>(), v2.<a href="ntqvaluevector.html#begin">begin</a>() );
// b == TRUE // b == TRUE
</pre> </pre>
<p> <a name="qCopy"></a> <p> <a name="qCopy"></a>
<h3> qCopy() <h3> tqCopy()
</h3> </h3>
<a name="2-7"></a><p> The qCopy() template function copies a range of elements to an <a name="2-7"></a><p> The tqCopy() template function copies a range of elements to an
OutputIterator, in this case a TQTextOStreamIterator: OutputIterator, in this case a TQTextOStreamIterator:
<pre> <pre>
<a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list; <a href="ntqvaluelist.html">TQValueList</a>&lt;int&gt; list;
@ -240,14 +240,14 @@ OutputIterator, in this case a TQTextOStreamIterator:
list.<a href="ntqvaluelist.html#push_back">push_back</a>( 200 ); list.<a href="ntqvaluelist.html#push_back">push_back</a>( 200 );
list.<a href="ntqvaluelist.html#push_back">push_back</a>( 300 ); list.<a href="ntqvaluelist.html#push_back">push_back</a>( 300 );
<a href="qtextostream.html">TQTextOStream</a> str( stdout ); <a href="qtextostream.html">TQTextOStream</a> str( stdout );
qCopy( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), TQTextOStreamIterator(str) ); tqCopy( list.<a href="ntqvaluelist.html#begin">begin</a>(), list.<a href="ntqvaluelist.html#end">end</a>(), TQTextOStreamIterator(str) );
</pre> </pre>
<p> <p>
<p> <a name="qCopyBackward"></a> <p> <a name="qCopyBackward"></a>
<h3> qCopyBackward() <h3> tqCopyBackward()
</h3> </h3>
<a name="2-8"></a><p> The qCopyBackward() template function copies a container or a slice of <a name="2-8"></a><p> The tqCopyBackward() template function copies a container or a slice of
a container to an OutputIterator, but in reverse order, for example: a container to an OutputIterator, but in reverse order, for example:
<pre> <pre>
<a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; vec(3); <a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; vec(3);
@ -255,7 +255,7 @@ a container to an OutputIterator, but in reverse order, for example:
vec.<a href="ntqvaluevector.html#push_back">push_back</a>( 200 ); vec.<a href="ntqvaluevector.html#push_back">push_back</a>( 200 );
vec.<a href="ntqvaluevector.html#push_back">push_back</a>( 300 ); vec.<a href="ntqvaluevector.html#push_back">push_back</a>( 300 );
<a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; another; <a href="ntqvaluevector.html">TQValueVector</a>&lt;int&gt; another;
qCopyBackward( vec.<a href="ntqvaluevector.html#begin">begin</a>(), vec.<a href="ntqvaluevector.html#end">end</a>(), another.<a href="ntqvaluevector.html#begin">begin</a>() ); tqCopyBackward( vec.<a href="ntqvaluevector.html#begin">begin</a>(), vec.<a href="ntqvaluevector.html#end">end</a>(), another.<a href="ntqvaluevector.html#begin">begin</a>() );
// 'another' now contains 100, 200, 300 // 'another' now contains 100, 200, 300
// however the elements are copied one at a time // however the elements are copied one at a time
// in reverse order (300, 200, then 100) // in reverse order (300, 200, then 100)
@ -271,10 +271,10 @@ illustrates this:
<a href="ntqstringlist.html">TQStringList</a> list1, list2; <a href="ntqstringlist.html">TQStringList</a> list1, list2;
list1 &lt;&lt; "Weis" &lt;&lt; "Ettrich" &lt;&lt; "Arnt" &lt;&lt; "Sue"; list1 &lt;&lt; "Weis" &lt;&lt; "Ettrich" &lt;&lt; "Arnt" &lt;&lt; "Sue";
list2 &lt;&lt; "Torben" &lt;&lt; "Matthias"; list2 &lt;&lt; "Torben" &lt;&lt; "Matthias";
qCopy( list2.begin(), list2.end(), list1.<a href="ntqvaluelist.html#begin">begin</a>() ); tqCopy( list2.begin(), list2.end(), list1.<a href="ntqvaluelist.html#begin">begin</a>() );
<a href="ntqvaluevector.html">TQValueVector</a>&lt;TQString&gt; vec( list1.<a href="ntqvaluelist.html#size">size</a>(), "Dave" ); <a href="ntqvaluevector.html">TQValueVector</a>&lt;TQString&gt; vec( list1.<a href="ntqvaluelist.html#size">size</a>(), "Dave" );
qCopy( list2.begin(), list2.end(), vec.<a href="ntqvaluevector.html#begin">begin</a>() ); tqCopy( list2.begin(), list2.end(), vec.<a href="ntqvaluevector.html#begin">begin</a>() );
</pre> </pre>
<p> At the end of this code fragment, the list list1 contains "Torben", <p> At the end of this code fragment, the list list1 contains "Torben",
@ -284,11 +284,11 @@ overwritten. The vector vec contains "Torben", "Matthias", "Dave" and
<p> If you write new algorithms, consider writing them as template <p> If you write new algorithms, consider writing them as template
functions in order to make them usable with as many containers functions in order to make them usable with as many containers
as possible. In the above example, you could just as easily print out as possible. In the above example, you could just as easily print out
a standard C++ array with qCopy(): a standard C++ array with tqCopy():
<p> <pre> <p> <pre>
int arr[] = { 100, 200, 300 }; int arr[] = { 100, 200, 300 };
<a href="qtextostream.html">TQTextOStream</a> str( stdout ); <a href="qtextostream.html">TQTextOStream</a> str( stdout );
qCopy( arr, arr + 3, TQTextOStreamIterator( str ) ); tqCopy( arr, arr + 3, TQTextOStreamIterator( str ) );
</pre> </pre>
<p> <h2> Streaming <p> <h2> Streaming

@ -237,7 +237,7 @@
<keyword ref="ntqapplication.html#x11ProcessEvent">x11ProcessEvent</keyword> <keyword ref="ntqapplication.html#x11ProcessEvent">x11ProcessEvent</keyword>
<keyword ref="ntqapplication.html#~QApplication">~QApplication</keyword> <keyword ref="ntqapplication.html#~QApplication">~QApplication</keyword>
<keyword ref="ntqapplication.html#Q_ASSERT">Q_ASSERT</keyword> <keyword ref="ntqapplication.html#Q_ASSERT">Q_ASSERT</keyword>
<keyword ref="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</keyword> <keyword ref="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</keyword>
<keyword ref="ntqapplication.html#qAddPostRoutine">qAddPostRoutine</keyword> <keyword ref="ntqapplication.html#qAddPostRoutine">qAddPostRoutine</keyword>
<keyword ref="ntqapplication.html#qDebug">qDebug</keyword> <keyword ref="ntqapplication.html#qDebug">qDebug</keyword>
<keyword ref="ntqapplication.html#qFatal">qFatal</keyword> <keyword ref="ntqapplication.html#qFatal">qFatal</keyword>

@ -123,7 +123,7 @@ struct TQTabPrivate;
class Q_EXPORT TQTabBar: public TQWidget class Q_EXPORT TQTabBar: public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Shape ) Q_ENUMS( Shape )
Q_PROPERTY( Shape shape READ shape WRITE setShape ) Q_PROPERTY( Shape shape READ shape WRITE setShape )
Q_PROPERTY( int currentTab READ currentTab WRITE setCurrentTab ) Q_PROPERTY( int currentTab READ currentTab WRITE setCurrentTab )
@ -210,7 +210,7 @@ private:
friend class TQTab; friend class TQTab;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTabBar( const TQTabBar &amp; ); TQTabBar( const TQTabBar &amp; );
TQTabBar&amp; operator=( const TQTabBar &amp; ); TQTabBar&amp; operator=( const TQTabBar &amp; );
#endif #endif

@ -90,7 +90,7 @@ class TQTabDialogPrivate;
class Q_EXPORT TQTabDialog : public TQDialog class Q_EXPORT TQTabDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQTabDialog( TQWidget* parent=0, const char* name=0, bool modal=FALSE, TQTabDialog( TQWidget* parent=0, const char* name=0, bool modal=FALSE,
WFlags f=0 ); WFlags f=0 );
@ -171,7 +171,7 @@ private:
TQTabDialogPrivate *d; TQTabDialogPrivate *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTabDialog( const TQTabDialog &amp; ); TQTabDialog( const TQTabDialog &amp; );
TQTabDialog&amp; operator=( const TQTabDialog &amp; ); TQTabDialog&amp; operator=( const TQTabDialog &amp; );
#endif #endif

@ -92,7 +92,7 @@ body { background: #ffffff; color: black; }
#ifndef QT_NO_TABLE #ifndef QT_NO_TABLE
#if !defined( QT_MODULE_TABLE ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_TABLE ) #if !defined( TQT_MODULE_TABLE ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_TABLE )
#define TQM_EXPORT_TABLE #define TQM_EXPORT_TABLE
#ifndef TQM_TEMPLATE_EXTERN_TABLE #ifndef TQM_TEMPLATE_EXTERN_TABLE
# define TQM_TEMPLATE_EXTERN_TABLE # define TQM_TEMPLATE_EXTERN_TABLE
@ -210,7 +210,7 @@ private:
uint enabled : 1; uint enabled : 1;
int rw, cl; int rw, cl;
int rowspan, colspan; int rowspan, colspan;
#if (QT_VERSION &gt;= 0x040000) #if (TQT_VERSION &gt;= 0x040000)
#error "Add a setAlignment() function in 4.0 (but no d pointer)" #error "Add a setAlignment() function in 4.0 (but no d pointer)"
#endif #endif
}; };
@ -281,7 +281,7 @@ private:
class TQM_EXPORT_TABLE TQTable : public TQScrollView class TQM_EXPORT_TABLE TQTable : public TQScrollView
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( SelectionMode FocusStyle ) Q_ENUMS( SelectionMode FocusStyle )
Q_PROPERTY( int numRows READ numRows WRITE setNumRows ) Q_PROPERTY( int numRows READ numRows WRITE setNumRows )
Q_PROPERTY( int numCols READ numCols WRITE setNumCols ) Q_PROPERTY( int numCols READ numCols WRITE setNumCols )
@ -587,7 +587,7 @@ private:
FocusStyle focusStl; FocusStyle focusStl;
TQSize unused_cachedSizeHint; // ### remove in 4.0 TQSize unused_cachedSizeHint; // ### remove in 4.0
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTable( const TQTable &amp; ); TQTable( const TQTable &amp; );
TQTable &amp;operator=( const TQTable &amp; ); TQTable &amp;operator=( const TQTable &amp; );
#endif #endif

@ -92,7 +92,7 @@ class TQWidgetStack;
class Q_EXPORT TQTabWidget : public TQWidget class Q_EXPORT TQTabWidget : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( TabPosition ) Q_ENUMS( TabPosition )
Q_ENUMS( TabShape ) Q_ENUMS( TabShape )
Q_PROPERTY( TabPosition tabPosition READ tabPosition WRITE setTabPosition ) Q_PROPERTY( TabPosition tabPosition READ tabPosition WRITE setTabPosition )
@ -187,7 +187,7 @@ private:
friend class TQTabDialog; friend class TQTabDialog;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTabWidget( const TQTabWidget &amp; ); TQTabWidget( const TQTabWidget &amp; );
TQTabWidget&amp; operator=( const TQTabWidget &amp; ); TQTabWidget&amp; operator=( const TQTabWidget &amp; );
#endif #endif

@ -90,7 +90,7 @@ class TQTextBrowserData;
class Q_EXPORT TQTextBrowser : public TQTextEdit class Q_EXPORT TQTextBrowser : public TQTextEdit
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString source READ source WRITE setSource ) Q_PROPERTY( TQString source READ source WRITE setSource )
Q_OVERRIDE( int undoDepth DESIGNABLE false SCRIPTABLE false ) Q_OVERRIDE( int undoDepth DESIGNABLE false SCRIPTABLE false )
Q_OVERRIDE( bool overwriteMode DESIGNABLE false SCRIPTABLE false ) Q_OVERRIDE( bool overwriteMode DESIGNABLE false SCRIPTABLE false )
@ -132,7 +132,7 @@ private:
TQTextBrowserData *d; TQTextBrowserData *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTextBrowser( const TQTextBrowser &amp; ); TQTextBrowser( const TQTextBrowser &amp; );
TQTextBrowser&amp; operator=( const TQTextBrowser &amp; ); TQTextBrowser&amp; operator=( const TQTextBrowser &amp; );
#endif #endif

@ -88,7 +88,7 @@ class TQTextCodecPluginPrivate;
class Q_EXPORT TQTextCodecPlugin : public TQGPlugin class Q_EXPORT TQTextCodecPlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQTextCodecPlugin(); TQTextCodecPlugin();
~TQTextCodecPlugin(); ~TQTextCodecPlugin();

@ -173,7 +173,7 @@ class Q_EXPORT TQTextEdit : public TQScrollView
friend class TQTextBrowser; friend class TQTextBrowser;
friend class TQSyntaxHighlighter; friend class TQSyntaxHighlighter;
Q_OBJECT TQ_OBJECT
Q_ENUMS( WordWrap WrapPolicy ) Q_ENUMS( WordWrap WrapPolicy )
Q_SETS( AutoFormatting ) Q_SETS( AutoFormatting )
Q_PROPERTY( TextFormat textFormat READ textFormat WRITE setTextFormat ) Q_PROPERTY( TextFormat textFormat READ textFormat WRITE setTextFormat )
@ -491,7 +491,7 @@ protected:
protected slots: protected slots:
virtual void doChangeInterval(); virtual void doChangeInterval();
void sliderReleased(); // ### make virtual in 4.0 void sliderReleased(); // ### make virtual in 4.0
#if (QT_VERSION &gt;= 0x040000) #if (TQT_VERSION &gt;= 0x040000)
#error "Some functions need to be changed to virtual for TQt 4.0" #error "Some functions need to be changed to virtual for TQt 4.0"
#endif #endif
@ -624,7 +624,7 @@ private:
bool overWrite : 1; bool overWrite : 1;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTextEdit( const TQTextEdit &amp; ); TQTextEdit( const TQTextEdit &amp; );
TQTextEdit &amp;operator=( const TQTextEdit &amp; ); TQTextEdit &amp;operator=( const TQTextEdit &amp; );
#endif #endif

@ -226,7 +226,7 @@ private:
TQTextStream &amp;writeBlock( const TQChar* p, uint len ); TQTextStream &amp;writeBlock( const TQChar* p, uint len );
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTextStream( const TQTextStream &amp; ); TQTextStream( const TQTextStream &amp; );
TQTextStream &amp;operator=( const TQTextStream &amp; ); TQTextStream &amp;operator=( const TQTextStream &amp; );
#endif #endif
@ -244,7 +244,7 @@ public:
TQTextStream(f,IO_ReadOnly) { } TQTextStream(f,IO_ReadOnly) { }
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTextIStream( const TQTextIStream &amp; ); TQTextIStream( const TQTextIStream &amp; );
TQTextIStream &amp;operator=( const TQTextIStream &amp; ); TQTextIStream &amp;operator=( const TQTextIStream &amp; );
#endif #endif
@ -260,7 +260,7 @@ public:
TQTextStream(f,IO_WriteOnly) { } TQTextStream(f,IO_WriteOnly) { }
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTextOStream( const TQTextOStream &amp; ); TQTextOStream( const TQTextOStream &amp; );
TQTextOStream &amp;operator=( const TQTextOStream &amp; ); TQTextOStream &amp;operator=( const TQTextOStream &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQTextView : public TQTextEdit class Q_EXPORT TQTextView : public TQTextEdit
{ {
Q_OBJECT TQ_OBJECT
Q_OVERRIDE( int undoDepth DESIGNABLE false SCRIPTABLE false ) Q_OVERRIDE( int undoDepth DESIGNABLE false SCRIPTABLE false )
Q_OVERRIDE( bool overwriteMode DESIGNABLE false SCRIPTABLE false ) Q_OVERRIDE( bool overwriteMode DESIGNABLE false SCRIPTABLE false )
Q_OVERRIDE( bool modified SCRIPTABLE false) Q_OVERRIDE( bool modified SCRIPTABLE false)
@ -100,7 +100,7 @@ public:
virtual ~TQTextView(); virtual ~TQTextView();
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQTextView( const TQTextView &amp; ); TQTextView( const TQTextView &amp; );
TQTextView &amp;operator=( const TQTextView &amp; ); TQTextView &amp;operator=( const TQTextView &amp; );
#endif #endif

@ -155,10 +155,10 @@ private:
TQThreadInstance * d; TQThreadInstance * d;
friend class TQThreadInstance; friend class TQThreadInstance;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQThread( const TQThread &amp; ); TQThread( const TQThread &amp; );
TQThread &amp;operator=( const TQThread &amp; ); TQThread &amp;operator=( const TQThread &amp; );
#endif // Q_DISABLE_COPY #endif // TQ_DISABLE_COPY
}; };
#endif // QT_THREAD_SUPPORT #endif // QT_THREAD_SUPPORT

@ -101,11 +101,11 @@ class TQThreadStorage
private: private:
TQThreadStorageData d; TQThreadStorageData d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
// disable copy constructor and operator= // disable copy constructor and operator=
TQThreadStorage( const TQThreadStorage &amp; ); TQThreadStorage( const TQThreadStorage &amp; );
TQThreadStorage &amp;operator=( const TQThreadStorage &amp; ); TQThreadStorage &amp;operator=( const TQThreadStorage &amp; );
#endif // Q_DISABLE_COPY #endif // TQ_DISABLE_COPY
static void deleteData( void *x ) { delete (T)x; } static void deleteData( void *x ) { delete (T)x; }

@ -84,7 +84,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQTimer : public TQObject class Q_EXPORT TQTimer : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQTimer( TQObject *parent=0, const char *name=0 ); TQTimer( TQObject *parent=0, const char *name=0 );
~TQTimer(); ~TQTimer();
@ -111,7 +111,7 @@ private:
uint nulltimer : 1; uint nulltimer : 1;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTimer( const TQTimer &amp; ); TQTimer( const TQTimer &amp; );
TQTimer &amp;operator=( const TQTimer &amp; ); TQTimer &amp;operator=( const TQTimer &amp; );
#endif #endif

@ -90,7 +90,7 @@ class TQToolBarPrivate;
class Q_EXPORT TQToolBar: public TQDockWindow class Q_EXPORT TQToolBar: public TQDockWindow
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString label READ label WRITE setLabel ) Q_PROPERTY( TQString label READ label WRITE setLabel )
public: public:
@ -142,7 +142,7 @@ private:
friend class TQMainWindow; friend class TQMainWindow;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQToolBar( const TQToolBar &amp; ); TQToolBar( const TQToolBar &amp; );
TQToolBar&amp; operator=( const TQToolBar &amp; ); TQToolBar&amp; operator=( const TQToolBar &amp; );
#endif #endif

@ -89,7 +89,7 @@ class TQWidgetList;
class Q_EXPORT TQToolBox : public TQFrame class Q_EXPORT TQToolBox : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int currentIndex READ currentIndex WRITE setCurrentIndex ) Q_PROPERTY( int currentIndex READ currentIndex WRITE setCurrentIndex )
Q_PROPERTY( int count READ count ) Q_PROPERTY( int count READ count )

@ -92,7 +92,7 @@ class TQPopupMenu;
class Q_EXPORT TQToolButton : public TQButton class Q_EXPORT TQToolButton : public TQButton
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( TextPosition ) Q_ENUMS( TextPosition )
Q_PROPERTY( TQIconSet iconSet READ iconSet WRITE setIconSet ) Q_PROPERTY( TQIconSet iconSet READ iconSet WRITE setIconSet )
@ -185,7 +185,7 @@ protected:
// ### Make virtual in 4.0, maybe act like TQPushButton with // ### Make virtual in 4.0, maybe act like TQPushButton with
// regards to setFlat() instead? Andy // regards to setFlat() instead? Andy
bool uses3D() const; bool uses3D() const;
#if (QT_VERSION &gt;= 0x040000) #if (TQT_VERSION &gt;= 0x040000)
#error "Some functions need to be changed to virtual for TQt 4.0" #error "Some functions need to be changed to virtual for TQt 4.0"
#endif #endif
@ -217,7 +217,7 @@ private:
uint hasArrow : 1; uint hasArrow : 1;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQToolButton( const TQToolButton &amp; ); TQToolButton( const TQToolButton &amp; );
TQToolButton&amp; operator=( const TQToolButton &amp; ); TQToolButton&amp; operator=( const TQToolButton &amp; );
#endif #endif

@ -91,7 +91,7 @@ class TQListViewToolTip;
class Q_EXPORT TQToolTipGroup: public TQObject class Q_EXPORT TQToolTipGroup: public TQObject
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool delay READ delay WRITE setDelay ) Q_PROPERTY( bool delay READ delay WRITE setDelay )
Q_PROPERTY( bool enabled READ enabled WRITE setEnabled ) Q_PROPERTY( bool enabled READ enabled WRITE setEnabled )
@ -117,7 +117,7 @@ private:
friend class TQTipManager; friend class TQTipManager;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQToolTipGroup( const TQToolTipGroup &amp; ); TQToolTipGroup( const TQToolTipGroup &amp; );
TQToolTipGroup&amp; operator=( const TQToolTipGroup &amp; ); TQToolTipGroup&amp; operator=( const TQToolTipGroup &amp; );
#endif #endif

@ -140,7 +140,7 @@ private:
class Q_EXPORT TQTranslator: public TQObject class Q_EXPORT TQTranslator: public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQTranslator( TQObject * parent = 0, const char * name = 0 ); TQTranslator( TQObject * parent = 0, const char * name = 0 );
~TQTranslator(); ~TQTranslator();
@ -188,7 +188,7 @@ public:
bool isEmpty() const; bool isEmpty() const;
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQTranslator( const TQTranslator &amp; ); TQTranslator( const TQTranslator &amp; );
TQTranslator &amp;operator=( const TQTranslator &amp; ); TQTranslator &amp;operator=( const TQTranslator &amp; );
#endif #endif

@ -100,7 +100,7 @@ public:
TQUrlInfo(); TQUrlInfo();
TQUrlInfo( const TQUrlOperator &amp;path, const TQString &amp;file ); TQUrlInfo( const TQUrlOperator &amp;path, const TQString &amp;file );
TQUrlInfo( const TQUrlInfo &amp;ui ); TQUrlInfo( const TQUrlInfo &amp;ui );
#if (QT_VERSION-0 &gt;= 0x040000) #if (TQT_VERSION-0 &gt;= 0x040000)
#error "TQUrlInfo::TQUrlInfo() should accept TQIODevice::Offset instead of uint" #error "TQUrlInfo::TQUrlInfo() should accept TQIODevice::Offset instead of uint"
#elif defined(QT_ABI_QT4) #elif defined(QT_ABI_QT4)
TQUrlInfo( const TQString &amp;name, int permissions, const TQString &amp;owner, TQUrlInfo( const TQString &amp;name, int permissions, const TQString &amp;owner,
@ -130,7 +130,7 @@ public:
virtual void setSymLink( bool b ); virtual void setSymLink( bool b );
virtual void setOwner( const TQString &amp;s ); virtual void setOwner( const TQString &amp;s );
virtual void setGroup( const TQString &amp;s ); virtual void setGroup( const TQString &amp;s );
#if (QT_VERSION-0 &gt;= 0x040000) #if (TQT_VERSION-0 &gt;= 0x040000)
#error "TQUrlInfo::setSize() should accept TQIODevice::Offset instead of uint" #error "TQUrlInfo::setSize() should accept TQIODevice::Offset instead of uint"
#elif defined(QT_ABI_QT4) #elif defined(QT_ABI_QT4)
virtual void setSize( TQIODevice::Offset size ); virtual void setSize( TQIODevice::Offset size );
@ -148,7 +148,7 @@ public:
int permissions() const; int permissions() const;
TQString owner() const; TQString owner() const;
TQString group() const; TQString group() const;
#if (QT_VERSION-0 &gt;= 0x040000) #if (TQT_VERSION-0 &gt;= 0x040000)
#error "TQUrlInfo::size() should return TQIODevice::Offset instead of uint" #error "TQUrlInfo::size() should return TQIODevice::Offset instead of uint"
#elif defined(QT_ABI_QT4) #elif defined(QT_ABI_QT4)
TQIODevice::Offset size() const; TQIODevice::Offset size() const;

@ -94,7 +94,7 @@ class Q_EXPORT TQUrlOperator : public TQObject, public TQUrl
{ {
friend class TQNetworkProtocol; friend class TQNetworkProtocol;
Q_OBJECT TQ_OBJECT
public: public:
TQUrlOperator(); TQUrlOperator();

@ -88,7 +88,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQValidator : public TQObject class Q_EXPORT TQValidator : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQValidator( TQObject * parent, const char *name = 0 ); TQValidator( TQObject * parent, const char *name = 0 );
~TQValidator(); ~TQValidator();
@ -99,7 +99,7 @@ public:
virtual void fixup( TQString &amp; ) const; virtual void fixup( TQString &amp; ) const;
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQValidator( const TQValidator &amp; ); TQValidator( const TQValidator &amp; );
TQValidator&amp; operator=( const TQValidator &amp; ); TQValidator&amp; operator=( const TQValidator &amp; );
#endif #endif
@ -108,7 +108,7 @@ private:
class Q_EXPORT TQIntValidator : public TQValidator class Q_EXPORT TQIntValidator : public TQValidator
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int bottom READ bottom WRITE setBottom ) Q_PROPERTY( int bottom READ bottom WRITE setBottom )
Q_PROPERTY( int top READ top WRITE setTop ) Q_PROPERTY( int top READ top WRITE setTop )
@ -128,7 +128,7 @@ public:
int top() const { return t; } int top() const { return t; }
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQIntValidator( const TQIntValidator &amp; ); TQIntValidator( const TQIntValidator &amp; );
TQIntValidator&amp; operator=( const TQIntValidator &amp; ); TQIntValidator&amp; operator=( const TQIntValidator &amp; );
#endif #endif
@ -140,7 +140,7 @@ private:
class Q_EXPORT TQDoubleValidator : public TQValidator class Q_EXPORT TQDoubleValidator : public TQValidator
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( double bottom READ bottom WRITE setBottom ) Q_PROPERTY( double bottom READ bottom WRITE setBottom )
Q_PROPERTY( double top READ top WRITE setTop ) Q_PROPERTY( double top READ top WRITE setTop )
Q_PROPERTY( int decimals READ decimals WRITE setDecimals ) Q_PROPERTY( int decimals READ decimals WRITE setDecimals )
@ -163,7 +163,7 @@ public:
int decimals() const { return d; } int decimals() const { return d; }
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDoubleValidator( const TQDoubleValidator &amp; ); TQDoubleValidator( const TQDoubleValidator &amp; );
TQDoubleValidator&amp; operator=( const TQDoubleValidator &amp; ); TQDoubleValidator&amp; operator=( const TQDoubleValidator &amp; );
#endif #endif
@ -175,7 +175,7 @@ private:
class Q_EXPORT TQRegExpValidator : public TQValidator class Q_EXPORT TQRegExpValidator : public TQValidator
{ {
Q_OBJECT TQ_OBJECT
// Q_PROPERTY( TQRegExp regExp READ regExp WRITE setRegExp ) // Q_PROPERTY( TQRegExp regExp READ regExp WRITE setRegExp )
public: public:
@ -190,7 +190,7 @@ public:
const TQRegExp&amp; regExp() const { return r; } const TQRegExp&amp; regExp() const { return r; }
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQRegExpValidator( const TQRegExpValidator&amp; ); TQRegExpValidator( const TQRegExpValidator&amp; );
TQRegExpValidator&amp; operator=( const TQRegExpValidator&amp; ); TQRegExpValidator&amp; operator=( const TQRegExpValidator&amp; );
#endif #endif

@ -474,7 +474,7 @@ public:
TQValueList( const std::list&lt;T&gt;&amp; l ) TQValueList( const std::list&lt;T&gt;&amp; l )
{ {
sh = new TQValueListPrivate&lt;T&gt;; sh = new TQValueListPrivate&lt;T&gt;;
qCopy( l.begin(), l.end(), std::back_inserter( *this ) ); tqCopy( l.begin(), l.end(), std::back_inserter( *this ) );
} }
#endif #endif
~TQValueList() { sh-&gt;derefAndDelete(); } ~TQValueList() { sh-&gt;derefAndDelete(); }
@ -490,7 +490,7 @@ public:
TQValueList&lt;T&gt;&amp; operator= ( const std::list&lt;T&gt;&amp; l ) TQValueList&lt;T&gt;&amp; operator= ( const std::list&lt;T&gt;&amp; l )
{ {
detach(); detach();
qCopy( l.begin(), l.end(), std::back_inserter( *this ) ); tqCopy( l.begin(), l.end(), std::back_inserter( *this ) );
return *this; return *this;
} }
bool operator== ( const std::list&lt;T&gt;&amp; l ) const bool operator== ( const std::list&lt;T&gt;&amp; l ) const

@ -164,9 +164,9 @@ Q_INLINE_TEMPLATES TQValueVectorPrivate&lt;T&gt;::TQValueVectorPrivate( const TQ
finish = start + i; finish = start + i;
end = start + i; end = start + i;
#if defined(__xlC__) &amp;&amp; __xlC__ &lt; 0x400 // xlC 3.6 confused by const #if defined(__xlC__) &amp;&amp; __xlC__ &lt; 0x400 // xlC 3.6 confused by const
qCopy( (pointer)x.start, (pointer)x.finish, start ); tqCopy( (pointer)x.start, (pointer)x.finish, start );
#else #else
qCopy( x.start, x.finish, start ); tqCopy( x.start, x.finish, start );
#endif #endif
} else { } else {
start = 0; start = 0;
@ -197,9 +197,9 @@ Q_INLINE_TEMPLATES void TQValueVectorPrivate&lt;T&gt;::insert( pointer pos, cons
const size_t offset = pos - start; const size_t offset = pos - start;
pointer newStart = new T[n]; pointer newStart = new T[n];
pointer newFinish = newStart + offset; pointer newFinish = newStart + offset;
qCopy( start, pos, newStart ); tqCopy( start, pos, newStart );
*newFinish = x; *newFinish = x;
qCopy( pos, finish, ++newFinish ); tqCopy( pos, finish, ++newFinish );
delete[] start; delete[] start;
start = newStart; start = newStart;
finish = newStart + lastSize + 1; finish = newStart + lastSize + 1;
@ -214,31 +214,31 @@ Q_INLINE_TEMPLATES void TQValueVectorPrivate&lt;T&gt;::insert( pointer pos, size
const size_t elems_after = finish - pos; const size_t elems_after = finish - pos;
pointer old_finish = finish; pointer old_finish = finish;
if ( elems_after &gt; n ) { if ( elems_after &gt; n ) {
qCopy( finish - n, finish, finish ); tqCopy( finish - n, finish, finish );
finish += n; finish += n;
qCopyBackward( pos, old_finish - n, old_finish ); tqCopyBackward( pos, old_finish - n, old_finish );
qFill( pos, pos + n, x ); tqFill( pos, pos + n, x );
} else { } else {
pointer filler = finish; pointer filler = finish;
size_t i = n - elems_after; size_t i = n - elems_after;
for ( ; i &gt; 0; --i, ++filler ) for ( ; i &gt; 0; --i, ++filler )
*filler = x; *filler = x;
finish += n - elems_after; finish += n - elems_after;
qCopy( pos, old_finish, finish ); tqCopy( pos, old_finish, finish );
finish += elems_after; finish += elems_after;
qFill( pos, old_finish, x ); tqFill( pos, old_finish, x );
} }
} else { } else {
// not enough room // not enough room
const size_t lastSize = size(); const size_t lastSize = size();
const size_t len = lastSize + TQMAX( lastSize, n ); const size_t len = lastSize + TQMAX( lastSize, n );
pointer newStart = new T[len]; pointer newStart = new T[len];
pointer newFinish = qCopy( start, pos, newStart ); pointer newFinish = tqCopy( start, pos, newStart );
// fill up inserted space // fill up inserted space
size_t i = n; size_t i = n;
for ( ; i &gt; 0; --i, ++newFinish ) for ( ; i &gt; 0; --i, ++newFinish )
*newFinish = x; *newFinish = x;
newFinish = qCopy( pos, finish, newFinish ); newFinish = tqCopy( pos, finish, newFinish );
delete[] start; delete[] start;
start = newStart; start = newStart;
finish = newFinish; finish = newFinish;
@ -260,7 +260,7 @@ template &lt;class T&gt;
Q_INLINE_TEMPLATES Q_TYPENAME TQValueVectorPrivate&lt;T&gt;::pointer TQValueVectorPrivate&lt;T&gt;::growAndCopy( size_t n, pointer s, pointer f ) Q_INLINE_TEMPLATES Q_TYPENAME TQValueVectorPrivate&lt;T&gt;::pointer TQValueVectorPrivate&lt;T&gt;::growAndCopy( size_t n, pointer s, pointer f )
{ {
pointer newStart = new T[n]; pointer newStart = new T[n];
qCopy( s, f, newStart ); tqCopy( s, f, newStart );
delete[] start; delete[] start;
return newStart; return newStart;
} }
@ -302,13 +302,13 @@ public:
TQValueVector( std::vector&lt;T&gt;&amp; v ) // ### remove in 4.0 TQValueVector( std::vector&lt;T&gt;&amp; v ) // ### remove in 4.0
{ {
sh = new TQValueVectorPrivate&lt;T&gt;( v.size() ); sh = new TQValueVectorPrivate&lt;T&gt;( v.size() );
qCopy( v.begin(), v.end(), begin() ); tqCopy( v.begin(), v.end(), begin() );
} }
TQValueVector( const std::vector&lt;T&gt;&amp; v ) TQValueVector( const std::vector&lt;T&gt;&amp; v )
{ {
sh = new TQValueVectorPrivate&lt;T&gt;( v.size() ); sh = new TQValueVectorPrivate&lt;T&gt;( v.size() );
qCopy( v.begin(), v.end(), begin() ); tqCopy( v.begin(), v.end(), begin() );
} }
#endif #endif
@ -330,7 +330,7 @@ public:
{ {
clear(); clear();
resize( v.size() ); resize( v.size() );
qCopy( v.begin(), v.end(), begin() ); tqCopy( v.begin(), v.end(), begin() );
return *this; return *this;
} }
#endif #endif
@ -475,7 +475,7 @@ public:
{ {
detach(); detach();
if ( pos + 1 != end() ) if ( pos + 1 != end() )
qCopy( pos + 1, sh-&gt;finish, pos ); tqCopy( pos + 1, sh-&gt;finish, pos );
--sh-&gt;finish; --sh-&gt;finish;
return pos; return pos;
} }
@ -483,7 +483,7 @@ public:
iterator erase( iterator first, iterator last ) iterator erase( iterator first, iterator last )
{ {
detach(); detach();
qCopy( last, sh-&gt;finish, first ); tqCopy( last, sh-&gt;finish, first );
sh-&gt;finish = sh-&gt;finish - ( last - first ); sh-&gt;finish = sh-&gt;finish - ( last - first );
return first; return first;
} }
@ -491,12 +491,12 @@ public:
// ### remove in TQt 4.0 // ### remove in TQt 4.0
bool operator==( const TQValueVector&lt;T&gt;&amp; x ) bool operator==( const TQValueVector&lt;T&gt;&amp; x )
{ {
return size()==x.size() ? qEqual( constBegin(), constEnd(), x.begin()) : FALSE; return size()==x.size() ? tqEqual( constBegin(), constEnd(), x.begin()) : FALSE;
} }
bool operator==( const TQValueVector&lt;T&gt;&amp; x ) const bool operator==( const TQValueVector&lt;T&gt;&amp; x ) const
{ {
return size()==x.size() ? qEqual( begin(), end(), x.begin() ) : FALSE; return size()==x.size() ? tqEqual( begin(), end(), x.begin() ) : FALSE;
} }
typedef T ValueType; typedef T ValueType;
@ -528,7 +528,7 @@ template &lt;class T&gt;
Q_INLINE_TEMPLATES TQValueVector&lt;T&gt;::TQValueVector( size_type n, const T&amp; val ) Q_INLINE_TEMPLATES TQValueVector&lt;T&gt;::TQValueVector( size_type n, const T&amp; val )
{ {
sh = new TQValueVectorPrivate&lt;T&gt;( n ); sh = new TQValueVectorPrivate&lt;T&gt;( n );
qFill( begin(), end(), val ); tqFill( begin(), end(), val );
} }
template &lt;class T&gt; template &lt;class T&gt;
@ -556,7 +556,7 @@ Q_INLINE_TEMPLATES Q_TYPENAME TQValueVector&lt;T&gt;::iterator TQValueVector&lt;
} else { } else {
*sh-&gt;finish = *(sh-&gt;finish - 1); *sh-&gt;finish = *(sh-&gt;finish - 1);
++sh-&gt;finish; ++sh-&gt;finish;
qCopyBackward( pos, sh-&gt;finish - 2, sh-&gt;finish - 1 ); tqCopyBackward( pos, sh-&gt;finish - 2, sh-&gt;finish - 1 );
*pos = x; *pos = x;
} }
} }

@ -85,12 +85,12 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQVBox : public TQHBox class Q_EXPORT TQVBox : public TQHBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQVBox( TQWidget* parent=0, const char* name=0, WFlags f=0 ); TQVBox( TQWidget* parent=0, const char* name=0, WFlags f=0 );
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQVBox( const TQVBox &amp; ); TQVBox( const TQVBox &amp; );
TQVBox&amp; operator=( const TQVBox &amp; ); TQVBox&amp; operator=( const TQVBox &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQVButtonGroup : public TQButtonGroup class Q_EXPORT TQVButtonGroup : public TQButtonGroup
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQVButtonGroup( TQWidget* parent=0, const char* name=0 ); TQVButtonGroup( TQWidget* parent=0, const char* name=0 );
TQVButtonGroup( const TQString &amp;title, TQWidget* parent=0, const char* name=0 ); TQVButtonGroup( const TQString &amp;title, TQWidget* parent=0, const char* name=0 );
@ -93,7 +93,7 @@ public:
~TQVButtonGroup(); ~TQVButtonGroup();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQVButtonGroup( const TQVButtonGroup &amp; ); TQVButtonGroup( const TQVButtonGroup &amp; );
TQVButtonGroup &amp;operator=( const TQVButtonGroup &amp; ); TQVButtonGroup &amp;operator=( const TQVButtonGroup &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT TQVGroupBox : public TQGroupBox class Q_EXPORT TQVGroupBox : public TQGroupBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQVGroupBox( TQWidget* parent=0, const char* name=0 ); TQVGroupBox( TQWidget* parent=0, const char* name=0 );
TQVGroupBox( const TQString &amp;title, TQWidget* parent=0, const char* name=0 ); TQVGroupBox( const TQString &amp;title, TQWidget* parent=0, const char* name=0 );
@ -93,7 +93,7 @@ public:
~TQVGroupBox(); ~TQVGroupBox();
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQVGroupBox( const TQVGroupBox &amp; ); TQVGroupBox( const TQVGroupBox &amp; );
TQVGroupBox &amp;operator=( const TQVGroupBox &amp; ); TQVGroupBox &amp;operator=( const TQVGroupBox &amp; );
#endif #endif

@ -104,7 +104,7 @@ public:
private: private:
TQWaitConditionPrivate * d; TQWaitConditionPrivate * d;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQWaitCondition( const TQWaitCondition &amp; ); TQWaitCondition( const TQWaitCondition &amp; );
TQWaitCondition &amp;operator=( const TQWaitCondition &amp; ); TQWaitCondition &amp;operator=( const TQWaitCondition &amp; );
#endif #endif

@ -55,7 +55,7 @@ body { background: #ffffff; color: black; }
class Editor : public <a href="ntqwidget.html">TQWidget</a> class Editor : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Editor( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name="qwerty" ); Editor( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name="qwerty" );
~Editor(); ~Editor();
@ -135,7 +135,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
m = new <a href="ntqmenubar.html">TQMenuBar</a>( this, "menu" ); m = new <a href="ntqmenubar.html">TQMenuBar</a>( this, "menu" );
<a href="ntqpopupmenu.html">TQPopupMenu</a> * file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(); <a href="ntqpopupmenu.html">TQPopupMenu</a> * file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( file ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
<a name="x371"></a> m-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file ); <a name="x371"></a> m-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;New", this, SLOT(newDoc()), ALT+Key_N ); file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;New", this, SLOT(newDoc()), ALT+Key_N );
@ -160,7 +160,7 @@ enum { Uni = 0, MBug = 1, Lat1 = 2, Local = 3, Guess = 4, Codec = 5 };
rebuildCodecList(); rebuildCodecList();
<a href="ntqpopupmenu.html">TQPopupMenu</a> * edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>(); <a href="ntqpopupmenu.html">TQPopupMenu</a> * edit = new <a href="ntqpopupmenu.html">TQPopupMenu</a>();
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( edit ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( edit );
m-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit ); m-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "To &amp;Uppercase", this, SLOT(toUpper()), ALT+Key_U ); edit-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "To &amp;Uppercase", this, SLOT(toUpper()), ALT+Key_U );

@ -98,7 +98,7 @@ class TQStyle;
class Q_EXPORT TQWidget : public TQObject, public TQPaintDevice class Q_EXPORT TQWidget : public TQObject, public TQPaintDevice
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( BackgroundMode FocusPolicy BackgroundOrigin ) Q_ENUMS( BackgroundMode FocusPolicy BackgroundOrigin )
Q_PROPERTY( bool isTopLevel READ isTopLevel ) Q_PROPERTY( bool isTopLevel READ isTopLevel )
Q_PROPERTY( bool isDialog READ isDialog ) Q_PROPERTY( bool isDialog READ isDialog )
@ -731,7 +731,7 @@ private:
friend class TQLayout; friend class TQLayout;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQWidget( const TQWidget &amp; ); TQWidget( const TQWidget &amp; );
TQWidget &amp;operator=( const TQWidget &amp; ); TQWidget &amp;operator=( const TQWidget &amp; );
#endif #endif

@ -99,7 +99,7 @@ class TQWidget;
class Q_EXPORT TQWidgetPlugin : public TQGPlugin class Q_EXPORT TQWidgetPlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQWidgetPlugin(); TQWidgetPlugin();
~TQWidgetPlugin(); ~TQWidgetPlugin();

@ -91,7 +91,7 @@ class TQWidgetStackPrivate;
class Q_EXPORT TQWidgetStack: public TQFrame class Q_EXPORT TQWidgetStack: public TQFrame
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQWidgetStack( TQWidget* parent=0, const char* name=0 ); TQWidgetStack( TQWidget* parent=0, const char* name=0 );
TQWidgetStack( TQWidget* parent, const char* name, WFlags f); TQWidgetStack( TQWidget* parent, const char* name, WFlags f);
@ -137,7 +137,7 @@ private:
TQWidget * invisible; TQWidget * invisible;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQWidgetStack( const TQWidgetStack &amp; ); TQWidgetStack( const TQWidgetStack &amp; );
TQWidgetStack&amp; operator=( const TQWidgetStack &amp; ); TQWidgetStack&amp; operator=( const TQWidgetStack &amp; );
#endif #endif

@ -216,7 +216,7 @@ const TQCOORD TQCOORD_MIN = -TQCOORD_MAX - 1;
typedef unsigned int TQRgb; // RGB triplet typedef unsigned int TQRgb; // RGB triplet
Q_EXPORT const char *qAppName(); // get application name Q_EXPORT const char *tqAppName(); // get application name
// Misc functions // Misc functions

@ -92,7 +92,7 @@ body { background: #ffffff; color: black; }
class Q_EXPORT_STYLE_WINDOWS TQWindowsStyle : public TQCommonStyle class Q_EXPORT_STYLE_WINDOWS TQWindowsStyle : public TQCommonStyle
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQWindowsStyle(); TQWindowsStyle();
~TQWindowsStyle(); ~TQWindowsStyle();
@ -160,7 +160,7 @@ private:
Private *d; Private *d;
// Disabled copy constructor and operator= // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQWindowsStyle( const TQWindowsStyle &amp; ); TQWindowsStyle( const TQWindowsStyle &amp; );
TQWindowsStyle&amp; operator=( const TQWindowsStyle &amp; ); TQWindowsStyle&amp; operator=( const TQWindowsStyle &amp; );
#endif #endif

@ -183,7 +183,7 @@ class TQWSSoundServer;
class TQWSSoundServerData; class TQWSSoundServerData;
class TQWSSoundServer : public TQObject { class TQWSSoundServer : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
TQWSSoundServer(TQObject* parent); TQWSSoundServer(TQObject* parent);
~TQWSSoundServer(); ~TQWSSoundServer();
@ -222,7 +222,7 @@ class TQWSServer : public TQObject
friend class TQWSWindow; friend class TQWSWindow;
friend class TQWSDisplay; friend class TQWSDisplay;
friend class TQWSInputMethod; friend class TQWSInputMethod;
Q_OBJECT TQ_OBJECT
public: public:
TQWSServer( int flags = 0, TQObject *parent=0, const char *name=0 ); TQWSServer( int flags = 0, TQObject *parent=0, const char *name=0 );
@ -568,7 +568,7 @@ typedef TQMap&lt;int, TQWSCursor*&gt; TQWSCursorMap;
class TQWSClient : public TQObject class TQWSClient : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQWSClient( TQObject* parent, int socket, int id ); TQWSClient( TQObject* parent, int socket, int id );
~TQWSClient(); ~TQWSClient();

@ -89,7 +89,7 @@ class TQWizardPrivate;
class Q_EXPORT TQWizard : public TQDialog class Q_EXPORT TQWizard : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQFont titleFont READ titleFont WRITE setTitleFont ) Q_PROPERTY( TQFont titleFont READ titleFont WRITE setTitleFont )
public: public:
@ -167,7 +167,7 @@ private:
TQWizardPrivate *d; TQWizardPrivate *d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQWizard( const TQWizard &amp; ); TQWizard( const TQWizard &amp; );
TQWizard&amp; operator=( const TQWizard &amp; ); TQWizard&amp; operator=( const TQWizard &amp; );
#endif #endif

@ -84,7 +84,7 @@ body { background: #ffffff; color: black; }
#ifndef QT_NO_WORKSPACE #ifndef QT_NO_WORKSPACE
#if !defined( QT_MODULE_WORKSPACE ) || defined( QT_INTERNAL_WORKSPACE ) #if !defined( TQT_MODULE_WORKSPACE ) || defined( QT_INTERNAL_WORKSPACE )
#define TQM_EXPORT_WORKSPACE #define TQM_EXPORT_WORKSPACE
#else #else
#define TQM_EXPORT_WORKSPACE Q_EXPORT #define TQM_EXPORT_WORKSPACE Q_EXPORT
@ -98,7 +98,7 @@ class TQDockWindow;
class TQM_EXPORT_WORKSPACE TQWorkspace : public TQWidget class TQM_EXPORT_WORKSPACE TQWorkspace : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool scrollBarsEnabled READ scrollBarsEnabled WRITE setScrollBarsEnabled ) Q_PROPERTY( bool scrollBarsEnabled READ scrollBarsEnabled WRITE setScrollBarsEnabled )
#ifdef QT_WORKSPACE_WINDOWMODE #ifdef QT_WORKSPACE_WINDOWMODE
@ -193,7 +193,7 @@ private:
friend class TQWorkspaceChild; friend class TQWorkspaceChild;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQWorkspace( const TQWorkspace &amp; ); TQWorkspace( const TQWorkspace &amp; );
TQWorkspace&amp; operator=( const TQWorkspace &amp; ); TQWorkspace&amp; operator=( const TQWorkspace &amp; );
#endif #endif

@ -85,7 +85,7 @@ body { background: #ffffff; color: black; }
#include "ntqvaluevector.h" #include "ntqvaluevector.h"
#endif // QT_H #endif // QT_H
#if !defined(QT_MODULE_XML) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_XML ) #if !defined(TQT_MODULE_XML) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_XML )
#define TQM_EXPORT_XML #define TQM_EXPORT_XML
#else #else
#define TQM_EXPORT_XML Q_EXPORT #define TQM_EXPORT_XML Q_EXPORT

@ -70,7 +70,7 @@ body { background: #ffffff; color: black; }
class TQXtWidget : public TQWidget { class TQXtWidget : public TQWidget {
Q_OBJECT TQ_OBJECT
Widget xtw; Widget xtw;
Widget xtparent; Widget xtparent;
bool need_reroot; bool need_reroot;

@ -56,7 +56,7 @@ class TQCheckBox;
class RangeControls : public <a href="ntqvbox.html">TQVBox</a> class RangeControls : public <a href="ntqvbox.html">TQVBox</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
RangeControls( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); RangeControls( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -59,7 +59,7 @@ class TQTable;
class RegexpTester : public <a href="ntqdialog.html">TQDialog</a> class RegexpTester : public <a href="ntqdialog.html">TQDialog</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
RegexpTester(TQWidget* parent=0, const char* name=0, bool modal=false, RegexpTester(TQWidget* parent=0, const char* name=0, bool modal=false,

@ -58,7 +58,7 @@ class TQPushButton;
class MyRichText : public <a href="ntqvbox.html">TQVBox</a> class MyRichText : public <a href="ntqvbox.html">TQVBox</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
MyRichText( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); MyRichText( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -60,7 +60,7 @@ the rot13 algorithm.
class TQMultiLineEdit; class TQMultiLineEdit;
class Rot13: public <a href="ntqwidget.html">TQWidget</a> { class Rot13: public <a href="ntqwidget.html">TQWidget</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Rot13(); Rot13();

@ -66,7 +66,7 @@ class TQSpinBox;
class Canvas : public <a href="ntqwidget.html">TQWidget</a> class Canvas : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Canvas( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); Canvas( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );
@ -105,7 +105,7 @@ protected:
class Scribble : public <a href="ntqmainwindow.html">TQMainWindow</a> class Scribble : public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
Scribble( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); Scribble( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -72,7 +72,7 @@ static const int max_mw = 10;
class BigShrinker : public <a href="ntqframe.html">TQFrame</a> { class BigShrinker : public <a href="ntqframe.html">TQFrame</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
BigShrinker(TQWidget* parent) : BigShrinker(TQWidget* parent) :
<a href="ntqframe.html">TQFrame</a>(parent) <a href="ntqframe.html">TQFrame</a>(parent)
@ -235,22 +235,22 @@ private:
}; };
class ScrollViewExample : public <a href="ntqwidget.html">TQWidget</a> { class ScrollViewExample : public <a href="ntqwidget.html">TQWidget</a> {
Q_OBJECT TQ_OBJECT
public: public:
ScrollViewExample(int technique, TQWidget* parent=0, const char* name=0) : ScrollViewExample(int technique, TQWidget* parent=0, const char* name=0) :
<a href="ntqwidget.html">TQWidget</a>(parent,name) <a href="ntqwidget.html">TQWidget</a>(parent,name)
{ {
<a href="ntqmenubar.html">TQMenuBar</a>* menubar = new <a href="ntqmenubar.html">TQMenuBar</a>(this); <a href="ntqmenubar.html">TQMenuBar</a>* menubar = new <a href="ntqmenubar.html">TQMenuBar</a>(this);
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( menubar ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( menubar );
<a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); <a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( file ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
<a name="x634"></a> menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file ); <a name="x634"></a> menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
vp_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); vp_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( vp_options ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( vp_options );
<a name="x644"></a> vp_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); <a name="x644"></a> vp_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;ScrollView", vp_options ); menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;ScrollView", vp_options );
<a name="x642"></a> connect( vp_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), <a name="x642"></a> connect( vp_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
@ -288,7 +288,7 @@ public:
} }
f_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); f_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( f_options ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( f_options );
f_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); f_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "F&amp;rame", f_options ); menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "F&amp;rame", f_options );
connect( f_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), connect( f_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
@ -305,7 +305,7 @@ public:
f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Sunken", style_id|TQFrame::Sunken )); f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Sunken", style_id|TQFrame::Sunken ));
f_options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); f_options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
lw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); lw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( lw_options ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( lw_options );
lw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); lw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int lw = 1; lw &lt;= max_lw; lw++) { for (int lw = 1; lw &lt;= max_lw; lw++) {
<a href="ntqstring.html">TQString</a> str; <a href="ntqstring.html">TQString</a> str;
@ -316,7 +316,7 @@ public:
connect( lw_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), connect( lw_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
this, SLOT(doFMenuItem(int)) ); this, SLOT(doFMenuItem(int)) );
mlw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); mlw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( mlw_options ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( mlw_options );
mlw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); mlw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int mlw = 0; mlw &lt;= max_mlw; mlw++) { for (int mlw = 0; mlw &lt;= max_mlw; mlw++) {
<a href="ntqstring.html">TQString</a> str; <a href="ntqstring.html">TQString</a> str;
@ -327,7 +327,7 @@ public:
connect( mlw_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)), connect( mlw_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
this, SLOT(doFMenuItem(int)) ); this, SLOT(doFMenuItem(int)) );
mw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar ); mw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( mw_options ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( mw_options );
mw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); mw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int mw = 0; mw &lt;= max_mw; mw++) { for (int mw = 0; mw &lt;= max_mw; mw++) {
<a href="ntqstring.html">TQString</a> str; <a href="ntqstring.html">TQString</a> str;

@ -60,7 +60,7 @@ class TQPopupMenu;
class ImageViewer : public <a href="ntqwidget.html">TQWidget</a> class ImageViewer : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ImageViewer( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0, int wFlags=0 ); ImageViewer( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0, int wFlags=0 );
~ImageViewer(); ~ImageViewer();

@ -109,7 +109,7 @@ mechanism.
<p> <pre> <p> <pre>
class Foo : public <a href="ntqobject.html">TQObject</a> class Foo : public <a href="ntqobject.html">TQObject</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Foo(); Foo();
int value() const { return val; } int value() const { return val; }
@ -127,7 +127,7 @@ state, but in addition it has support for component programming using
signals and slots: this class can tell the outside world that its state signals and slots: this class can tell the outside world that its state
has changed by emitting a signal, <tt>valueChanged()</tt>, and it has has changed by emitting a signal, <tt>valueChanged()</tt>, and it has
a slot which other objects can send signals to. a slot which other objects can send signals to.
<p> All classes that contain signals or slots must mention Q_OBJECT in <p> All classes that contain signals or slots must mention TQ_OBJECT in
their declaration. their declaration.
<p> Slots are implemented by the application programmer. <p> Slots are implemented by the application programmer.
Here is a possible implementation of Foo::setValue(): Here is a possible implementation of Foo::setValue():
@ -283,10 +283,10 @@ knowledge, via <a href="ntqframe.html">TQFrame</a> and <a href="ntqwidget.html">
declarations. declarations.
<p> <pre> <p> <pre>
{ {
Q_OBJECT TQ_OBJECT
</pre> </pre>
<p> Q_OBJECT is expanded by the preprocessor to declare several member <p> TQ_OBJECT is expanded by the preprocessor to declare several member
functions that are implemented by the moc; if you get compiler errors functions that are implemented by the moc; if you get compiler errors
along the lines of "virtual function TQButton::className not defined" along the lines of "virtual function TQButton::className not defined"
you have probably forgotten to <a href="moc.html">run the moc</a> or to you have probably forgotten to <a href="moc.html">run the moc</a> or to

@ -59,7 +59,7 @@ class TQTextEdit;
class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a> class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ApplicationWindow(); ApplicationWindow();

@ -61,7 +61,7 @@ class TQTextEdit;
class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a> class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
ApplicationWindow(); ApplicationWindow();

@ -51,7 +51,7 @@ class TQPushButton;
class Viewer : public <a href="ntqwidget.html">TQWidget</a> class Viewer : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Viewer(); Viewer();

@ -61,7 +61,7 @@ class TQDragDropEvent;
class DDListBox : public <a href="ntqlistbox.html">TQListBox</a> class DDListBox : public <a href="ntqlistbox.html">TQListBox</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
DDListBox( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ); DDListBox( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 );
// Low-level drag and drop // Low-level drag and drop
@ -89,7 +89,7 @@ public:
class DDIconView : public <a href="ntqiconview.html">TQIconView</a> class DDIconView : public <a href="ntqiconview.html">TQIconView</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
DDIconView( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) : DDIconView( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0, WFlags f = 0 ) :
<a href="ntqiconview.html">TQIconView</a>( parent, name, f ) {} <a href="ntqiconview.html">TQIconView</a>( parent, name, f ) {}

@ -53,7 +53,7 @@ if your machine is set up to play audio.
#include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt; #include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
class SoundPlayer : public <a href="ntqmainwindow.html">TQMainWindow</a> { class SoundPlayer : public <a href="ntqmainwindow.html">TQMainWindow</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
SoundPlayer(); SoundPlayer();

@ -56,7 +56,7 @@ body { background: #ffffff; color: black; }
class CustomEdit : public <a href="ntqlineedit.html">TQLineEdit</a> class CustomEdit : public <a href="ntqlineedit.html">TQLineEdit</a>
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString upperLine READ upperLine WRITE setUpperLine ) Q_PROPERTY( TQString upperLine READ upperLine WRITE setUpperLine )
public: public:
CustomEdit( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CustomEdit( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
@ -71,7 +71,7 @@ class CustomEdit : public <a href="ntqlineedit.html">TQLineEdit</a>
class FormDialog : public <a href="ntqdialog.html">TQDialog</a> class FormDialog : public <a href="ntqdialog.html">TQDialog</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
FormDialog(); FormDialog();
~FormDialog(); ~FormDialog();

@ -55,7 +55,7 @@ body { background: #ffffff; color: black; }
class FormDialog : public <a href="ntqdialog.html">TQDialog</a> class FormDialog : public <a href="ntqdialog.html">TQDialog</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
FormDialog(); FormDialog();
~FormDialog(); ~FormDialog();

@ -53,7 +53,7 @@ body { background: #ffffff; color: black; }
class StatusPicker : public <a href="ntqcombobox.html">TQComboBox</a> class StatusPicker : public <a href="ntqcombobox.html">TQComboBox</a>
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int statusid READ statusId WRITE setStatusId ) Q_PROPERTY( int statusid READ statusId WRITE setStatusId )
public: public:
StatusPicker( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); StatusPicker( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
@ -66,7 +66,7 @@ class StatusPicker : public <a href="ntqcombobox.html">TQComboBox</a>
class CustomSqlEditorFactory : public <a href="ntqsqleditorfactory.html">TQSqlEditorFactory</a> class CustomSqlEditorFactory : public <a href="ntqsqleditorfactory.html">TQSqlEditorFactory</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
<a href="ntqwidget.html">TQWidget</a> *createEditor( <a href="ntqwidget.html">TQWidget</a> *parent, const <a href="ntqsqlfield.html">TQSqlField</a> *field ); <a href="ntqwidget.html">TQWidget</a> *createEditor( <a href="ntqwidget.html">TQWidget</a> *parent, const <a href="ntqsqlfield.html">TQSqlField</a> *field );
}; };

@ -55,7 +55,7 @@ body { background: #ffffff; color: black; }
class StatusPicker : public <a href="ntqcombobox.html">TQComboBox</a> class StatusPicker : public <a href="ntqcombobox.html">TQComboBox</a>
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int statusid READ statusId WRITE setStatusId ) Q_PROPERTY( int statusid READ statusId WRITE setStatusId )
public: public:
StatusPicker( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); StatusPicker( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
@ -68,7 +68,7 @@ private:
class CustomTable : public <a href="ntqdatatable.html">TQDataTable</a> class CustomTable : public <a href="ntqdatatable.html">TQDataTable</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CustomTable( CustomTable(
<a href="ntqsqlcursor.html">TQSqlCursor</a> *cursor, bool autoPopulate = FALSE, <a href="ntqsqlcursor.html">TQSqlCursor</a> *cursor, bool autoPopulate = FALSE,
@ -82,7 +82,7 @@ public:
class CustomSqlEditorFactory : public <a href="ntqsqleditorfactory.html">TQSqlEditorFactory</a> class CustomSqlEditorFactory : public <a href="ntqsqleditorfactory.html">TQSqlEditorFactory</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
<a href="ntqwidget.html">TQWidget</a> *createEditor( <a href="ntqwidget.html">TQWidget</a> *parent, const <a href="ntqsqlfield.html">TQSqlField</a> *field ); <a href="ntqwidget.html">TQWidget</a> *createEditor( <a href="ntqwidget.html">TQWidget</a> *parent, const <a href="ntqsqlfield.html">TQSqlField</a> *field );
}; };

@ -1117,7 +1117,7 @@ differences.
<pre> class FormDialog : public <a href="ntqdialog.html">TQDialog</a> <pre> class FormDialog : public <a href="ntqdialog.html">TQDialog</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
FormDialog(); FormDialog();
~FormDialog(); ~FormDialog();
@ -1216,7 +1216,7 @@ we will only cover the differences here. The full source is in <a href="sql-over
<pre> class CustomEdit : public <a href="ntqlineedit.html">TQLineEdit</a> <pre> class CustomEdit : public <a href="ntqlineedit.html">TQLineEdit</a>
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString upperLine READ upperLine WRITE setUpperLine ) Q_PROPERTY( TQString upperLine READ upperLine WRITE setUpperLine )
public: public:
CustomEdit( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CustomEdit( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
@ -1297,7 +1297,7 @@ can use a custom editor.
<pre> class StatusPicker : public <a href="ntqcombobox.html">TQComboBox</a> <pre> class StatusPicker : public <a href="ntqcombobox.html">TQComboBox</a>
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int statusid READ statusId WRITE setStatusId ) Q_PROPERTY( int statusid READ statusId WRITE setStatusId )
public: public:
StatusPicker( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); StatusPicker( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
@ -1314,7 +1314,7 @@ from the combobox's indexes so we create a <a href="ntqmap.html">TQMap</a> to ma
to/from the statusids that we will list in the combobox. to/from the statusids that we will list in the combobox.
<p> <pre> class CustomSqlEditorFactory : public <a href="ntqsqleditorfactory.html">TQSqlEditorFactory</a> <p> <pre> class CustomSqlEditorFactory : public <a href="ntqsqleditorfactory.html">TQSqlEditorFactory</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
<a href="ntqwidget.html">TQWidget</a> *createEditor( <a href="ntqwidget.html">TQWidget</a> *parent, const <a href="ntqsqlfield.html">TQSqlField</a> *field ); <a href="ntqwidget.html">TQWidget</a> *createEditor( <a href="ntqwidget.html">TQWidget</a> *parent, const <a href="ntqsqlfield.html">TQSqlField</a> *field );
}; };
@ -1376,7 +1376,7 @@ to subclass TQDataTable and reimplement the paintField() function.
<pre> class CustomTable : public <a href="ntqdatatable.html">TQDataTable</a> <pre> class CustomTable : public <a href="ntqdatatable.html">TQDataTable</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CustomTable( CustomTable(
<a href="ntqsqlcursor.html">TQSqlCursor</a> *cursor, bool autoPopulate = FALSE, <a href="ntqsqlcursor.html">TQSqlCursor</a> *cursor, bool autoPopulate = FALSE,

@ -74,7 +74,7 @@ private:
class Table : public <a href="ntqtable.html">TQTable</a> class Table : public <a href="ntqtable.html">TQTable</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Table(); Table();

@ -46,7 +46,7 @@ body { background: #ffffff; color: black; }
class CannonField : public <a href="ntqwidget.html">TQWidget</a> class CannonField : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -48,7 +48,7 @@ class TQSlider;
class LCDRange : public <a href="ntqvbox.html">TQVBox</a> class LCDRange : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -179,7 +179,7 @@ TQRect <a name="f65"></a>CannonField::shotRect() const
double y = y0 + vely*time - 0.5*gravity*time*time; double y = y0 + vely*time - 0.5*gravity*time*time;
<a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 ); <a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 );
r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) );
return r; return r;
} }

@ -49,7 +49,7 @@ class TQTimer;
class CannonField : public <a href="ntqwidget.html">TQWidget</a> class CannonField : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -48,7 +48,7 @@ class TQSlider;
class LCDRange : public <a href="ntqvbox.html">TQVBox</a> class LCDRange : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -214,7 +214,7 @@ TQRect <a name="f84"></a>CannonField::shotRect() const
double y = y0 + vely*time - 0.5*gravity*time*time; double y = y0 + vely*time - 0.5*gravity*time*time;
<a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 ); <a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 );
r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) );
return r; return r;
} }

@ -49,7 +49,7 @@ class TQTimer;
class CannonField : public <a href="ntqwidget.html">TQWidget</a> class CannonField : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -49,7 +49,7 @@ class TQLabel;
class LCDRange : public <a href="ntqvbox.html">TQVBox</a> class LCDRange : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
LCDRange( const char *s, TQWidget *parent=0, LCDRange( const char *s, TQWidget *parent=0,

@ -240,7 +240,7 @@ TQRect <a name="f106"></a>CannonField::shotRect() const
double y = y0 + vely*time - 0.5*gravity*time*time; double y = y0 + vely*time - 0.5*gravity*time*time;
<a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 ); <a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 );
r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) );
return r; return r;
} }

@ -49,7 +49,7 @@ class TQTimer;
class CannonField : public <a href="ntqwidget.html">TQWidget</a> class CannonField : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -54,7 +54,7 @@ class CannonField;
class GameBoard : public <a href="ntqwidget.html">TQWidget</a> class GameBoard : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
GameBoard( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); GameBoard( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -49,7 +49,7 @@ class TQLabel;
class LCDRange : public <a href="ntqwidget.html">TQWidget</a> class LCDRange : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
LCDRange( const char *s, TQWidget *parent=0, const char *name=0 ); LCDRange( const char *s, TQWidget *parent=0, const char *name=0 );

@ -180,7 +180,7 @@ void CannonField::<a href="ntqwidget.html#mouseMoveEvent">mouseMoveEvent</a>( <a
if ( pnt.<a href="ntqpoint.html#y">y</a>() &gt;= <a href="ntqwidget.html#height">height</a>() ) if ( pnt.<a href="ntqpoint.html#y">y</a>() &gt;= <a href="ntqwidget.html#height">height</a>() )
pnt.<a href="ntqpoint.html#setY">setY</a>( <a href="ntqwidget.html#height">height</a>() - 1 ); pnt.<a href="ntqpoint.html#setY">setY</a>( <a href="ntqwidget.html#height">height</a>() - 1 );
double rad = atan(((double)<a href="ntqwidget.html#rect">rect</a>().bottom()-pnt.<a href="ntqpoint.html#y">y</a>())/pnt.<a href="ntqpoint.html#x">x</a>()); double rad = atan(((double)<a href="ntqwidget.html#rect">rect</a>().bottom()-pnt.<a href="ntqpoint.html#y">y</a>())/pnt.<a href="ntqpoint.html#x">x</a>());
setAngle( qRound ( rad*180/3.14159265 ) ); setAngle( tqRound ( rad*180/3.14159265 ) );
} }
@ -279,7 +279,7 @@ TQRect <a name="f134"></a>CannonField::shotRect() const
double y = y0 + vely*time - 0.5*gravity*time*time; double y = y0 + vely*time - 0.5*gravity*time*time;
<a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 ); <a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 );
r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) );
return r; return r;
} }

@ -49,7 +49,7 @@ class TQTimer;
class CannonField : public <a href="ntqwidget.html">TQWidget</a> class CannonField : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -54,7 +54,7 @@ class CannonField;
class GameBoard : public <a href="ntqwidget.html">TQWidget</a> class GameBoard : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
GameBoard( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); GameBoard( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -49,7 +49,7 @@ class TQLabel;
class LCDRange : public <a href="ntqwidget.html">TQWidget</a> class LCDRange : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
LCDRange( const char *s, TQWidget *parent=0, const char *name=0 ); LCDRange( const char *s, TQWidget *parent=0, const char *name=0 );

@ -48,7 +48,7 @@ class TQSlider;
class LCDRange : public <a href="ntqvbox.html">TQVBox</a> class LCDRange : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -46,7 +46,7 @@ body { background: #ffffff; color: black; }
class CannonField : public <a href="ntqwidget.html">TQWidget</a> class CannonField : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -48,7 +48,7 @@ class TQSlider;
class LCDRange : public <a href="ntqvbox.html">TQVBox</a> class LCDRange : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -46,7 +46,7 @@ body { background: #ffffff; color: black; }
class CannonField : public <a href="ntqwidget.html">TQWidget</a> class CannonField : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -48,7 +48,7 @@ class TQSlider;
class LCDRange : public <a href="ntqvbox.html">TQVBox</a> class LCDRange : public <a href="ntqvbox.html">TQVBox</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -58,7 +58,7 @@ file separated onto different tabs.
class TabDialog : public <a href="ntqtabdialog.html">TQTabDialog</a> class TabDialog : public <a href="ntqtabdialog.html">TQTabDialog</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
TabDialog( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name, const <a href="ntqstring.html">TQString</a> &amp;_filename ); TabDialog( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name, const <a href="ntqstring.html">TQString</a> &amp;_filename );

@ -63,7 +63,7 @@ beginning, without even having to think about design patterns.
beyond the compiled language's facilities. It does so by generating beyond the compiled language's facilities. It does so by generating
additional C++ code which can be compiled by any standard C++ compiler. additional C++ code which can be compiled by any standard C++ compiler.
The <tt>moc</tt> reads C++ source files. If it finds one or more class The <tt>moc</tt> reads C++ source files. If it finds one or more class
declarations that contain the "Q_OBJECT" macro, it produces another C++ declarations that contain the "TQ_OBJECT" macro, it produces another C++
source file which contains the meta object code for those classes. The source file which contains the meta object code for those classes. The
C++ source file generated by the <tt>moc</tt> must be compiled and C++ source file generated by the <tt>moc</tt> must be compiled and
linked with the implementation of the class (or it can be linked with the implementation of the class (or it can be

@ -2141,7 +2141,7 @@ class TQTabWidget;
class Themes: public <a href="ntqmainwindow.html">TQMainWindow</a> class Themes: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Themes( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = WType_TopLevel ); Themes( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0, WFlags f = WType_TopLevel );

@ -67,7 +67,7 @@ class TQLabel;
class TicTacButton : public <a href="ntqpushbutton.html">TQPushButton</a> class TicTacButton : public <a href="ntqpushbutton.html">TQPushButton</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
TicTacButton( <a href="ntqwidget.html">TQWidget</a> *parent ); TicTacButton( <a href="ntqwidget.html">TQWidget</a> *parent );
enum Type { Blank, Circle, Cross }; enum Type { Blank, Circle, Cross };
@ -98,7 +98,7 @@ typedef TQMemArray&lt;int&gt; TicTacArray;
class TicTacGameBoard : public <a href="ntqwidget.html">TQWidget</a> class TicTacGameBoard : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
TicTacGameBoard( int n, TQWidget *parent=0, const char *name=0 ); TicTacGameBoard( int n, TQWidget *parent=0, const char *name=0 );
~TicTacGameBoard(); ~TicTacGameBoard();
@ -131,7 +131,7 @@ private:
class TicTacToe : public <a href="ntqwidget.html">TQWidget</a> class TicTacToe : public <a href="ntqwidget.html">TQWidget</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
TicTacToe( int boardSize=3, TQWidget *parent=0, const char *name=0 ); TicTacToe( int boardSize=3, TQWidget *parent=0, const char *name=0 );
private slots: private slots:

@ -89,7 +89,7 @@ single-threaded application without blocking the user interface.
class Mandelbrot : public <a href="ntqobject.html">TQObject</a> class Mandelbrot : public <a href="ntqobject.html">TQObject</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> // required for signals/slots <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> // required for signals/slots
public: public:
Mandelbrot( <a href="ntqobject.html">TQObject</a> *parent=0, const char *name ); Mandelbrot( <a href="ntqobject.html">TQObject</a> *parent=0, const char *name );
... ...

@ -66,7 +66,7 @@ protected:
class TellMe : public <a href="ntqwidget.html">TQWidget</a> class TellMe : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
TellMe( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0 ); TellMe( <a href="ntqwidget.html">TQWidget</a> * parent = 0, const char * name = 0 );
~TellMe(); ~TellMe();

@ -50,7 +50,7 @@ Implementation:
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt; #include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
class Trivial : public <a href="qnpwidget.html">TQNPWidget</a> { class Trivial : public <a href="qnpwidget.html">TQNPWidget</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
void mouseReleaseEvent(TQMouseEvent* event) void mouseReleaseEvent(TQMouseEvent* event)
{ {
@ -68,7 +68,7 @@ public:
}; };
class TrivialInstance : public <a href="qnpinstance.html">TQNPInstance</a> { class TrivialInstance : public <a href="qnpinstance.html">TQNPInstance</a> {
Q_OBJECT TQ_OBJECT
public: public:
<a href="qnpwidget.html">TQNPWidget</a>* newWindow() <a href="qnpwidget.html">TQNPWidget</a>* newWindow()
{ {

@ -75,11 +75,11 @@ header file has changed, fewer files need to be recompiled. It can
often speed up big compilations by a factor of two or more. often speed up big compilations by a factor of two or more.
<p> <pre> class LCDRange : public <a href="ntqvbox.html">TQVBox</a> <p> <pre> class LCDRange : public <a href="ntqvbox.html">TQVBox</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
</pre> </pre>
<p> Note the Q_OBJECT. This macro must be included in <em>all</em> classes that <p> Note the TQ_OBJECT. This macro must be included in <em>all</em> classes that
contain signals and/or slots. If you are curious, it defines the contain signals and/or slots. If you are curious, it defines the
functions that are implemented in the functions that are implemented in the
<a href="metaobjects.html">meta object file</a>. <a href="metaobjects.html">meta object file</a>.

@ -88,7 +88,7 @@ function using <a href="ntqapplication.html#qInstallMsgHandler">::qInstallMsgHan
<p> <pre> class CannonField : public <a href="ntqwidget.html">TQWidget</a> <p> <pre> class CannonField : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); CannonField( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
</pre> </pre>

@ -185,7 +185,7 @@ the paintEvent() from the previous chapter.
double y = y0 + vely*time - 0.5*gravity*time*time; double y = y0 + vely*time - 0.5*gravity*time*time;
<a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 ); <a href="ntqrect.html">TQRect</a> r = TQRect( 0, 0, 6, 6 );
<a name="x2371"></a> r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( qRound(x), height() - 1 - qRound(y) ) ); <a name="x2371"></a> r.<a href="ntqrect.html#moveCenter">moveCenter</a>( TQPoint( tqRound(x), height() - 1 - tqRound(y) ) );
return r; return r;
} }
</pre> </pre>
@ -201,8 +201,8 @@ point, we construct a <a href="ntqrect.html">TQRect</a> with size 6x6 and move i
the point calculated above. In the same operation we convert the the point calculated above. In the same operation we convert the
point into the widget's coordinate system (see <a href="coordsys.html">The point into the widget's coordinate system (see <a href="coordsys.html">The
Coordinate System</a>). Coordinate System</a>).
<p> The qRound() function is an inline function defined in ntqglobal.h (included <p> The tqRound() function is an inline function defined in ntqglobal.h (included
by all other TQt header files). qRound() rounds a double to the closest by all other TQt header files). tqRound() rounds a double to the closest
integer. integer.
<p> <h3> <a href="t11-main-cpp.html">t11/main.cpp</a> <p> <h3> <a href="t11-main-cpp.html">t11/main.cpp</a>
</h3> </h3>

@ -59,7 +59,7 @@ implementation.
definition. definition.
<p> <pre> class LCDRange : public <a href="ntqvbox.html">TQVBox</a> <p> <pre> class LCDRange : public <a href="ntqvbox.html">TQVBox</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); LCDRange( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
LCDRange( const char *s, TQWidget *parent=0, LCDRange( const char *s, TQWidget *parent=0,

@ -224,7 +224,7 @@ which was last seen as MyWidget.
class GameBoard : public <a href="ntqwidget.html">TQWidget</a> class GameBoard : public <a href="ntqwidget.html">TQWidget</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
GameBoard( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); GameBoard( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );

@ -121,7 +121,7 @@ coordinate system.
<a name="x2425"></a> if ( pnt.<a href="ntqpoint.html#y">y</a>() &gt;= <a href="ntqwidget.html#height">height</a>() ) <a name="x2425"></a> if ( pnt.<a href="ntqpoint.html#y">y</a>() &gt;= <a href="ntqwidget.html#height">height</a>() )
<a name="x2423"></a> pnt.<a href="ntqpoint.html#setY">setY</a>( <a href="ntqwidget.html#height">height</a>() - 1 ); <a name="x2423"></a> pnt.<a href="ntqpoint.html#setY">setY</a>( <a href="ntqwidget.html#height">height</a>() - 1 );
double rad = atan(((double)<a href="ntqwidget.html#rect">rect</a>().bottom()-pnt.<a href="ntqpoint.html#y">y</a>())/pnt.<a href="ntqpoint.html#x">x</a>()); double rad = atan(((double)<a href="ntqwidget.html#rect">rect</a>().bottom()-pnt.<a href="ntqpoint.html#y">y</a>())/pnt.<a href="ntqpoint.html#x">x</a>());
setAngle( qRound ( rad*180/3.14159265 ) ); setAngle( tqRound ( rad*180/3.14159265 ) );
} }
</pre> </pre>
<p> This is another TQt event handler. It is called when the user already <p> This is another TQt event handler. It is called when the user already

@ -42,7 +42,7 @@ conventional document-centric style.
<pre> class ChartForm: public <a href="ntqmainwindow.html">TQMainWindow</a> <pre> class ChartForm: public <a href="ntqmainwindow.html">TQMainWindow</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
enum { MAX_ELEMENTS = 100 }; enum { MAX_ELEMENTS = 100 };
enum { MAX_RECENTFILES = 9 }; // Must not exceed 9 enum { MAX_RECENTFILES = 9 }; // Must not exceed 9
@ -110,7 +110,7 @@ conventional document-centric style.
}; };
</pre> </pre>
<p> We create a <tt>ChartForm</tt> subclass of <a href="ntqmainwindow.html">TQMainWindow</a>. Our subclass uses <p> We create a <tt>ChartForm</tt> subclass of <a href="ntqmainwindow.html">TQMainWindow</a>. Our subclass uses
the <a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> macro to support TQt's <a href="signalsandslots.html">signals and slots</a> mechanism. the <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a> macro to support TQt's <a href="signalsandslots.html">signals and slots</a> mechanism.
<p> The public interface is very small; the type of chart being displayed <p> The public interface is very small; the type of chart being displayed
can be retrieved, the chart can be marked 'changed' (so that the user can be retrieved, the chart can be marked 'changed' (so that the user
will be prompted to save on exit), and the chart can be asked to draw will be prompted to save on exit), and the chart can be asked to draw

@ -237,7 +237,7 @@ with this text item, and provided a getter and setter for this value.
<pre> class CanvasView : public <a href="qcanvasview.html">TQCanvasView</a> <pre> class CanvasView : public <a href="qcanvasview.html">TQCanvasView</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
CanvasView( <a href="ntqcanvas.html">TQCanvas</a> *canvas, ElementVector *elements, CanvasView( <a href="ntqcanvas.html">TQCanvas</a> *canvas, ElementVector *elements,
<a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = "canvas view", <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = "canvas view",

@ -42,7 +42,7 @@ enter label text and choose a label color for each label.
<pre> class SetDataForm: public <a href="ntqdialog.html">TQDialog</a> <pre> class SetDataForm: public <a href="ntqdialog.html">TQDialog</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
SetDataForm( ElementVector *elements, int decimalPlaces, SetDataForm( ElementVector *elements, int decimalPlaces,
<a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = "set data form", <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = "set data form",

@ -41,7 +41,7 @@ apply to all data sets in one place.
<pre> class OptionsForm : public <a href="ntqdialog.html">TQDialog</a> <pre> class OptionsForm : public <a href="ntqdialog.html">TQDialog</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
OptionsForm( <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = "options form", OptionsForm( <a href="ntqwidget.html">TQWidget</a>* parent = 0, const char* name = "options form",
bool modal = FALSE, WFlags f = 0 ); bool modal = FALSE, WFlags f = 0 );

@ -59,7 +59,7 @@ class TQLabel;
class Wizard : public <a href="ntqwizard.html">TQWizard</a> class Wizard : public <a href="ntqwizard.html">TQWizard</a>
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
Wizard( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); Wizard( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -54,7 +54,7 @@ class TQLabel;
class Wizard : public <a href="ntqwizard.html">TQWizard</a> class Wizard : public <a href="ntqwizard.html">TQWizard</a>
{ {
Q_OBJECT TQ_OBJECT
public: public:
Wizard( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 ); Wizard( <a href="ntqwidget.html">TQWidget</a> *parent = 0, const char *name = 0 );

@ -79,7 +79,7 @@ public:
class XFormControl : public <a href="ntqvbox.html">TQVBox</a>, public ModeNames class XFormControl : public <a href="ntqvbox.html">TQVBox</a>, public ModeNames
{ {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a> <a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public: public:
XFormControl( const <a href="ntqfont.html">TQFont</a> &amp;initialFont, TQWidget *parent=0, const char *name=0 ); XFormControl( const <a href="ntqfont.html">TQFont</a> &amp;initialFont, TQWidget *parent=0, const char *name=0 );
~XFormControl() {} ~XFormControl() {}
@ -123,7 +123,7 @@ private:
class ShowXForm : public <a href="ntqwidget.html">TQWidget</a>, public ModeNames class ShowXForm : public <a href="ntqwidget.html">TQWidget</a>, public ModeNames
{ {
Q_OBJECT TQ_OBJECT
public: public:
ShowXForm( const <a href="ntqfont.html">TQFont</a> &amp;f, TQWidget *parent=0, const char *name=0 ); ShowXForm( const <a href="ntqfont.html">TQFont</a> &amp;f, TQWidget *parent=0, const char *name=0 );
~ShowXForm() {} ~ShowXForm() {}
@ -474,7 +474,7 @@ void <a name="f394"></a>ShowXForm::showIt()
class XFormCenter : public <a href="ntqhbox.html">TQHBox</a>, public ModeNames class XFormCenter : public <a href="ntqhbox.html">TQHBox</a>, public ModeNames
{ {
Q_OBJECT TQ_OBJECT
public: public:
XFormCenter( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 ); XFormCenter( <a href="ntqwidget.html">TQWidget</a> *parent=0, const char *name=0 );
public slots: public slots:

@ -154,10 +154,10 @@
The 'Add MOC' button will add in the custom build step for the selected file The 'Add MOC' button will add in the custom build step for the selected file
so that it creates any needed MOC files and it will add these generated so that it creates any needed MOC files and it will add these generated
files to the project. All you need to do to use it is click on a file that files to the project. All you need to do to use it is click on a file that
has \c Q_OBJECT and click the button. has \c TQ_OBJECT and click the button.
You only need to use this button if you added a file that has \c You only need to use this button if you added a file that has \c
Q_OBJECT in it by hand, you don't need to use this if you used any TQ_OBJECT in it by hand, you don't need to use this if you used any
of the previously mentioned buttons. It can also be invoked by using of the previously mentioned buttons. It can also be invoked by using
the Ctrl+Shift+M key combination in Visual Studio. the Ctrl+Shift+M key combination in Visual Studio.

@ -116,7 +116,7 @@ like this:
.in +4 .in +4
.nf .nf
class YourClass : public QObject { class YourClass : public QObject {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( ... ) Q_PROPERTY( ... )
Q_CLASSINFO( ... ) Q_CLASSINFO( ... )
@ -215,7 +215,7 @@ example:
.in +4 .in +4
.nf .nf
class SomeTemplate<int> : public QFrame { class SomeTemplate<int> : public QFrame {
Q_OBJECT TQ_OBJECT
.... ....
signals: signals:
void bugInMocDetected( int ); void bugInMocDetected( int );
@ -255,7 +255,7 @@ better alternative. Here is an example of illegal syntax:
.in +4 .in +4
.nf .nf
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
... ...
public slots: public slots:
// illegal // illegal
@ -271,7 +271,7 @@ You can work around this restriction like this:
typedef void (*ApplyFunctionType)( List *, void * ); typedef void (*ApplyFunctionType)( List *, void * );
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
... ...
public slots: public slots:
void apply( ApplyFunctionType, char * ); void apply( ApplyFunctionType, char * );
@ -296,7 +296,7 @@ sections instead. Here is an example of the illegal syntax:
.in +4 .in +4
.nf .nf
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
... ...
signals: signals:
friend class ClassTemplate<char>; // illegal friend class ClassTemplate<char>; // illegal
@ -358,7 +358,7 @@ Here's an example:
.in +4 .in +4
.nf .nf
class A { class A {
Q_OBJECT TQ_OBJECT
public: public:
class B { class B {
public slots: // illegal public slots: // illegal
@ -389,7 +389,7 @@ sections, where they belong. Here is an example of the illegal syntax:
.in +4 .in +4
.nf .nf
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
public slots: public slots:
SomeClass( QObject *parent, const char *name ) SomeClass( QObject *parent, const char *name )
: QObject( parent, name ) {} // illegal : QObject( parent, name ) {} // illegal
@ -410,7 +410,7 @@ illegal syntax:
.in +4 .in +4
.nf .nf
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
public: public:
... ...
// illegal // illegal
@ -425,12 +425,12 @@ public:
.in -4 .in -4
.PP .PP
Work around this limitation by declaring all properties at the Work around this limitation by declaring all properties at the
beginning of the class declaration, right after Q_OBJECT: beginning of the class declaration, right after TQ_OBJECT:
.PP .PP
.in +4 .in +4
.nf .nf
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) Q_PROPERTY( Priority priority READ priority WRITE setPriority )
Q_ENUMS( Priority ) Q_ENUMS( Priority )
public: public:

@ -409,7 +409,7 @@ Inherits QObject.
.BI "void \fBQ_ASSERT\fR ( bool test )" .BI "void \fBQ_ASSERT\fR ( bool test )"
.br .br
.ti -1c .ti -1c
.BI "void \fBQ_CHECK_PTR\fR ( void * p )" .BI "void \fBTQ_CHECK_PTR\fR ( void * p )"
.br .br
.ti -1c .ti -1c
.BI "QtMsgHandler \fBqInstallMsgHandler\fR ( QtMsgHandler h )" .BI "QtMsgHandler \fBqInstallMsgHandler\fR ( QtMsgHandler h )"
@ -1705,7 +1705,7 @@ If \fCb\fR is zero, the Q_ASSERT statement will output the following message usi
.fi .fi
.PP .PP
See also qWarning() and Debugging. See also qWarning() and Debugging.
.SH "void Q_CHECK_PTR ( void * p )" .SH "void TQ_CHECK_PTR ( void * p )"
If \fIp\fR is 0, prints a warning message containing the source code file name and line number, saying that the program ran out of memory. If \fIp\fR is 0, prints a warning message containing the source code file name and line number, saying that the program ran out of memory.
.PP .PP
This is really a macro defined in ntqglobal.h. This is really a macro defined in ntqglobal.h.
@ -1717,12 +1717,12 @@ Example:
int *a; int *a;
.br .br
.br .br
Q_CHECK_PTR( a = new int[80] ); // WRONG! TQ_CHECK_PTR( a = new int[80] ); // WRONG!
.br .br
.br .br
a = new (nothrow) int[80]; // Right a = new (nothrow) int[80]; // Right
.br .br
Q_CHECK_PTR( a ); TQ_CHECK_PTR( a );
.br .br
.fi .fi
.PP .PP
@ -1934,7 +1934,7 @@ This function does nothing when Qt is built with \fCQT_NO_DEBUG\fR defined.
.SH "const char * qVersion ()" .SH "const char * qVersion ()"
Returns the Qt version number as a string, for example, "2.3.0" or" 3.0.5". Returns the Qt version number as a string, for example, "2.3.0" or" 3.0.5".
.PP .PP
The \fCQT_VERSION\fR define has the numeric value in the form: 0xmmiibb (m = major, i = minor, b = bugfix). For example, Qt 3.0.5's \fCQT_VERSION\fR is 0x030005. The \fCTQT_VERSION\fR define has the numeric value in the form: 0xmmiibb (m = major, i = minor, b = bugfix). For example, Qt 3.0.5's \fCTQT_VERSION\fR is 0x030005.
.SH "void qWarning ( const char * msg, ... )" .SH "void qWarning ( const char * msg, ... )"
Prints a warning message \fImsg\fR, or calls the message handler (if it has been installed). Prints a warning message \fImsg\fR, or calls the message handler (if it has been installed).
.PP .PP

@ -56,7 +56,7 @@ The functions provided by this class allow an ActiveX control to communicate pro
.br .br
{ {
.br .br
Q_OBJECT TQ_OBJECT
.br .br
Q_PROPERTY( int value READ value WRITE setValue ) Q_PROPERTY( int value READ value WRITE setValue )
.br .br

@ -53,7 +53,7 @@ A QAxObject can be instantiated as an empty object, with the name of the COM obj
.PP .PP
QAxObject is a QObject and can be used as such, e.g. it can be organized in an object hierarchy, receive events and connect to signals and slots. QAxObject is a QObject and can be used as such, e.g. it can be organized in an object hierarchy, receive events and connect to signals and slots.
.PP .PP
\fBWarning:\fR You can subclass QAxObject, but you cannot use the Q_OBJECT macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxObject as a member of the QObject subclass. \fBWarning:\fR You can subclass QAxObject, but you cannot use the TQ_OBJECT macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxObject as a member of the QObject subclass.
.PP .PP
.SH MEMBER FUNCTION DOCUMENTATION .SH MEMBER FUNCTION DOCUMENTATION
.SH "QAxObject::QAxObject ( QObject * parent = 0, const char * name = 0 )" .SH "QAxObject::QAxObject ( QObject * parent = 0, const char * name = 0 )"

@ -60,7 +60,7 @@ A QAxWidget can be instantiated as an empty object, with the name of the ActiveX
.PP .PP
QAxWidget is a QWidget and can be used as such, e.g. it can be organized in a widget hierarchy, receive events or act as an event filter. Standard widget properties, e.g. enabled are supported, but it depends on the ActiveX control to implement support for ambient properties like e.g. palette or font. QAxWidget tries to provide the necessary hints. QAxWidget is a QWidget and can be used as such, e.g. it can be organized in a widget hierarchy, receive events or act as an event filter. Standard widget properties, e.g. enabled are supported, but it depends on the ActiveX control to implement support for ambient properties like e.g. palette or font. QAxWidget tries to provide the necessary hints.
.PP .PP
\fBWarning:\fR You can subclass QAxWidget, but you cannot use the Q_OBJECT macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxWidget as a member of the QObject subclass. \fBWarning:\fR You can subclass QAxWidget, but you cannot use the TQ_OBJECT macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxWidget as a member of the QObject subclass.
.PP .PP
.SH MEMBER FUNCTION DOCUMENTATION .SH MEMBER FUNCTION DOCUMENTATION
.SH "QAxWidget::QAxWidget ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 )" .SH "QAxWidget::QAxWidget ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 )"

@ -56,18 +56,18 @@ Constructs a QByteArray of size \fIsize\fR.
.SH "QByteArray qCompress ( const QByteArray & data )" .SH "QByteArray qCompress ( const QByteArray & data )"
Compresses the array \fIdata\fR and returns the compressed byte array using zlib. Compresses the array \fIdata\fR and returns the compressed byte array using zlib.
.PP .PP
See also qUncompress(). See also tqUncompress().
.SH "QByteArray qCompress ( const uchar * data, int nbytes )" .SH "QByteArray qCompress ( const uchar * data, int nbytes )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function. This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP .PP
Compresses the array \fIdata\fR which is \fInbytes\fR long and returns the compressed byte array. Compresses the array \fIdata\fR which is \fInbytes\fR long and returns the compressed byte array.
.SH "QByteArray qUncompress ( const QByteArray & data )" .SH "QByteArray tqUncompress ( const QByteArray & data )"
Uncompresses the array \fIdata\fR and returns the uncompressed byte array. Uncompresses the array \fIdata\fR and returns the uncompressed byte array.
.PP .PP
Returns an empty QByteArray if the input data was corrupt. Returns an empty QByteArray if the input data was corrupt.
.PP .PP
See also qCompress(). See also qCompress().
.SH "QByteArray qUncompress ( const uchar * data, int nbytes )" .SH "QByteArray tqUncompress ( const uchar * data, int nbytes )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function. This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP .PP
Uncompresses the array \fIdata\fR which is \fInbytes\fR long and returns Uncompresses the array \fIdata\fR which is \fInbytes\fR long and returns

@ -1054,7 +1054,7 @@ Special case I: Returns 0 if \fIstr1\fR and \fIstr2\fR are both 0.
.PP .PP
Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both). Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both).
.PP .PP
See also qstrncmp(), qstricmp(), qstrnicmp(), and Note on character comparisons. See also tqstrncmp(), qstricmp(), qstrnicmp(), and Note on character comparisons.
.SH "char * qstrcpy ( char * dst, const char * src )" .SH "char * qstrcpy ( char * dst, const char * src )"
A safe strcpy() function. A safe strcpy() function.
.PP .PP
@ -1076,12 +1076,12 @@ Special case I: Returns 0 if \fIstr1\fR and \fIstr2\fR are both 0.
.PP .PP
Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both). Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both).
.PP .PP
See also qstrcmp(), qstrncmp(), qstrnicmp(), and Note on character comparisons. See also qstrcmp(), tqstrncmp(), qstrnicmp(), and Note on character comparisons.
.SH "uint qstrlen ( const char * str )" .SH "uint tqstrlen ( const char * str )"
A safe strlen function. A safe strlen function.
.PP .PP
Returns the number of characters that precede the terminating '&#92;0'. or 0 if \fIstr\fR is 0. Returns the number of characters that precede the terminating '&#92;0'. or 0 if \fIstr\fR is 0.
.SH "int qstrncmp ( const char * str1, const char * str2, uint len )" .SH "int tqstrncmp ( const char * str1, const char * str2, uint len )"
A safe strncmp() function. A safe strncmp() function.
.PP .PP
Compares at most \fIlen\fR bytes of \fIstr1\fR and \fIstr2\fR. Compares at most \fIlen\fR bytes of \fIstr1\fR and \fIstr2\fR.
@ -1110,7 +1110,7 @@ Special case I: Returns 0 if \fIstr1\fR and \fIstr2\fR are both 0.
.PP .PP
Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both). Special case II: Returns a random nonzero value if \fIstr1\fR is 0 or \fIstr2\fR is 0 (but not both).
.PP .PP
See also qstrcmp(), qstrncmp(), qstricmp(), and Note on character comparisons. See also qstrcmp(), tqstrncmp(), qstricmp(), and Note on character comparisons.
.SH "SEE ALSO" .SH "SEE ALSO"
.BR http://doc.trolltech.com/ntqcstring.html .BR http://doc.trolltech.com/ntqcstring.html

@ -372,7 +372,7 @@ Example:
.br .br
f.open( IO_WriteOnly, stderr ); f.open( IO_WriteOnly, stderr );
.br .br
f.writeBlock( msg, qstrlen(msg) ); // write to stderr f.writeBlock( msg, tqstrlen(msg) ); // write to stderr
.br .br
f.close(); f.close();
.br .br

@ -157,7 +157,7 @@ Here is a rough outline of how a QGLWidget subclass might look:
.br .br
{ {
.br .br
Q_OBJECT // must include this if you use Qt signals/slots TQ_OBJECT // must include this if you use Qt signals/slots
.br .br
.br .br
public: public:

@ -209,7 +209,7 @@ QObjects can receive events through event() and filter the events of other objec
.PP .PP
Last but not least, QObject provides the basic timer support in Qt; see QTimer for high-level support for timers. Last but not least, QObject provides the basic timer support in Qt; see QTimer for high-level support for timers.
.PP .PP
Notice that the Q_OBJECT macro is mandatory for any object that implements signals, slots or properties. You also need to run the moc program (Meta Object Compiler) on the source file. We strongly recommend the use of this macro in \fIall\fR subclasses of QObject regardless of whether or not they actually use signals, slots and properties, since failure to do so may lead certain functions to exhibit undefined behaviour. Notice that the TQ_OBJECT macro is mandatory for any object that implements signals, slots or properties. You also need to run the moc program (Meta Object Compiler) on the source file. We strongly recommend the use of this macro in \fIall\fR subclasses of QObject regardless of whether or not they actually use signals, slots and properties, since failure to do so may lead certain functions to exhibit undefined behaviour.
.PP .PP
All Qt widgets inherit QObject. The convenience function isWidgetType() returns whether an object is actually a widget. It is much faster than inherits( "QWidget" ). All Qt widgets inherit QObject. The convenience function isWidgetType() returns whether an object is actually a widget. It is much faster than inherits( "QWidget" ).
.PP .PP
@ -290,7 +290,7 @@ Returns the class name of this object.
.PP .PP
This function is generated by the Meta Object Compiler. This function is generated by the Meta Object Compiler.
.PP .PP
\fBWarning:\fR This function will return the wrong name if the class definition lacks the Q_OBJECT macro. \fBWarning:\fR This function will return the wrong name if the class definition lacks the TQ_OBJECT macro.
.PP .PP
See also name, inherits(), isA(), and isWidgetType(). See also name, inherits(), isA(), and isWidgetType().
.PP .PP
@ -322,7 +322,7 @@ A signal can also be connected to another signal:
.br .br
{ {
.br .br
Q_OBJECT TQ_OBJECT
.br .br
public: public:
.br .br
@ -741,7 +741,7 @@ See also timerEvent(), startTimer(), and killTimer().
.SH "QMetaObject * QObject::metaObject () const\fC [virtual]\fR" .SH "QMetaObject * QObject::metaObject () const\fC [virtual]\fR"
Returns a pointer to the meta object of this object. Returns a pointer to the meta object of this object.
.PP .PP
A meta object contains information about a class that inherits QObject, e.g. class name, superclass name, properties, signals and slots. Every class that contains the Q_OBJECT macro will also have a meta object. A meta object contains information about a class that inherits QObject, e.g. class name, superclass name, properties, signals and slots. Every class that contains the TQ_OBJECT macro will also have a meta object.
.PP .PP
The meta object information is required by the signal/slot connection mechanism and the property system. The functions isA() and inherits() also make use of the meta object. The meta object information is required by the signal/slot connection mechanism and the property system. The functions isA() and inherits() also make use of the meta object.
.SH "const char * QObject::name () const" .SH "const char * QObject::name () const"
@ -870,7 +870,7 @@ Example:
.br .br
{ {
.br .br
Q_OBJECT TQ_OBJECT
.br .br
public: public:
.br .br
@ -924,7 +924,7 @@ See also startTimer(), killTimer(), killTimers(), and event().
Examples: Examples:
.)l biff/biff.cpp, dclock/dclock.cpp, forever/forever.cpp, grapher/grapher.cpp, qmag/qmag.cpp, and xform/xform.cpp. .)l biff/biff.cpp, dclock/dclock.cpp, forever/forever.cpp, grapher/grapher.cpp, qmag/qmag.cpp, and xform/xform.cpp.
.SH "QString QObject::tr ( const char * sourceText, const char * comment )\fC [static]\fR" .SH "QString QObject::tr ( const char * sourceText, const char * comment )\fC [static]\fR"
Returns a translated version of \fIsourceText\fR, or \fIsourceText\fR itself if there is no appropriate translated version. The translation context is QObject with \fIcomment\fR (0 by default). All QObject subclasses using the Q_OBJECT macro automatically have a reimplementation of this function with the subclass name as context. Returns a translated version of \fIsourceText\fR, or \fIsourceText\fR itself if there is no appropriate translated version. The translation context is QObject with \fIcomment\fR (0 by default). All QObject subclasses using the TQ_OBJECT macro automatically have a reimplementation of this function with the subclass name as context.
.PP .PP
\fBWarning:\fR This method is reentrant only if all translators are installed \fIbefore\fR calling this method. Installing or removing translators while performing translations is not supported. Doing so will probably result in crashes or other undesirable behavior. \fBWarning:\fR This method is reentrant only if all translators are installed \fIbefore\fR calling this method. Installing or removing translators while performing translations is not supported. Doing so will probably result in crashes or other undesirable behavior.
.PP .PP

@ -224,7 +224,7 @@ For example, these functions could be changed so that the user provided values f
.br .br
{ {
.br .br
Q_OBJECT TQ_OBJECT
.br .br
public: public:
.br .br

@ -333,7 +333,7 @@ Notice that the latest changes to Mary's salary did not affect the value in the
.PP .PP
There are several ways to find items in the list. The begin() and end() functions return iterators to the beginning and end of the list. The advantage of getting an iterator is that you can move forward or backward from this position by incrementing/decrementing the iterator. The iterator returned by end() points to the item which is one \fIpast\fR the last item in the container. The past-the-end iterator is still associated with the list it belongs to, however it is \fInot\fR dereferenceable; operator*() will not return a well-defined value. If the list is empty(), the iterator returned by begin() will equal the iterator returned by end(). There are several ways to find items in the list. The begin() and end() functions return iterators to the beginning and end of the list. The advantage of getting an iterator is that you can move forward or backward from this position by incrementing/decrementing the iterator. The iterator returned by end() points to the item which is one \fIpast\fR the last item in the container. The past-the-end iterator is still associated with the list it belongs to, however it is \fInot\fR dereferenceable; operator*() will not return a well-defined value. If the list is empty(), the iterator returned by begin() will equal the iterator returned by end().
.PP .PP
Another way to find an item in the list is by using the qFind() algorithm. For example: Another way to find an item in the list is by using the tqFind() algorithm. For example:
.PP .PP
.nf .nf
.br .br
@ -341,7 +341,7 @@ Another way to find an item in the list is by using the qFind() algorithm. For e
.br .br
... ...
.br .br
QValueList<int>::iterator it = qFind( list.begin(), list.end(), 3 ); QValueList<int>::iterator it = tqFind( list.begin(), list.end(), 3 );
.br .br
if ( it != list.end() ) if ( it != list.end() )
.br .br

@ -337,7 +337,7 @@ Whenever inserting, removing or referencing elements in a vector, always make su
.PP .PP
The iterators provided by vector are random access iterators, therefore you can use them with many generic algorithms, for example, algorithms provided by the STL or the QTL. The iterators provided by vector are random access iterators, therefore you can use them with many generic algorithms, for example, algorithms provided by the STL or the QTL.
.PP .PP
Another way to find an element in the vector is by using the std::find() or qFind() algorithms. For example: Another way to find an element in the vector is by using the std::find() or tqFind() algorithms. For example:
.PP .PP
.nf .nf
.br .br
@ -345,7 +345,7 @@ Another way to find an element in the vector is by using the std::find() or qFin
.br .br
... ...
.br .br
QValueVector<int>::const_iterator it = qFind( vec.begin(), vec.end(), 3 ); QValueVector<int>::const_iterator it = tqFind( vec.begin(), vec.end(), 3 );
.br .br
if ( it != vector.end() ) if ( it != vector.end() )
.br .br

@ -42,7 +42,7 @@
\title Meta Object System \title Meta Object System
\keyword meta object \keyword meta object
\keyword Q_OBJECT \keyword TQ_OBJECT
Qt's Meta Object System provides the signals and slots mechanism for Qt's Meta Object System provides the signals and slots mechanism for
inter-object communication, runtime type information, and the dynamic inter-object communication, runtime type information, and the dynamic
@ -51,15 +51,15 @@ property system.
The Meta Object System is based on three things: The Meta Object System is based on three things:
\list 1 \list 1
\i the \l QObject class; \i the \l QObject class;
\i the Q_OBJECT macro inside the private section of the class \i the TQ_OBJECT macro inside the private section of the class
declaration; declaration;
\i the \link moc.html Meta Object Compiler (moc)\endlink. \i the \link moc.html Meta Object Compiler (moc)\endlink.
\endlist \endlist
The \e moc reads a C++ source file. If it finds one or more class The \e moc reads a C++ source file. If it finds one or more class
declarations that contain the Q_OBJECT macro, it produces another C++ declarations that contain the TQ_OBJECT macro, it produces another C++
source file which contains the meta object code for the classes that source file which contains the meta object code for the classes that
contain the Q_OBJECT macro. This generated source file is either contain the TQ_OBJECT macro. This generated source file is either
#included into the class's source file or compiled and linked with the #included into the class's source file or compiled and linked with the
class's implementation. class's implementation.
@ -95,14 +95,14 @@ class.
\endlist \endlist
While it is possible to use QObject as a base class without the While it is possible to use QObject as a base class without the
Q_OBJECT macro and without meta object code, neither signals and slots TQ_OBJECT macro and without meta object code, neither signals and slots
nor the other features described here will be available if the nor the other features described here will be available if the
Q_OBJECT macro is not used. From the meta object system's point of TQ_OBJECT macro is not used. From the meta object system's point of
view, a QObject subclass without meta code is equivalent to its view, a QObject subclass without meta code is equivalent to its
closest ancestor with meta object code. This means for example, that closest ancestor with meta object code. This means for example, that
className() will not return the actual name of your class, but the className() will not return the actual name of your class, but the
class name of this ancestor. We \e strongly recommend that all class name of this ancestor. We \e strongly recommend that all
subclasses of QObject use the Q_OBJECT macro regardless of whether subclasses of QObject use the TQ_OBJECT macro regardless of whether
they actually use signals, slots and properties or not. they actually use signals, slots and properties or not.
*/ */

@ -65,7 +65,7 @@ machine\endlink
\target linkerror \target linkerror
\section1 Link error, complaining about a lack of \c vtbl, \c _vtbl, \c __vtbl or similar \section1 Link error, complaining about a lack of \c vtbl, \c _vtbl, \c __vtbl or similar
This indicates that you've included the Q_OBJECT macro in a class This indicates that you've included the TQ_OBJECT macro in a class
declaration and probably also run the moc, but forgot to link the declaration and probably also run the moc, but forgot to link the
moc-generated object code into your executable. See \link moc.html moc-generated object code into your executable. See \link moc.html
Using the Meta Object Compiler\endlink for details on how to use moc. Using the Meta Object Compiler\endlink for details on how to use moc.

@ -50,9 +50,9 @@ The Meta Object Compiler, moc among friends, is the program which
handles Qt's \link metaobjects.html C++ extensions.\endlink handles Qt's \link metaobjects.html C++ extensions.\endlink
The moc reads a C++ source file. If it finds one or more class The moc reads a C++ source file. If it finds one or more class
declarations that contain the Q_OBJECT macro, it produces another declarations that contain the TQ_OBJECT macro, it produces another
C++ source file which contains the meta object code for the classes C++ source file which contains the meta object code for the classes
that use the Q_OBJECT macro. Among other things, meta object code is that use the TQ_OBJECT macro. Among other things, meta object code is
required for the signal/slot mechanism, runtime type information and required for the signal/slot mechanism, runtime type information and
the dynamic property system. the dynamic property system.
@ -74,7 +74,7 @@ like this:
\code \code
class MyClass : public QObject class MyClass : public QObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyClass( QObject * parent=0, const char * name=0 ); MyClass( QObject * parent=0, const char * name=0 );
~MyClass(); ~MyClass();
@ -100,7 +100,7 @@ function \c setPriority().
\code \code
class MyClass : public QObject class MyClass : public QObject
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) Q_PROPERTY( Priority priority READ priority WRITE setPriority )
Q_ENUMS( Priority ) Q_ENUMS( Priority )
public: public:
@ -121,7 +121,7 @@ attach additional name/value-pairs to the class' meta object:
\code \code
class MyClass : public QObject class MyClass : public QObject
{ {
Q_OBJECT TQ_OBJECT
Q_CLASSINFO( "Author", "Oscar Peterson") Q_CLASSINFO( "Author", "Oscar Peterson")
Q_CLASSINFO( "Status", "Active") Q_CLASSINFO( "Status", "Active")
public: public:
@ -171,7 +171,7 @@ it is not necessary to compile and link it separately, as in Method A.
Method A is the normal method. Method B can be used in cases where you Method A is the normal method. Method B can be used in cases where you
want the implementation file to be self-contained, or in cases where want the implementation file to be self-contained, or in cases where
the Q_OBJECT class is implementation-internal and thus should not be the TQ_OBJECT class is implementation-internal and thus should not be
visible in the header file. visible in the header file.
@ -190,7 +190,7 @@ Makefile that does all the necessary moc handling.
If you want to create your Makefiles yourself, here are some tips on If you want to create your Makefiles yourself, here are some tips on
how to include moc handling. how to include moc handling.
For Q_OBJECT class declarations in header files, here is a useful For TQ_OBJECT class declarations in header files, here is a useful
makefile rule if you only use GNU make: makefile rule if you only use GNU make:
\code \code
@ -214,7 +214,7 @@ You must also remember to add \e moc_NAME.cpp to your SOURCES
care, so you can use .C, .cc, .CC, .cxx or even .c++ if you care, so you can use .C, .cc, .CC, .cxx or even .c++ if you
prefer.) prefer.)
For Q_OBJECT class declarations in implementation (.cpp) files, we For TQ_OBJECT class declarations in implementation (.cpp) files, we
suggest a makefile rule like this: suggest a makefile rule like this:
\code \code
@ -286,7 +286,7 @@ MOC_SKIP_END.
\section1 Diagnostics \section1 Diagnostics
The moc will warn you about a number of dangerous or illegal The moc will warn you about a number of dangerous or illegal
constructs in the Q_OBJECT class declarations. constructs in the TQ_OBJECT class declarations.
If you get linkage errors in the final building phase of your If you get linkage errors in the final building phase of your
program, saying that YourClass::className() is undefined or that program, saying that YourClass::className() is undefined or that
@ -306,7 +306,7 @@ templates cannot have signals or slots. Here is an example:
\code \code
class SomeTemplate<int> : public QFrame { class SomeTemplate<int> : public QFrame {
Q_OBJECT TQ_OBJECT
... ...
signals: signals:
void bugInMocDetected( int ); void bugInMocDetected( int );
@ -341,7 +341,7 @@ Here is an example of illegal syntax:
\code \code
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
... ...
public slots: public slots:
// illegal // illegal
@ -354,7 +354,7 @@ You can work around this restriction like this:
typedef void (*ApplyFunctionType)( List *, void * ); typedef void (*ApplyFunctionType)( List *, void * );
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
... ...
public slots: public slots:
void apply( ApplyFunctionType, char * ); void apply( ApplyFunctionType, char * );
@ -373,7 +373,7 @@ illegal syntax:
\code \code
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
... ...
signals: signals:
friend class ClassTemplate<char>; // WRONG friend class ClassTemplate<char>; // WRONG
@ -437,7 +437,7 @@ Here's an example:
\code \code
class A { class A {
Q_OBJECT TQ_OBJECT
public: public:
class B { class B {
public slots: // WRONG public slots: // WRONG
@ -462,7 +462,7 @@ of the illegal syntax:
\code \code
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
public slots: public slots:
SomeClass( QObject *parent, const char *name ) SomeClass( QObject *parent, const char *name )
: QObject( parent, name ) { } // WRONG : QObject( parent, name ) { } // WRONG
@ -481,7 +481,7 @@ illegal syntax:
\code \code
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
public: public:
... ...
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) // WRONG Q_PROPERTY( Priority priority READ priority WRITE setPriority ) // WRONG
@ -494,11 +494,11 @@ illegal syntax:
\endcode \endcode
Work around this limitation by declaring all properties at the Work around this limitation by declaring all properties at the
beginning of the class declaration, right after Q_OBJECT: beginning of the class declaration, right after TQ_OBJECT:
\code \code
class SomeClass : public QObject { class SomeClass : public QObject {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) Q_PROPERTY( Priority priority READ priority WRITE setPriority )
Q_ENUMS( Priority ) Q_ENUMS( Priority )
public: public:

@ -154,7 +154,7 @@ single-threaded application without blocking the user interface.
class Mandelbrot : public QObject class Mandelbrot : public QObject
{ {
Q_OBJECT // required for signals/slots TQ_OBJECT // required for signals/slots
public: public:
Mandelbrot( QObject *parent=0, const char *name ); Mandelbrot( QObject *parent=0, const char *name );
... ...
@ -290,7 +290,7 @@ functions in use:
\code \code
class MyClass : public QObject class MyClass : public QObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyClass( QObject * parent=0, const char * name=0 ); MyClass( QObject * parent=0, const char * name=0 );
~MyClass(); ~MyClass();
@ -341,7 +341,7 @@ final class declaration including the property related declarations:
\code \code
class MyClass : public QObject class MyClass : public QObject
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( Priority priority READ priority WRITE setPriority ) Q_PROPERTY( Priority priority READ priority WRITE setPriority )
Q_ENUMS( Priority ) Q_ENUMS( Priority )
public: public:
@ -650,7 +650,7 @@ Qt's <tt>moc</tt> (Meta Object Compiler) provides a clean way to go
beyond the compiled language's facilities. It does so by generating beyond the compiled language's facilities. It does so by generating
additional C++ code which can be compiled by any standard C++ compiler. additional C++ code which can be compiled by any standard C++ compiler.
The <tt>moc</tt> reads C++ source files. If it finds one or more class The <tt>moc</tt> reads C++ source files. If it finds one or more class
declarations that contain the "Q_OBJECT" macro, it produces another C++ declarations that contain the "TQ_OBJECT" macro, it produces another C++
source file which contains the meta object code for those classes. The source file which contains the meta object code for those classes. The
C++ source file generated by the <tt>moc</tt> must be compiled and C++ source file generated by the <tt>moc</tt> must be compiled and
linked with the implementation of the class (or it can be linked with the implementation of the class (or it can be

@ -171,7 +171,7 @@ but source compatibility should not be affected if the macro variable
\list \list
\i \c ASSERT becomes \c Q_ASSERT \i \c ASSERT becomes \c Q_ASSERT
\i \c CHECK_PTR becomes \c Q_CHECK_PTR \i \c CHECK_PTR becomes \c TQ_CHECK_PTR
\endlist \endlist
For the record, undocumented macro variables that are not part of the API For the record, undocumented macro variables that are not part of the API
@ -344,10 +344,10 @@ new code.
Additionally, these preprocessor directives have been removed: Additionally, these preprocessor directives have been removed:
\list \list
\i \c {#define strlen qstrlen} \i \c {#define strlen tqstrlen}
\i \c {#define strcpy qstrcpy} \i \c {#define strcpy qstrcpy}
\i \c {#define strcmp qstrcmp} \i \c {#define strcmp qstrcmp}
\i \c {#define strncmp qstrncmp} \i \c {#define strncmp tqstrncmp}
\i \c {#define stricmp qstricmp} \i \c {#define stricmp qstricmp}
\i \c {#define strnicmp qstrnicmp} \i \c {#define strnicmp qstrnicmp}
\endlist \endlist

@ -181,20 +181,20 @@ your data's class.
Naturally, the sorting templates won't work with const iterators. Naturally, the sorting templates won't work with const iterators.
\target qSwap \target tqSwap
\section2 qSwap() \section2 tqSwap()
qSwap() exchanges the values of two variables: tqSwap() exchanges the values of two variables:
\code \code
QString second( "Einstein" ); QString second( "Einstein" );
QString name( "Albert" ); QString name( "Albert" );
qSwap( second, name ); tqSwap( second, name );
\endcode \endcode
\target qCount \target tqCount
\section2 qCount() \section2 tqCount()
The qCount() template function counts the number of occurrences of a The tqCount() template function counts the number of occurrences of a
value within a container. For example: value within a container. For example:
\code \code
QValueList<int> list; QValueList<int> list;
@ -203,13 +203,13 @@ value within a container. For example:
list.push_back( 1 ); list.push_back( 1 );
list.push_back( 2 ); list.push_back( 2 );
int c = 0; int c = 0;
qCount( list.begin(), list.end(), 1, c ); // c == 3 tqCount( list.begin(), list.end(), 1, c ); // c == 3
\endcode \endcode
\target qFind \target tqFind
\section2 qFind() \section2 tqFind()
The qFind() template function finds the first occurrence of a value The tqFind() template function finds the first occurrence of a value
within a container. For example: within a container. For example:
\code \code
QValueList<int> list; QValueList<int> list;
@ -217,23 +217,23 @@ within a container. For example:
list.push_back( 1 ); list.push_back( 1 );
list.push_back( 1 ); list.push_back( 1 );
list.push_back( 2 ); list.push_back( 2 );
QValueListIterator<int> it = qFind( list.begin(), list.end(), 2 ); QValueListIterator<int> it = tqFind( list.begin(), list.end(), 2 );
\endcode \endcode
\target qFill \target tqFill
\section2 qFill() \section2 tqFill()
The qFill() template function fills a range with copies of a value. The tqFill() template function fills a range with copies of a value.
For example: For example:
\code \code
QValueVector<int> vec(3); QValueVector<int> vec(3);
qFill( vec.begin(), vec.end(), 99 ); // vec contains 99, 99, 99 tqFill( vec.begin(), vec.end(), 99 ); // vec contains 99, 99, 99
\endcode \endcode
\target qEqual \target tqEqual
\section2 qEqual() \section2 tqEqual()
The qEqual() template function compares two ranges for equality of The tqEqual() template function compares two ranges for equality of
their elements. Note that the number of elements in each range is not their elements. Note that the number of elements in each range is not
considered, only if the elements in the first range are equal to the considered, only if the elements in the first range are equal to the
corresponding elements in the second range (consequently, both ranges corresponding elements in the second range (consequently, both ranges
@ -251,14 +251,14 @@ must be valid). For example:
v2[4] = 4; v2[4] = 4;
v2[5] = 5; v2[5] = 5;
bool b = qEqual( v1.begin(), v2.end(), v2.begin() ); bool b = tqEqual( v1.begin(), v2.end(), v2.begin() );
// b == TRUE // b == TRUE
\endcode \endcode
\target qCopy \target tqCopy
\section2 qCopy() \section2 tqCopy()
The qCopy() template function copies a range of elements to an The tqCopy() template function copies a range of elements to an
OutputIterator, in this case a QTextOStreamIterator: OutputIterator, in this case a QTextOStreamIterator:
\code \code
QValueList<int> list; QValueList<int> list;
@ -266,7 +266,7 @@ OutputIterator, in this case a QTextOStreamIterator:
list.push_back( 200 ); list.push_back( 200 );
list.push_back( 300 ); list.push_back( 300 );
QTextOStream str( stdout ); QTextOStream str( stdout );
qCopy( list.begin(), list.end(), QTextOStreamIterator(str) ); tqCopy( list.begin(), list.end(), QTextOStreamIterator(str) );
\endcode \endcode
\omit \omit
@ -281,14 +281,14 @@ into the end of a container. For example:
l.push_back( 200 ); l.push_back( 200 );
l.push_back( 300 ); l.push_back( 300 );
QValueVector<int> v; QValueVector<int> v;
qCopy( l.begin(), l.end(), qBackInserter(v) ); tqCopy( l.begin(), l.end(), qBackInserter(v) );
\endcode \endcode
\endomit \endomit
\target qCopyBackward \target tqCopyBackward
\section2 qCopyBackward() \section2 tqCopyBackward()
The qCopyBackward() template function copies a container or a slice of The tqCopyBackward() template function copies a container or a slice of
a container to an OutputIterator, but in reverse order, for example: a container to an OutputIterator, but in reverse order, for example:
\code \code
QValueVector<int> vec(3); QValueVector<int> vec(3);
@ -296,7 +296,7 @@ a container to an OutputIterator, but in reverse order, for example:
vec.push_back( 200 ); vec.push_back( 200 );
vec.push_back( 300 ); vec.push_back( 300 );
QValueVector<int> another; QValueVector<int> another;
qCopyBackward( vec.begin(), vec.end(), another.begin() ); tqCopyBackward( vec.begin(), vec.end(), another.begin() );
// 'another' now contains 100, 200, 300 // 'another' now contains 100, 200, 300
// however the elements are copied one at a time // however the elements are copied one at a time
// in reverse order (300, 200, then 100) // in reverse order (300, 200, then 100)
@ -313,10 +313,10 @@ illustrates this:
QStringList list1, list2; QStringList list1, list2;
list1 << "Weis" << "Ettrich" << "Arnt" << "Sue"; list1 << "Weis" << "Ettrich" << "Arnt" << "Sue";
list2 << "Torben" << "Matthias"; list2 << "Torben" << "Matthias";
qCopy( list2.begin(), list2.end(), list1.begin() ); tqCopy( list2.begin(), list2.end(), list1.begin() );
QValueVector<QString> vec( list1.size(), "Dave" ); QValueVector<QString> vec( list1.size(), "Dave" );
qCopy( list2.begin(), list2.end(), vec.begin() ); tqCopy( list2.begin(), list2.end(), vec.begin() );
\endcode \endcode
At the end of this code fragment, the list list1 contains "Torben", At the end of this code fragment, the list list1 contains "Torben",
@ -327,12 +327,12 @@ overwritten. The vector vec contains "Torben", "Matthias", "Dave" and
If you write new algorithms, consider writing them as template If you write new algorithms, consider writing them as template
functions in order to make them usable with as many containers functions in order to make them usable with as many containers
as possible. In the above example, you could just as easily print out as possible. In the above example, you could just as easily print out
a standard C++ array with qCopy(): a standard C++ array with tqCopy():
\code \code
int arr[] = { 100, 200, 300 }; int arr[] = { 100, 200, 300 };
QTextOStream str( stdout ); QTextOStream str( stdout );
qCopy( arr, arr + 3, QTextOStreamIterator( str ) ); tqCopy( arr, arr + 3, QTextOStreamIterator( str ) );
\endcode \endcode
\section1 Streaming \section1 Streaming

@ -154,12 +154,12 @@
returned by end(). returned by end().
Another way to find an item in the list is by using the \link Another way to find an item in the list is by using the \link
ntqtl.html#qFind qFind()\endlink algorithm. For example: ntqtl.html#qFind tqFind()\endlink algorithm. For example:
\code \code
QValueList<int> list; QValueList<int> list;
... ...
QValueList<int>::iterator it = qFind( list.begin(), list.end(), 3 ); QValueList<int>::iterator it = tqFind( list.begin(), list.end(), 3 );
if ( it != list.end() ) if ( it != list.end() )
// it points to the found item // it points to the found item
\endcode \endcode

@ -197,13 +197,13 @@
QTL\endlink. QTL\endlink.
Another way to find an element in the vector is by using the Another way to find an element in the vector is by using the
std::find() or \link ntqtl.html#qFind qFind()\endlink algorithms. std::find() or \link ntqtl.html#qFind tqFind()\endlink algorithms.
For example: For example:
\code \code
QValueVector<int> vec; QValueVector<int> vec;
... ...
QValueVector<int>::const_iterator it = qFind( vec.begin(), vec.end(), 3 ); QValueVector<int>::const_iterator it = tqFind( vec.begin(), vec.end(), 3 );
if ( it != vector.end() ) if ( it != vector.end() )
// 'it' points to the found element // 'it' points to the found element
\endcode \endcode

@ -130,7 +130,7 @@ A small Qt class might read:
\code \code
class Foo : public QObject class Foo : public QObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
Foo(); Foo();
int value() const { return val; } int value() const { return val; }
@ -149,7 +149,7 @@ signals and slots: this class can tell the outside world that its state
has changed by emitting a signal, \c{valueChanged()}, and it has has changed by emitting a signal, \c{valueChanged()}, and it has
a slot which other objects can send signals to. a slot which other objects can send signals to.
All classes that contain signals or slots must mention Q_OBJECT in All classes that contain signals or slots must mention TQ_OBJECT in
their declaration. their declaration.
Slots are implemented by the application programmer. Slots are implemented by the application programmer.
@ -335,10 +335,10 @@ declarations.
\code \code
{ {
Q_OBJECT TQ_OBJECT
\endcode \endcode
Q_OBJECT is expanded by the preprocessor to declare several member TQ_OBJECT is expanded by the preprocessor to declare several member
functions that are implemented by the moc; if you get compiler errors functions that are implemented by the moc; if you get compiler errors
along the lines of "virtual function QButton::className not defined" along the lines of "virtual function QButton::className not defined"
you have probably forgotten to \link moc.html run the moc\endlink or to you have probably forgotten to \link moc.html run the moc\endlink or to

@ -726,7 +726,7 @@ often speed up big compilations by a factor of two or more.
\skipto LCDRange \skipto LCDRange
\printuntil parent=0 \printuntil parent=0
Note the Q_OBJECT. This macro must be included in \e all classes that Note the TQ_OBJECT. This macro must be included in \e all classes that
contain signals and/or slots. If you are curious, it defines the contain signals and/or slots. If you are curious, it defines the
functions that are implemented in the functions that are implemented in the
\link metaobjects.html meta object file \endlink. \link metaobjects.html meta object file \endlink.
@ -1654,8 +1654,8 @@ the point calculated above. In the same operation we convert the
point into the widget's coordinate system (see \link coordsys.html The point into the widget's coordinate system (see \link coordsys.html The
Coordinate System\endlink). Coordinate System\endlink).
The qRound() function is an inline function defined in ntqglobal.h (included The tqRound() function is an inline function defined in ntqglobal.h (included
by all other Qt header files). qRound() rounds a double to the closest by all other Qt header files). tqRound() rounds a double to the closest
integer. integer.
\section2 \l t11/main.cpp \section2 \l t11/main.cpp

@ -366,7 +366,7 @@ conventional document-centric style.
\printuntil }; \printuntil };
We create a \c ChartForm subclass of QMainWindow. Our subclass uses We create a \c ChartForm subclass of QMainWindow. Our subclass uses
the \c Q_OBJECT macro to support Qt's \link signalsandslots.html the \c TQ_OBJECT macro to support Qt's \link signalsandslots.html
signals and slots\endlink mechanism. signals and slots\endlink mechanism.
The public interface is very small; the type of chart being displayed The public interface is very small; the type of chart being displayed

@ -16,7 +16,7 @@
class TQTimer; class TQTimer;
class AnalogClock : public TQWidget // analog clock widget class AnalogClock : public TQWidget // analog clock widget
{ {
Q_OBJECT TQ_OBJECT
public: public:
AnalogClock( TQWidget *parent=0, const char *name=0 ); AnalogClock( TQWidget *parent=0, const char *name=0 );
void setAutoMask(bool b); void setAutoMask(bool b);

@ -16,7 +16,7 @@ class TQTextEdit;
class ApplicationWindow: public TQMainWindow class ApplicationWindow: public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
ApplicationWindow(); ApplicationWindow();

@ -23,7 +23,7 @@ class TQCheckBox;
class ABCentralWidget : public TQWidget class ABCentralWidget : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
ABCentralWidget( TQWidget *parent, const char *name = 0 ); ABCentralWidget( TQWidget *parent, const char *name = 0 );

@ -19,7 +19,7 @@ class ABCentralWidget;
class ABMainWindow: public TQMainWindow class ABMainWindow: public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
ABMainWindow(); ABMainWindow();

@ -16,7 +16,7 @@ class TQTextEdit;
class ApplicationWindow: public TQMainWindow class ApplicationWindow: public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
ApplicationWindow(); ApplicationWindow();

@ -17,7 +17,7 @@
class Biff : public TQWidget class Biff : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
Biff( TQWidget *parent=0, const char *name=0 ); Biff( TQWidget *parent=0, const char *name=0 );

@ -17,7 +17,7 @@ class TQRadioButton;
class ButtonsGroups : public TQWidget class ButtonsGroups : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
ButtonsGroups( TQWidget *parent = 0, const char *name = 0 ); ButtonsGroups( TQWidget *parent = 0, const char *name = 0 );

@ -17,7 +17,7 @@ public:
class FigureEditor : public TQCanvasView { class FigureEditor : public TQCanvasView {
Q_OBJECT TQ_OBJECT
public: public:
FigureEditor(TQCanvas&, TQWidget* parent=0, const char* name=0, WFlags f=0); FigureEditor(TQCanvas&, TQWidget* parent=0, const char* name=0, WFlags f=0);
@ -36,7 +36,7 @@ private:
}; };
class Main : public TQMainWindow { class Main : public TQMainWindow {
Q_OBJECT TQ_OBJECT
public: public:
Main(TQCanvas&, TQWidget* parent=0, const char* name=0, WFlags f=0); Main(TQCanvas&, TQWidget* parent=0, const char* name=0, WFlags f=0);

@ -12,7 +12,7 @@ class TQPoint;
class CanvasView : public TQCanvasView class CanvasView : public TQCanvasView
{ {
Q_OBJECT TQ_OBJECT
public: public:
CanvasView( TQCanvas *canvas, ElementVector *elements, CanvasView( TQCanvas *canvas, ElementVector *elements,
TQWidget* parent = 0, const char* name = "canvas view", TQWidget* parent = 0, const char* name = "canvas view",

@ -18,7 +18,7 @@ class TQString;
class ChartForm: public TQMainWindow class ChartForm: public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
enum { MAX_ELEMENTS = 100 }; enum { MAX_ELEMENTS = 100 };
enum { MAX_RECENTFILES = 9 }; // Must not exceed 9 enum { MAX_RECENTFILES = 9 }; // Must not exceed 9

@ -17,7 +17,7 @@ class TQVBoxLayout;
class OptionsForm : public TQDialog class OptionsForm : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
OptionsForm( TQWidget* parent = 0, const char* name = "options form", OptionsForm( TQWidget* parent = 0, const char* name = "options form",
bool modal = FALSE, WFlags f = 0 ); bool modal = FALSE, WFlags f = 0 );

@ -13,7 +13,7 @@ class TQVBoxLayout;
class SetDataForm: public TQDialog class SetDataForm: public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
SetDataForm( ElementVector *elements, int decimalPlaces, SetDataForm( ElementVector *elements, int decimalPlaces,
TQWidget *parent = 0, const char *name = "set data form", TQWidget *parent = 0, const char *name = "set data form",

@ -17,7 +17,7 @@ class TQLabel;
class CheckLists : public TQWidget class CheckLists : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
CheckLists( TQWidget *parent = 0, const char *name = 0 ); CheckLists( TQWidget *parent = 0, const char *name = 0 );

@ -15,7 +15,7 @@
class DigitalClock : public TQLCDNumber // digital clock widget class DigitalClock : public TQLCDNumber // digital clock widget
{ {
Q_OBJECT TQ_OBJECT
public: public:
DigitalClock( TQWidget *parent=0, const char *name=0 ); DigitalClock( TQWidget *parent=0, const char *name=0 );

@ -9,7 +9,7 @@ class TQWidgetStack;
class CategoryInterface : public TQObject class CategoryInterface : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
CategoryInterface( TQWidgetStack *s ) : stack( s ) {} CategoryInterface( TQWidgetStack *s ) : stack( s ) {}

@ -24,7 +24,7 @@ class Screen;
class Curve; class Curve;
class DisplayWidget : public TQWidget { class DisplayWidget : public TQWidget {
Q_OBJECT TQ_OBJECT
public: public:
DisplayWidget( TQWidget *parent=0, const char *name=0 ); DisplayWidget( TQWidget *parent=0, const char *name=0 );
@ -51,7 +51,7 @@ private:
}; };
class Screen : public TQFrame { class Screen : public TQFrame {
Q_OBJECT TQ_OBJECT
public: public:
enum { FrameWidth = 3 }; enum { FrameWidth = 3 };
Screen( TQWidget *parent=0, const char *name=0 ); Screen( TQWidget *parent=0, const char *name=0 );
@ -74,7 +74,7 @@ private:
}; };
class Curve : public TQFrame { class Curve : public TQFrame {
Q_OBJECT TQ_OBJECT
enum { FrameWidth = 3 }; enum { FrameWidth = 3 };
public: public:
Curve( TQWidget *parent=0, const char *name=0 ); Curve( TQWidget *parent=0, const char *name=0 );

@ -25,7 +25,7 @@ private:
class DnDDemo : public DnDDemoBase class DnDDemo : public DnDDemoBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
DnDDemo( TQWidget* parent = 0, const char* name = 0 ); DnDDemo( TQWidget* parent = 0, const char* name = 0 );

@ -18,7 +18,7 @@ private:
class IconView : public TQIconView class IconView : public TQIconView
{ {
Q_OBJECT TQ_OBJECT
public: public:
IconView( TQWidget* parent = 0, const char* name = 0 ); IconView( TQWidget* parent = 0, const char* name = 0 );

@ -17,7 +17,7 @@ private:
class ListView : public TQListView class ListView : public TQListView
{ {
Q_OBJECT TQ_OBJECT
public: public:
ListView( TQWidget* parent = 0, const char* name = 0 ); ListView( TQWidget* parent = 0, const char* name = 0 );

@ -42,7 +42,7 @@ class TQBrush;
class StyledButton : public TQButton class StyledButton : public TQButton
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQColor color READ color WRITE setColor ) Q_PROPERTY( TQColor color READ color WRITE setColor )
Q_PROPERTY( TQPixmap pixmap READ pixmap WRITE setPixmap ) Q_PROPERTY( TQPixmap pixmap READ pixmap WRITE setPixmap )

@ -17,7 +17,7 @@ class TQWidgetStack;
class Frame : public TQMainWindow class Frame : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
Frame( TQWidget *parent=0, const char *name=0 ); Frame( TQWidget *parent=0, const char *name=0 );

@ -17,7 +17,7 @@ class GraphWidgetPrivate;
class GraphWidget : public TQWidget class GraphWidget : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GraphWidget( TQWidget *parent=0, const char *name=0 ); GraphWidget( TQWidget *parent=0, const char *name=0 );
~GraphWidget(); ~GraphWidget();

@ -137,7 +137,7 @@ void I18nDemo::newSlot(int id)
"portability across Windows 95/98/NT/2000, Mac OS X, Linux, Solaris, " "portability across Windows 95/98/NT/2000, Mac OS X, Linux, Solaris, "
"HP-UX and many other versions of Unix with X11.</p>" "HP-UX and many other versions of Unix with X11.</p>"
"<p>See <tt>http://www.trolltech.com/qt/</tt> for more " "<p>See <tt>http://www.trolltech.com/qt/</tt> for more "
"information.</p>").arg(QT_VERSION_STR)); "information.</p>").arg(TQT_VERSION_STR));
qApp->removeTranslator(&wrapper->translator); qApp->removeTranslator(&wrapper->translator);

@ -11,7 +11,7 @@ class Wrapper;
class I18nDemo : public TQMainWindow class I18nDemo : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
I18nDemo(TQWidget *, const char * = 0); I18nDemo(TQWidget *, const char * = 0);

@ -19,17 +19,17 @@
#include <ntqmodules.h> #include <ntqmodules.h>
#if defined(QT_MODULE_OPENGL) #if defined(TQT_MODULE_OPENGL)
#include "opengl/glworkspace.h" #include "opengl/glworkspace.h"
#include "opengl/gllandscapeviewer.h" #include "opengl/gllandscapeviewer.h"
#include "opengl/glinfotext.h" #include "opengl/glinfotext.h"
#endif #endif
#if defined(QT_MODULE_CANVAS) #if defined(TQT_MODULE_CANVAS)
#include "qasteroids/toplevel.h" #include "qasteroids/toplevel.h"
#endif #endif
#if defined(QT_MODULE_TABLE) #if defined(TQT_MODULE_TABLE)
#include "widgets/widgetsbase.h" #include "widgets/widgetsbase.h"
#else #else
#include "widgets/widgetsbase_pro.h" #include "widgets/widgetsbase_pro.h"
@ -45,7 +45,7 @@
#include <ntqworkspace.h> #include <ntqworkspace.h>
#include <ntqwidgetstack.h> #include <ntqwidgetstack.h>
#if defined(QT_MODULE_SQL) #if defined(TQT_MODULE_SQL)
#include <ntqsqldatabase.h> #include <ntqsqldatabase.h>
#include "sql/sqlex.h" #include "sql/sqlex.h"
#endif #endif
@ -107,7 +107,7 @@ private:
}; };
#if defined(QT_MODULE_SQL) #if defined(TQT_MODULE_SQL)
class DatabaseCategory : public CategoryInterface class DatabaseCategory : public CategoryInterface
{ {
public: public:
@ -145,7 +145,7 @@ private:
}; };
#endif #endif
#if defined(QT_MODULE_CANVAS) #if defined(TQT_MODULE_CANVAS)
class CanvasCategory : public CategoryInterface class CanvasCategory : public CategoryInterface
{ {
public: public:
@ -187,7 +187,7 @@ private:
}; };
#endif #endif
#if defined(QT_MODULE_OPENGL) #if defined(TQT_MODULE_OPENGL)
class OpenGLCategory : public CategoryInterface class OpenGLCategory : public CategoryInterface
{ {
public: public:
@ -310,7 +310,7 @@ private:
}; };
#if defined(QT_MODULE_CANVAS) #if defined(TQT_MODULE_CANVAS)
class GameCategory : public CategoryInterface class GameCategory : public CategoryInterface
{ {
public: public:
@ -358,11 +358,11 @@ int main( int argc, char **argv )
TQPtrList<CategoryInterface> categories; TQPtrList<CategoryInterface> categories;
categories.append( new WidgetCategory( frame.widgetStack() ) ); categories.append( new WidgetCategory( frame.widgetStack() ) );
#if defined(QT_MODULE_SQL) #if defined(TQT_MODULE_SQL)
categories.append( new DatabaseCategory( frame.widgetStack() ) ); categories.append( new DatabaseCategory( frame.widgetStack() ) );
#endif #endif
categories.append( new CanvasCategory( frame.widgetStack() ) ); categories.append( new CanvasCategory( frame.widgetStack() ) );
#if defined(QT_MODULE_OPENGL) #if defined(TQT_MODULE_OPENGL)
categories.append( new OpenGLCategory( frame.widgetStack() ) ); categories.append( new OpenGLCategory( frame.widgetStack() ) );
#endif #endif
categories.append( new TextCategory( frame.widgetStack() ) ); categories.append( new TextCategory( frame.widgetStack() ) );

@ -20,7 +20,7 @@
class GLBox : public GLControlWidget class GLBox : public GLControlWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -5,7 +5,7 @@
class GLControlWidget : public TQGLWidget class GLControlWidget : public TQGLWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLControlWidget( TQWidget *parent, const char *name = 0, TQGLWidget *share = 0, WFlags f = 0 ); GLControlWidget( TQWidget *parent, const char *name = 0, TQGLWidget *share = 0, WFlags f = 0 );

@ -5,7 +5,7 @@
class GLGear : public GLControlWidget class GLGear : public GLControlWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLGear( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 ); GLGear( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );

@ -5,7 +5,7 @@
class GLLandscape : public TQGLWidget class GLLandscape : public TQGLWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLLandscape( TQWidget * parent = 0, const char * name = 0 ); GLLandscape( TQWidget * parent = 0, const char * name = 0 );

@ -20,7 +20,7 @@
class GLTexobj : public GLControlWidget class GLTexobj : public GLControlWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLTexobj( TQWidget* parent, const char* name = 0, WFlags f = 0 ); GLTexobj( TQWidget* parent, const char* name = 0, WFlags f = 0 );

@ -8,7 +8,7 @@ class TQPrinter;
class GLWorkspace : public TQMainWindow class GLWorkspace : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLWorkspace( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 ); GLWorkspace( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~GLWorkspace(); ~GLWorkspace();

@ -13,7 +13,7 @@
class KALedMeter : public TQFrame class KALedMeter : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
public: public:
KALedMeter( TQWidget *parent ); KALedMeter( TQWidget *parent );

@ -19,7 +19,7 @@ class TQLCDNumber;
class KAstTopLevel : public TQMainWindow class KAstTopLevel : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
KAstTopLevel( TQWidget *parent=0, const char *name=0 ); KAstTopLevel( TQWidget *parent=0, const char *name=0 );
virtual ~KAstTopLevel(); virtual ~KAstTopLevel();

@ -18,7 +18,7 @@
class KAsteroidsView : public TQWidget class KAsteroidsView : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
KAsteroidsView( TQWidget *parent = 0, const char *name = 0 ); KAsteroidsView( TQWidget *parent = 0, const char *name = 0 );
virtual ~KAsteroidsView(); virtual ~KAsteroidsView();

@ -50,7 +50,7 @@
class TQThumbWheel : public TQFrame, public TQRangeControl class TQThumbWheel : public TQFrame, public TQRangeControl
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQThumbWheel( TQWidget *parent=0, const char *name=0 ); TQThumbWheel( TQWidget *parent=0, const char *name=0 );

@ -21,7 +21,7 @@ class TQPopupMenu;
class HelpWindow : public TQMainWindow class HelpWindow : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
HelpWindow( const TQString& home_, const TQString& path, TQWidget* parent = 0, const char *name=0 ); HelpWindow( const TQString& home_, const TQString& path, TQWidget* parent = 0, const char *name=0 );
~HelpWindow(); ~HelpWindow();

@ -20,7 +20,7 @@ class TQTextEdit;
class TextEdit : public TQMainWindow class TextEdit : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
TextEdit( TQWidget *parent = 0, const char *name = 0 ); TextEdit( TQWidget *parent = 0, const char *name = 0 );

@ -71,7 +71,7 @@ private:
class DirectoryView : public TQListView class DirectoryView : public TQListView
{ {
Q_OBJECT TQ_OBJECT
public: public:
DirectoryView( TQWidget *parent = 0, const char *name = 0, bool sdo = FALSE ); DirectoryView( TQWidget *parent = 0, const char *name = 0, bool sdo = FALSE );

@ -121,7 +121,7 @@ static char *find_pattern( char *h, const char *n, ulong hlen )
if ( nlen > hlen ) if ( nlen > hlen )
return 0; return 0;
} while ( qstrncmp( h, n, nlen ) != 0 ); } while ( tqstrncmp( h, n, nlen ) != 0 );
return h + nlen; return h + nlen;
} }

@ -22,7 +22,7 @@ class TQDragObject;
class DropSite: public TQLabel class DropSite: public TQLabel
{ {
Q_OBJECT TQ_OBJECT
public: public:
DropSite( TQWidget * parent = 0, const char * name = 0 ); DropSite( TQWidget * parent = 0, const char * name = 0 );
~DropSite(); ~DropSite();
@ -42,7 +42,7 @@ protected:
}; };
class DragMoviePlayer : public TQObject { class DragMoviePlayer : public TQObject {
Q_OBJECT TQ_OBJECT
TQDragObject* dobj; TQDragObject* dobj;
TQMovie movie; TQMovie movie;
public: public:

@ -130,7 +130,7 @@ DrawThing ourDrawFunctions[] = {
class DrawView : public TQWidget class DrawView : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
DrawView(); DrawView();
~DrawView(); ~DrawView();

@ -21,7 +21,7 @@ class TQToolButton;
class FileMainWindow : public TQMainWindow class FileMainWindow : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
FileMainWindow(); FileMainWindow();

@ -30,7 +30,7 @@ class TQResizeEvent;
class TQtFileIconDrag : public TQIconDrag class TQtFileIconDrag : public TQIconDrag
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQtFileIconDrag( TQWidget * dragSource, const char* name = 0 ); TQtFileIconDrag( TQWidget * dragSource, const char* name = 0 );
@ -53,7 +53,7 @@ private:
class TQtFileIconViewItem; class TQtFileIconViewItem;
class TQtFileIconView : public TQIconView class TQtFileIconView : public TQIconView
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQtFileIconView( const TQString &dir, TQWidget *parent = 0, const char *name = 0 ); TQtFileIconView( const TQString &dir, TQWidget *parent = 0, const char *name = 0 );

@ -11,7 +11,7 @@ class TQPushButton;
class Viewer : public TQWidget class Viewer : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
Viewer(); Viewer();

@ -22,7 +22,7 @@ const int numColors = 120;
class Forever : public TQWidget class Forever : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
Forever( TQWidget *parent=0, const char *name=0 ); Forever( TQWidget *parent=0, const char *name=0 );
protected: protected:

@ -15,7 +15,7 @@
class Hello : public TQWidget class Hello : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
Hello( const char *text, TQWidget *parent=0, const char *name=0 ); Hello( const char *text, TQWidget *parent=0, const char *name=0 );
signals: signals:

@ -10,7 +10,7 @@ class TQPopupMenu;
class HelpDemo : public HelpDemoBase class HelpDemo : public HelpDemoBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
HelpDemo( TQWidget *parent = 0, const char *name = 0 ); HelpDemo( TQWidget *parent = 0, const char *name = 0 );

@ -15,7 +15,7 @@ class TQAssistantClient;
class MainWindow : public TQMainWindow class MainWindow : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
MainWindow(); MainWindow();
~MainWindow(); ~MainWindow();

@ -17,7 +17,7 @@ class TQTable;
class WhatsThis : public TQObject, public TQWhatsThis class WhatsThis : public TQObject, public TQWhatsThis
{ {
Q_OBJECT TQ_OBJECT
public: public:
WhatsThis( TQWidget *w, TQWidget *watch = 0 ); WhatsThis( TQWidget *w, TQWidget *watch = 0 );

@ -21,7 +21,7 @@ class TQPopupMenu;
class HelpWindow : public TQMainWindow class HelpWindow : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
HelpWindow( const TQString& home_, const TQString& path, TQWidget* parent = 0, const char *name=0 ); HelpWindow( const TQString& home_, const TQString& path, TQWidget* parent = 0, const char *name=0 );
~HelpWindow(); ~HelpWindow();

@ -15,7 +15,7 @@
class MyWidget : public TQMainWindow class MyWidget : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyWidget( TQWidget* parent=0, const char* name = 0 ); MyWidget( TQWidget* parent=0, const char* name = 0 );

@ -18,7 +18,7 @@
class ListenDND : public TQObject class ListenDND : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
ListenDND( TQWidget *w ) ListenDND( TQWidget *w )

@ -20,7 +20,7 @@ class TQDragDropEvent;
class DDListBox : public TQListBox class DDListBox : public TQListBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
DDListBox( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ); DDListBox( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
// Low-level drag and drop // Low-level drag and drop
@ -48,7 +48,7 @@ public:
class DDIconView : public TQIconView class DDIconView : public TQIconView
{ {
Q_OBJECT TQ_OBJECT
public: public:
DDIconView( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) : DDIconView( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) :
TQIconView( parent, name, f ) {} TQIconView( parent, name, f ) {}

@ -15,7 +15,7 @@
class LifeWidget : public TQFrame class LifeWidget : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
public: public:
LifeWidget( int s = 10, TQWidget *parent = 0, const char *name = 0 ); LifeWidget( int s = 10, TQWidget *parent = 0, const char *name = 0 );

@ -23,7 +23,7 @@ class TQComboBox;
class LifeTimer : public TQTimer class LifeTimer : public TQTimer
{ {
Q_OBJECT TQ_OBJECT
public: public:
LifeTimer( TQWidget *parent ); LifeTimer( TQWidget *parent );
enum { MAXSPEED = 1000 }; enum { MAXSPEED = 1000 };
@ -39,7 +39,7 @@ private:
class LifeDialog : public TQWidget class LifeDialog : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
LifeDialog( int scale = 10, TQWidget *parent = 0, const char *name = 0 ); LifeDialog( int scale = 10, TQWidget *parent = 0, const char *name = 0 );
public slots: public slots:

@ -17,7 +17,7 @@ class TQComboBox;
class LineEdits : public TQGroupBox class LineEdits : public TQGroupBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
LineEdits( TQWidget *parent = 0, const char *name = 0 ); LineEdits( TQWidget *parent = 0, const char *name = 0 );

@ -20,7 +20,7 @@ class TQButtonGroup;
class ListBoxDemo: public TQWidget class ListBoxDemo: public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
ListBoxDemo(); ListBoxDemo();
~ListBoxDemo(); ~ListBoxDemo();

@ -17,7 +17,7 @@ class TQLabel;
class ListBoxCombo : public TQVBox class ListBoxCombo : public TQVBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
ListBoxCombo( TQWidget *parent = 0, const char *name = 0 ); ListBoxCombo( TQWidget *parent = 0, const char *name = 0 );

@ -79,7 +79,7 @@ protected:
class Folder : public TQObject class Folder : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
Folder( Folder *parent, const TQString &name ); Folder( Folder *parent, const TQString &name );
@ -138,7 +138,7 @@ protected:
class ListViews : public TQSplitter class ListViews : public TQSplitter
{ {
Q_OBJECT TQ_OBJECT
public: public:
ListViews( TQWidget *parent = 0, const char *name = 0 ); ListViews( TQWidget *parent = 0, const char *name = 0 );

@ -22,7 +22,7 @@ class TQMovie;
class MDIWindow: public TQMainWindow class MDIWindow: public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
MDIWindow( TQWidget* parent, const char* name, int wflags ); MDIWindow( TQWidget* parent, const char* name, int wflags );
~MDIWindow(); ~MDIWindow();
@ -47,7 +47,7 @@ private:
class ApplicationWindow: public TQMainWindow class ApplicationWindow: public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
ApplicationWindow(); ApplicationWindow();
~ApplicationWindow(); ~ApplicationWindow();

@ -120,7 +120,7 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
TQPixmap p2( p2_xpm ); TQPixmap p2( p2_xpm );
TQPixmap p3( p3_xpm ); TQPixmap p3( p3_xpm );
TQPopupMenu *print = new TQPopupMenu( this ); TQPopupMenu *print = new TQPopupMenu( this );
Q_CHECK_PTR( print ); TQ_CHECK_PTR( print );
print->insertTearOffHandle(); print->insertTearOffHandle();
print->insertItem( "&Print to printer", this, SLOT(printer()) ); print->insertItem( "&Print to printer", this, SLOT(printer()) );
print->insertItem( "Print to &file", this, SLOT(file()) ); print->insertItem( "Print to &file", this, SLOT(file()) );
@ -129,7 +129,7 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
print->insertItem( "Printer &Setup", this, SLOT(printerSetup()) ); print->insertItem( "Printer &Setup", this, SLOT(printerSetup()) );
TQPopupMenu *file = new TQPopupMenu( this ); TQPopupMenu *file = new TQPopupMenu( this );
Q_CHECK_PTR( file ); TQ_CHECK_PTR( file );
file->insertItem( p1, "&Open", this, SLOT(open()), CTRL+Key_O ); file->insertItem( p1, "&Open", this, SLOT(open()), CTRL+Key_O );
file->insertItem( p2, "&New", this, SLOT(news()), CTRL+Key_N ); file->insertItem( p2, "&New", this, SLOT(news()), CTRL+Key_N );
file->insertItem( p3, "&Save", this, SLOT(save()), CTRL+Key_S ); file->insertItem( p3, "&Save", this, SLOT(save()), CTRL+Key_S );
@ -140,14 +140,14 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q ); file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q );
TQPopupMenu *edit = new TQPopupMenu( this ); TQPopupMenu *edit = new TQPopupMenu( this );
Q_CHECK_PTR( edit ); TQ_CHECK_PTR( edit );
int undoID = edit->insertItem( "&Undo", this, SLOT(undo()) ); int undoID = edit->insertItem( "&Undo", this, SLOT(undo()) );
int redoID = edit->insertItem( "&Redo", this, SLOT(redo()) ); int redoID = edit->insertItem( "&Redo", this, SLOT(redo()) );
edit->setItemEnabled( undoID, FALSE ); edit->setItemEnabled( undoID, FALSE );
edit->setItemEnabled( redoID, FALSE ); edit->setItemEnabled( redoID, FALSE );
TQPopupMenu* options = new TQPopupMenu( this ); TQPopupMenu* options = new TQPopupMenu( this );
Q_CHECK_PTR( options ); TQ_CHECK_PTR( options );
options->insertTearOffHandle(); options->insertTearOffHandle();
options->setCaption("Options"); options->setCaption("Options");
options->insertItem( "&Normal Font", this, SLOT(normal()) ); options->insertItem( "&Normal Font", this, SLOT(normal()) );
@ -171,13 +171,13 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
TQPopupMenu *help = new TQPopupMenu( this ); TQPopupMenu *help = new TQPopupMenu( this );
Q_CHECK_PTR( help ); TQ_CHECK_PTR( help );
help->insertItem( "&About", this, SLOT(about()), CTRL+Key_H ); help->insertItem( "&About", this, SLOT(about()), CTRL+Key_H );
help->insertItem( "About &TQt", this, SLOT(aboutTQt()) ); help->insertItem( "About &TQt", this, SLOT(aboutTQt()) );
// If we used a TQMainWindow we could use its built-in menuBar(). // If we used a TQMainWindow we could use its built-in menuBar().
menu = new TQMenuBar( this ); menu = new TQMenuBar( this );
Q_CHECK_PTR( menu ); TQ_CHECK_PTR( menu );
menu->insertItem( "&File", file ); menu->insertItem( "&File", file );
menu->insertItem( "&Edit", edit ); menu->insertItem( "&Edit", edit );
menu->insertItem( "&Options", options ); menu->insertItem( "&Options", options );
@ -187,7 +187,7 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
TQLabel *msg = new TQLabel( this ); TQLabel *msg = new TQLabel( this );
Q_CHECK_PTR( msg ); TQ_CHECK_PTR( msg );
msg->setText( "A context menu is available.\n" msg->setText( "A context menu is available.\n"
"Invoke it by right-clicking or by" "Invoke it by right-clicking or by"
" pressing the 'context' button." ); " pressing the 'context' button." );
@ -195,7 +195,7 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
msg->setAlignment( AlignCenter ); msg->setAlignment( AlignCenter );
label = new TQLabel( this ); label = new TQLabel( this );
Q_CHECK_PTR( label ); TQ_CHECK_PTR( label );
label->setGeometry( 20, rect().center().y()-20, width()-40, 40 ); label->setGeometry( 20, rect().center().y()-20, width()-40, 40 );
label->setFrameStyle( TQFrame::Box | TQFrame::Raised ); label->setFrameStyle( TQFrame::Box | TQFrame::Raised );
label->setLineWidth( 1 ); label->setLineWidth( 1 );
@ -212,7 +212,7 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
void MenuExample::contextMenuEvent( TQContextMenuEvent * ) void MenuExample::contextMenuEvent( TQContextMenuEvent * )
{ {
TQPopupMenu* contextMenu = new TQPopupMenu( this ); TQPopupMenu* contextMenu = new TQPopupMenu( this );
Q_CHECK_PTR( contextMenu ); TQ_CHECK_PTR( contextMenu );
TQLabel *caption = new TQLabel( "<font color=darkblue><u><b>" TQLabel *caption = new TQLabel( "<font color=darkblue><u><b>"
"Context Menu</b></u></font>", this ); "Context Menu</b></u></font>", this );
caption->setAlignment( TQt::AlignCenter ); caption->setAlignment( TQt::AlignCenter );
@ -221,7 +221,7 @@ void MenuExample::contextMenuEvent( TQContextMenuEvent * )
contextMenu->insertItem( "&Open...", this, SLOT(open()), CTRL+Key_O ); contextMenu->insertItem( "&Open...", this, SLOT(open()), CTRL+Key_O );
contextMenu->insertItem( "&Save", this, SLOT(save()), CTRL+Key_S ); contextMenu->insertItem( "&Save", this, SLOT(save()), CTRL+Key_S );
TQPopupMenu *submenu = new TQPopupMenu( this ); TQPopupMenu *submenu = new TQPopupMenu( this );
Q_CHECK_PTR( submenu ); TQ_CHECK_PTR( submenu );
submenu->insertItem( "&Print to printer", this, SLOT(printer()) ); submenu->insertItem( "&Print to printer", this, SLOT(printer()) );
submenu->insertItem( "Print to &file", this, SLOT(file()) ); submenu->insertItem( "Print to &file", this, SLOT(file()) );
submenu->insertItem( "Print to fa&x", this, SLOT(fax()) ); submenu->insertItem( "Print to fa&x", this, SLOT(fax()) );

@ -17,7 +17,7 @@
class MenuExample : public TQWidget class MenuExample : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
MenuExample( TQWidget *parent=0, const char *name=0 ); MenuExample( TQWidget *parent=0, const char *name=0 );

@ -18,7 +18,7 @@
class MovieScreen : public TQFrame { class MovieScreen : public TQFrame {
Q_OBJECT TQ_OBJECT
TQMovie movie; TQMovie movie;
TQString filename; TQString filename;
TQSize sh; TQSize sh;
@ -218,7 +218,7 @@ public:
// A TQFileDialog that chooses movies. // A TQFileDialog that chooses movies.
// //
class MovieStarter: public TQFileDialog { class MovieStarter: public TQFileDialog {
Q_OBJECT TQ_OBJECT
public: public:
MovieStarter(const char *dir); MovieStarter(const char *dir);

@ -20,7 +20,7 @@
class Client : public TQVBox class Client : public TQVBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
Client( const TQString &host, Q_UINT16 port ) Client( const TQString &host, Q_UINT16 port )
{ {

@ -26,7 +26,7 @@
*/ */
class ClientSocket : public TQSocket class ClientSocket : public TQSocket
{ {
Q_OBJECT TQ_OBJECT
public: public:
ClientSocket( int sock, TQObject *parent=0, const char *name=0 ) : ClientSocket( int sock, TQObject *parent=0, const char *name=0 ) :
TQSocket( parent, name ) TQSocket( parent, name )
@ -73,7 +73,7 @@ private:
*/ */
class SimpleServer : public TQServerSocket class SimpleServer : public TQServerSocket
{ {
Q_OBJECT TQ_OBJECT
public: public:
SimpleServer( TQObject* parent=0 ) : SimpleServer( TQObject* parent=0 ) :
TQServerSocket( 4242, 1, parent ) TQServerSocket( 4242, 1, parent )
@ -105,7 +105,7 @@ signals:
*/ */
class ServerInfo : public TQVBox class ServerInfo : public TQVBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
ServerInfo() ServerInfo()
{ {

@ -21,7 +21,7 @@
// HttpDaemon is the the class that implements the simple HTTP server. // HttpDaemon is the the class that implements the simple HTTP server.
class HttpDaemon : public TQServerSocket class HttpDaemon : public TQServerSocket
{ {
Q_OBJECT TQ_OBJECT
public: public:
HttpDaemon( TQObject* parent=0 ) : HttpDaemon( TQObject* parent=0 ) :
TQServerSocket(8080,1,parent) TQServerSocket(8080,1,parent)
@ -84,7 +84,7 @@ private slots:
// the actions of the server. // the actions of the server.
class HttpInfo : public TQVBox class HttpInfo : public TQVBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
HttpInfo() HttpInfo()
{ {

@ -22,7 +22,7 @@ static const Q_UINT16 infoPort = 42417;
class ClientInfo : public ClientInfoBase class ClientInfo : public ClientInfoBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
ClientInfo( TQWidget *parent = 0, const char *name = 0 ); ClientInfo( TQWidget *parent = 0, const char *name = 0 );

@ -25,7 +25,7 @@ static const Q_UINT16 infoPort = 42417;
*/ */
class ServerInfo : public ServerInfoBase class ServerInfo : public ServerInfoBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
ServerInfo( Q_UINT16 port = infoPort, TQWidget *parent = 0, const char *name = 0 ); ServerInfo( Q_UINT16 port = infoPort, TQWidget *parent = 0, const char *name = 0 );
@ -36,7 +36,7 @@ private slots:
class SimpleServer : public TQServerSocket class SimpleServer : public TQServerSocket
{ {
Q_OBJECT TQ_OBJECT
public: public:
SimpleServer( Q_UINT16 port = infoPort, TQObject* parent = 0, const char *name = 0 ); SimpleServer( Q_UINT16 port = infoPort, TQObject* parent = 0, const char *name = 0 );
void newConnection( int socket ); void newConnection( int socket );
@ -51,7 +51,7 @@ private:
class ClientSocket : public TQSocket class ClientSocket : public TQSocket
{ {
Q_OBJECT TQ_OBJECT
public: public:
ClientSocket( int sock, InfoData *i, TQObject *parent = 0, const char *name = 0 ); ClientSocket( int sock, InfoData *i, TQObject *parent = 0, const char *name = 0 );

@ -17,7 +17,7 @@
class ClientInfo : public ClientInfoBase class ClientInfo : public ClientInfoBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
ClientInfo( TQWidget *parent = 0, const char *name = 0 ); ClientInfo( TQWidget *parent = 0, const char *name = 0 );

@ -19,7 +19,7 @@ static const Q_UINT16 infoPort = 42417;
class Qip : public TQNetworkProtocol class Qip : public TQNetworkProtocol
{ {
Q_OBJECT TQ_OBJECT
public: public:
Qip(); Qip();

@ -21,7 +21,7 @@ class TQPushButton;
class Composer : public TQWidget class Composer : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
Composer( TQWidget *parent = 0 ); Composer( TQWidget *parent = 0 );

@ -19,7 +19,7 @@ class TQDns;
class Smtp : public TQObject class Smtp : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
Smtp( const TQString &from, const TQString &to, Smtp( const TQString &from, const TQString &to,

@ -15,7 +15,7 @@
class Nntp : public TQNetworkProtocol class Nntp : public TQNetworkProtocol
{ {
Q_OBJECT TQ_OBJECT
public: public:
Nntp(); Nntp();

@ -18,7 +18,7 @@ class TQMultiLineEdit;
class View : public TQVBox class View : public TQVBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
View(); View();

@ -8,7 +8,7 @@
class IpcSocket : public TQSocket class IpcSocket : public TQSocket
{ {
Q_OBJECT TQ_OBJECT
public: public:
IpcSocket( TQObject *parent) : TQSocket( parent ) IpcSocket( TQObject *parent) : TQSocket( parent )

@ -5,7 +5,7 @@
class IpcServer : public TQServerSocket class IpcServer : public TQServerSocket
{ {
Q_OBJECT TQ_OBJECT
public: public:
IpcServer( Q_UINT16 port, TQObject *parent ); IpcServer( Q_UINT16 port, TQObject *parent );

@ -7,7 +7,7 @@ class TQSocket;
class RemoteCtrlImpl : public RemoteCtrl class RemoteCtrlImpl : public RemoteCtrl
{ {
Q_OBJECT TQ_OBJECT
public: public:
RemoteCtrlImpl( TQSocket * ); RemoteCtrlImpl( TQSocket * );

@ -9,7 +9,7 @@ class MainDialog;
class StartUp : public TQObject class StartUp : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
StartUp(); StartUp();

@ -21,7 +21,7 @@
class GLBox : public TQGLWidget class GLBox : public TQGLWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -22,7 +22,7 @@
class GLObjectWindow : public TQWidget class GLObjectWindow : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLObjectWindow( TQWidget* parent = 0, const char* name = 0 ); GLObjectWindow( TQWidget* parent = 0, const char* name = 0 );

@ -21,7 +21,7 @@
class GLBox : public TQGLWidget class GLBox : public TQGLWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -25,7 +25,7 @@ class TQPopupMenu;
class GLObjectWindow : public TQWidget class GLObjectWindow : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLObjectWindow( TQWidget* parent = 0, const char* name = 0 ); GLObjectWindow( TQWidget* parent = 0, const char* name = 0 );

@ -22,7 +22,7 @@
class GLObjectWindow : public TQWidget class GLObjectWindow : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLObjectWindow( TQWidget* parent = 0, const char* name = 0 ); GLObjectWindow( TQWidget* parent = 0, const char* name = 0 );

@ -22,7 +22,7 @@
class GLTeapots : public TQGLWidget class GLTeapots : public TQGLWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -28,7 +28,7 @@ TQColor findOverlayTransparentColor()
Visual* appVisual; Visual* appVisual;
// The static methods are called 'App' in TQt 2.x // The static methods are called 'App' in TQt 2.x
#if QT_VERSION < 200 #if TQT_VERSION < 200
appDisplay = TQPaintDevice::x__Display(); appDisplay = TQPaintDevice::x__Display();
appVisual = (Visual*)TQPaintDevice::x11Visual(); appVisual = (Visual*)TQPaintDevice::x11Visual();
#else #else

@ -21,7 +21,7 @@
class GLBox : public TQGLWidget class GLBox : public TQGLWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -22,7 +22,7 @@ class GLBox;
class GLObjectWindow : public TQWidget class GLObjectWindow : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLObjectWindow( TQWidget* parent = 0, const char* name = 0 ); GLObjectWindow( TQWidget* parent = 0, const char* name = 0 );

@ -22,7 +22,7 @@
class GLObjectWindow : public TQWidget class GLObjectWindow : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
GLObjectWindow( TQWidget* parent = 0, const char* name = 0 ); GLObjectWindow( TQWidget* parent = 0, const char* name = 0 );

@ -21,7 +21,7 @@
class GLTexobj : public TQGLWidget class GLTexobj : public TQGLWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -19,7 +19,7 @@
class FancyPopup : public TQLabel class FancyPopup : public TQLabel
{ {
Q_OBJECT TQ_OBJECT
public: public:
FancyPopup( TQWidget* parent = 0, const char* name=0); FancyPopup( TQWidget* parent = 0, const char* name=0);
@ -37,7 +37,7 @@ private:
class Frame : public TQFrame class Frame : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
public: public:
Frame( TQWidget *parent=0, const char* name=0); Frame( TQWidget *parent=0, const char* name=0);

@ -19,7 +19,7 @@
class UicManager : public TQVBox class UicManager : public TQVBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
UicManager(); UicManager();

@ -119,7 +119,7 @@ private:
class CPUWaster : public TQWidget class CPUWaster : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
enum { first_draw_item = 1000, last_draw_item = 1006 }; enum { first_draw_item = 1000, last_draw_item = 1006 };
@ -142,10 +142,10 @@ public:
pb(0) pb(0)
{ {
menubar = new TQMenuBar( this, "menu" ); menubar = new TQMenuBar( this, "menu" );
Q_CHECK_PTR( menubar ); TQ_CHECK_PTR( menubar );
TQPopupMenu* file = new TQPopupMenu(); TQPopupMenu* file = new TQPopupMenu();
Q_CHECK_PTR( file ); TQ_CHECK_PTR( file );
menubar->insertItem( "&File", file ); menubar->insertItem( "&File", file );
for (int i=first_draw_item; i<=last_draw_item; i++) for (int i=first_draw_item; i<=last_draw_item; i++)
file->insertItem( drawItemText(i), i ); file->insertItem( drawItemText(i), i );
@ -154,7 +154,7 @@ public:
file->insertItem( "Quit", qApp, SLOT(quit()) ); file->insertItem( "Quit", qApp, SLOT(quit()) );
options = new TQPopupMenu(); options = new TQPopupMenu();
Q_CHECK_PTR( options ); TQ_CHECK_PTR( options );
menubar->insertItem( "&Options", options ); menubar->insertItem( "&Options", options );
td_id = options->insertItem( "Timer driven", this, SLOT(timerDriven()) ); td_id = options->insertItem( "Timer driven", this, SLOT(timerDriven()) );
ld_id = options->insertItem( "Loop driven", this, SLOT(loopDriven()) ); ld_id = options->insertItem( "Loop driven", this, SLOT(loopDriven()) );

@ -19,7 +19,7 @@ class TQProgressBar;
class ProgressBar : public TQButtonGroup class ProgressBar : public TQButtonGroup
{ {
Q_OBJECT TQ_OBJECT
public: public:
ProgressBar( TQWidget *parent = 0, const char *name = 0 ); ProgressBar( TQWidget *parent = 0, const char *name = 0 );

@ -27,7 +27,7 @@ class TQPopupMenu;
class PixmapView : public TQScrollView class PixmapView : public TQScrollView
{ {
Q_OBJECT TQ_OBJECT
public: public:
PixmapView( TQWidget *parent ); PixmapView( TQWidget *parent );
@ -41,7 +41,7 @@ private:
class Preview : public TQWidgetStack class Preview : public TQWidgetStack
{ {
Q_OBJECT TQ_OBJECT
public: public:
Preview( TQWidget *parent ); Preview( TQWidget *parent );
@ -57,7 +57,7 @@ private:
class PreviewWidget : public TQVBox, class PreviewWidget : public TQVBox,
public TQFilePreview public TQFilePreview
{ {
Q_OBJECT TQ_OBJECT
public: public:
PreviewWidget( TQWidget *parent ); PreviewWidget( TQWidget *parent );
@ -71,7 +71,7 @@ private:
class CustomFileDialog : public TQFileDialog class CustomFileDialog : public TQFileDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
CustomFileDialog(); CustomFileDialog();

@ -16,7 +16,7 @@
class TQSlider; class TQSlider;
class FontRowTable : public TQFrame { class FontRowTable : public TQFrame {
Q_OBJECT TQ_OBJECT
public: public:
FontRowTable( TQWidget* parent=0, const char* name=0 ); FontRowTable( TQWidget* parent=0, const char* name=0 );
@ -39,7 +39,7 @@ private:
}; };
class FontDisplayer : public TQMainWindow { class FontDisplayer : public TQMainWindow {
Q_OBJECT TQ_OBJECT
public: public:
FontDisplayer( TQWidget* parent=0, const char* name=0 ); FontDisplayer( TQWidget* parent=0, const char* name=0 );
}; };

@ -22,7 +22,7 @@
class MagWidget : public TQWidget class MagWidget : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
MagWidget( TQWidget *parent=0, const char *name=0 ); MagWidget( TQWidget *parent=0, const char *name=0 );
@ -88,12 +88,12 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
int w=0, x=0, n; int w=0, x=0, n;
zoom = new TQComboBox( FALSE, this ); zoom = new TQComboBox( FALSE, this );
Q_CHECK_PTR(zoom); TQ_CHECK_PTR(zoom);
zoom->insertStrList( zoomfactors, 9 ); zoom->insertStrList( zoomfactors, 9 );
connect( zoom, SIGNAL(activated(int)), SLOT(setZoom(int)) ); connect( zoom, SIGNAL(activated(int)), SLOT(setZoom(int)) );
refresh = new TQComboBox( FALSE, this ); refresh = new TQComboBox( FALSE, this );
Q_CHECK_PTR(refresh); TQ_CHECK_PTR(refresh);
refresh->insertStrList( refreshrates, 9 ); refresh->insertStrList( refreshrates, 9 );
connect( refresh, SIGNAL(activated(int)), SLOT(setRefresh(int)) ); connect( refresh, SIGNAL(activated(int)), SLOT(setRefresh(int)) );
@ -112,7 +112,7 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
refresh->setGeometry( x, 2, w+30, 20 ); refresh->setGeometry( x, 2, w+30, 20 );
saveButton = new TQPushButton( this ); saveButton = new TQPushButton( this );
Q_CHECK_PTR(saveButton); TQ_CHECK_PTR(saveButton);
connect( saveButton, SIGNAL(clicked()), this, SLOT(save()) ); connect( saveButton, SIGNAL(clicked()), this, SLOT(save()) );
saveButton->setText( "Save" ); saveButton->setText( "Save" );
saveButton->setGeometry( x+w+30+2, 2, saveButton->setGeometry( x+w+30+2, 2,
@ -120,14 +120,14 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
multiSaveButton = new TQPushButton( this ); multiSaveButton = new TQPushButton( this );
multiSaveButton->setToggleButton(TRUE); multiSaveButton->setToggleButton(TRUE);
Q_CHECK_PTR(multiSaveButton); TQ_CHECK_PTR(multiSaveButton);
connect( multiSaveButton, SIGNAL(clicked()), this, SLOT(multiSave()) ); connect( multiSaveButton, SIGNAL(clicked()), this, SLOT(multiSave()) );
multiSaveButton->setText( "MultiSave" ); multiSaveButton->setText( "MultiSave" );
multiSaveButton->setGeometry( saveButton->geometry().right() + 2, 2, multiSaveButton->setGeometry( saveButton->geometry().right() + 2, 2,
10+multiSaveButton->fontMetrics().width("MultiSave"), 20 ); 10+multiSaveButton->fontMetrics().width("MultiSave"), 20 );
quitButton = new TQPushButton( this ); quitButton = new TQPushButton( this );
Q_CHECK_PTR(quitButton); TQ_CHECK_PTR(quitButton);
connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) ); connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
quitButton->setText( "Quit" ); quitButton->setText( "Quit" );
quitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2, quitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2,
@ -141,7 +141,7 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
setZoom(5); setZoom(5);
rgb = new TQLabel( this ); rgb = new TQLabel( this );
Q_CHECK_PTR( rgb ); TQ_CHECK_PTR( rgb );
rgb->setText( "" ); rgb->setText( "" );
rgb->setAlignment( AlignVCenter ); rgb->setAlignment( AlignVCenter );
rgb->resize( width(), rgb->fontMetrics().height() + 4 ); rgb->resize( width(), rgb->fontMetrics().height() + 4 );

@ -34,7 +34,7 @@ Editor::Editor( TQWidget * parent , const char * name )
m = new TQMenuBar( this, "menu" ); m = new TQMenuBar( this, "menu" );
TQPopupMenu * file = new TQPopupMenu(); TQPopupMenu * file = new TQPopupMenu();
Q_CHECK_PTR( file ); TQ_CHECK_PTR( file );
m->insertItem( "&File", file ); m->insertItem( "&File", file );
file->insertItem( "&New", this, SLOT(newDoc()), ALT+Key_N ); file->insertItem( "&New", this, SLOT(newDoc()), ALT+Key_N );
@ -59,7 +59,7 @@ Editor::Editor( TQWidget * parent , const char * name )
rebuildCodecList(); rebuildCodecList();
TQPopupMenu * edit = new TQPopupMenu(); TQPopupMenu * edit = new TQPopupMenu();
Q_CHECK_PTR( edit ); TQ_CHECK_PTR( edit );
m->insertItem( "&Edit", edit ); m->insertItem( "&Edit", edit );
edit->insertItem( "To &Uppercase", this, SLOT(toUpper()), ALT+Key_U ); edit->insertItem( "To &Uppercase", this, SLOT(toUpper()), ALT+Key_U );

@ -17,7 +17,7 @@
class Editor : public TQWidget class Editor : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
Editor( TQWidget *parent=0, const char *name="qwerty" ); Editor( TQWidget *parent=0, const char *name="qwerty" );
~Editor(); ~Editor();

@ -16,7 +16,7 @@ class TQCheckBox;
class RangeControls : public TQVBox class RangeControls : public TQVBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
RangeControls( TQWidget *parent = 0, const char *name = 0 ); RangeControls( TQWidget *parent = 0, const char *name = 0 );

@ -12,7 +12,7 @@ class TQTable;
class RegexpTester : public TQDialog class RegexpTester : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
RegexpTester(TQWidget* parent=0, const char* name=0, bool modal=false, RegexpTester(TQWidget* parent=0, const char* name=0, bool modal=false,

@ -17,7 +17,7 @@ class TQPushButton;
class MyRichText : public TQVBox class MyRichText : public TQVBox
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyRichText( TQWidget *parent = 0, const char *name = 0 ); MyRichText( TQWidget *parent = 0, const char *name = 0 );

@ -19,7 +19,7 @@
class TQMultiLineEdit; class TQMultiLineEdit;
class Rot13: public TQWidget { class Rot13: public TQWidget {
Q_OBJECT TQ_OBJECT
public: public:
Rot13(); Rot13();

@ -26,7 +26,7 @@ class TQSpinBox;
class Canvas : public TQWidget class Canvas : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
Canvas( TQWidget *parent = 0, const char *name = 0 ); Canvas( TQWidget *parent = 0, const char *name = 0 );
@ -65,7 +65,7 @@ protected:
class Scribble : public TQMainWindow class Scribble : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
Scribble( TQWidget *parent = 0, const char *name = 0 ); Scribble( TQWidget *parent = 0, const char *name = 0 );

@ -32,7 +32,7 @@ static const int max_mw = 10;
class BigShrinker : public TQFrame { class BigShrinker : public TQFrame {
Q_OBJECT TQ_OBJECT
public: public:
BigShrinker(TQWidget* parent) : BigShrinker(TQWidget* parent) :
TQFrame(parent) TQFrame(parent)
@ -195,22 +195,22 @@ private:
}; };
class ScrollViewExample : public TQWidget { class ScrollViewExample : public TQWidget {
Q_OBJECT TQ_OBJECT
public: public:
ScrollViewExample(int technique, TQWidget* parent=0, const char* name=0) : ScrollViewExample(int technique, TQWidget* parent=0, const char* name=0) :
TQWidget(parent,name) TQWidget(parent,name)
{ {
TQMenuBar* menubar = new TQMenuBar(this); TQMenuBar* menubar = new TQMenuBar(this);
Q_CHECK_PTR( menubar ); TQ_CHECK_PTR( menubar );
TQPopupMenu* file = new TQPopupMenu( menubar ); TQPopupMenu* file = new TQPopupMenu( menubar );
Q_CHECK_PTR( file ); TQ_CHECK_PTR( file );
menubar->insertItem( "&File", file ); menubar->insertItem( "&File", file );
file->insertItem( "Quit", qApp, SLOT(quit()) ); file->insertItem( "Quit", qApp, SLOT(quit()) );
vp_options = new TQPopupMenu( menubar ); vp_options = new TQPopupMenu( menubar );
Q_CHECK_PTR( vp_options ); TQ_CHECK_PTR( vp_options );
vp_options->setCheckable( TRUE ); vp_options->setCheckable( TRUE );
menubar->insertItem( "&ScrollView", vp_options ); menubar->insertItem( "&ScrollView", vp_options );
connect( vp_options, SIGNAL(activated(int)), connect( vp_options, SIGNAL(activated(int)),
@ -248,7 +248,7 @@ public:
} }
f_options = new TQPopupMenu( menubar ); f_options = new TQPopupMenu( menubar );
Q_CHECK_PTR( f_options ); TQ_CHECK_PTR( f_options );
f_options->setCheckable( TRUE ); f_options->setCheckable( TRUE );
menubar->insertItem( "F&rame", f_options ); menubar->insertItem( "F&rame", f_options );
connect( f_options, SIGNAL(activated(int)), connect( f_options, SIGNAL(activated(int)),
@ -265,7 +265,7 @@ public:
f_options->insertItem( "Sunken", style_id|TQFrame::Sunken )); f_options->insertItem( "Sunken", style_id|TQFrame::Sunken ));
f_options->insertSeparator(); f_options->insertSeparator();
lw_options = new TQPopupMenu( menubar ); lw_options = new TQPopupMenu( menubar );
Q_CHECK_PTR( lw_options ); TQ_CHECK_PTR( lw_options );
lw_options->setCheckable( TRUE ); lw_options->setCheckable( TRUE );
for (int lw = 1; lw <= max_lw; lw++) { for (int lw = 1; lw <= max_lw; lw++) {
TQString str; TQString str;
@ -276,7 +276,7 @@ public:
connect( lw_options, SIGNAL(activated(int)), connect( lw_options, SIGNAL(activated(int)),
this, SLOT(doFMenuItem(int)) ); this, SLOT(doFMenuItem(int)) );
mlw_options = new TQPopupMenu( menubar ); mlw_options = new TQPopupMenu( menubar );
Q_CHECK_PTR( mlw_options ); TQ_CHECK_PTR( mlw_options );
mlw_options->setCheckable( TRUE ); mlw_options->setCheckable( TRUE );
for (int mlw = 0; mlw <= max_mlw; mlw++) { for (int mlw = 0; mlw <= max_mlw; mlw++) {
TQString str; TQString str;
@ -287,7 +287,7 @@ public:
connect( mlw_options, SIGNAL(activated(int)), connect( mlw_options, SIGNAL(activated(int)),
this, SLOT(doFMenuItem(int)) ); this, SLOT(doFMenuItem(int)) );
mw_options = new TQPopupMenu( menubar ); mw_options = new TQPopupMenu( menubar );
Q_CHECK_PTR( mw_options ); TQ_CHECK_PTR( mw_options );
mw_options->setCheckable( TRUE ); mw_options->setCheckable( TRUE );
for (int mw = 0; mw <= max_mw; mw++) { for (int mw = 0; mw <= max_mw; mw++) {
TQString str; TQString str;

@ -16,7 +16,7 @@
class ImageIconProvider : public TQFileIconProvider class ImageIconProvider : public TQFileIconProvider
{ {
Q_OBJECT TQ_OBJECT
TQStrList fmts; TQStrList fmts;
TQPixmap imagepm; TQPixmap imagepm;

@ -20,7 +20,7 @@ class TQMultiLineEdit;
class ImageTextEditor : public TQDialog class ImageTextEditor : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
ImageTextEditor( TQImage& i, TQWidget *parent=0, const char *name=0, WFlags f=0 ); ImageTextEditor( TQImage& i, TQWidget *parent=0, const char *name=0, WFlags f=0 );
~ImageTextEditor(); ~ImageTextEditor();

@ -20,7 +20,7 @@ class TQPopupMenu;
class ImageViewer : public TQWidget class ImageViewer : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
ImageViewer( TQWidget *parent=0, const char *name=0, int wFlags=0 ); ImageViewer( TQWidget *parent=0, const char *name=0, int wFlags=0 );
~ImageViewer(); ~ImageViewer();

@ -13,7 +13,7 @@
#include <ntqmainwindow.h> #include <ntqmainwindow.h>
class SoundPlayer : public TQMainWindow { class SoundPlayer : public TQMainWindow {
Q_OBJECT TQ_OBJECT
public: public:
SoundPlayer(); SoundPlayer();

@ -21,7 +21,7 @@
class CustomEdit : public TQLineEdit class CustomEdit : public TQLineEdit
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( TQString upperLine READ upperLine WRITE setUpperLine ) Q_PROPERTY( TQString upperLine READ upperLine WRITE setUpperLine )
public: public:
CustomEdit( TQWidget *parent=0, const char *name=0 ); CustomEdit( TQWidget *parent=0, const char *name=0 );
@ -36,7 +36,7 @@ class CustomEdit : public TQLineEdit
class FormDialog : public TQDialog class FormDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
FormDialog(); FormDialog();
~FormDialog(); ~FormDialog();

@ -20,7 +20,7 @@
class FormDialog : public TQDialog class FormDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
FormDialog(); FormDialog();
~FormDialog(); ~FormDialog();

@ -18,7 +18,7 @@
class StatusPicker : public TQComboBox class StatusPicker : public TQComboBox
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int statusid READ statusId WRITE setStatusId ) Q_PROPERTY( int statusid READ statusId WRITE setStatusId )
public: public:
StatusPicker( TQWidget *parent=0, const char *name=0 ); StatusPicker( TQWidget *parent=0, const char *name=0 );
@ -31,7 +31,7 @@ class StatusPicker : public TQComboBox
class CustomSqlEditorFactory : public TQSqlEditorFactory class CustomSqlEditorFactory : public TQSqlEditorFactory
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQWidget *createEditor( TQWidget *parent, const TQSqlField *field ); TQWidget *createEditor( TQWidget *parent, const TQSqlField *field );
}; };

@ -20,7 +20,7 @@
class StatusPicker : public TQComboBox class StatusPicker : public TQComboBox
{ {
Q_OBJECT TQ_OBJECT
Q_PROPERTY( int statusid READ statusId WRITE setStatusId ) Q_PROPERTY( int statusid READ statusId WRITE setStatusId )
public: public:
StatusPicker( TQWidget *parent=0, const char *name=0 ); StatusPicker( TQWidget *parent=0, const char *name=0 );
@ -33,7 +33,7 @@ private:
class CustomTable : public TQDataTable class CustomTable : public TQDataTable
{ {
Q_OBJECT TQ_OBJECT
public: public:
CustomTable( CustomTable(
TQSqlCursor *cursor, bool autoPopulate = FALSE, TQSqlCursor *cursor, bool autoPopulate = FALSE,
@ -47,7 +47,7 @@ public:
class CustomSqlEditorFactory : public TQSqlEditorFactory class CustomSqlEditorFactory : public TQSqlEditorFactory
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQWidget *createEditor( TQWidget *parent, const TQSqlField *field ); TQWidget *createEditor( TQWidget *parent, const TQSqlField *field );
}; };

@ -16,7 +16,7 @@
class TabDialog : public TQTabDialog class TabDialog : public TQTabDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
TabDialog( TQWidget *parent, const char *name, const TQString &_filename ); TabDialog( TQWidget *parent, const char *name, const TQString &_filename );

@ -35,7 +35,7 @@ private:
class Table : public TQTable class Table : public TQTable
{ {
Q_OBJECT TQ_OBJECT
public: public:
Table(); Table();

@ -20,7 +20,7 @@
class Canvas : public TQWidget class Canvas : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
Canvas( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 ); Canvas( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );

@ -27,7 +27,7 @@ class Canvas;
class Scribble : public TQMainWindow class Scribble : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
Scribble( TQWidget *parent = 0, const char *name = 0 ); Scribble( TQWidget *parent = 0, const char *name = 0 );

@ -19,7 +19,7 @@ class TQLabel;
class MyOrientation : public TQFrame class MyOrientation : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyOrientation( TQWidget *parent = 0, const char *name = 0 ); MyOrientation( TQWidget *parent = 0, const char *name = 0 );
virtual ~MyOrientation(); virtual ~MyOrientation();
@ -31,7 +31,7 @@ public slots:
class StatsCanvas : public Canvas class StatsCanvas : public Canvas
{ {
Q_OBJECT TQ_OBJECT
public: public:
StatsCanvas( TQWidget *parent = 0, const char* name = 0 ); StatsCanvas( TQWidget *parent = 0, const char* name = 0 );
~StatsCanvas(); ~StatsCanvas();
@ -54,7 +54,7 @@ private:
class TabletStats : public TabletStatsBase class TabletStats : public TabletStatsBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
TabletStats( TQWidget *parent, const char* name ); TabletStats( TQWidget *parent, const char* name );
~TabletStats(); ~TabletStats();

@ -25,7 +25,7 @@ class TQDragger;
class DropWindow : public TQWidget class DropWindow : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
void paintEvent( TQPaintEvent * ); void paintEvent( TQPaintEvent * );
void closeEvent( TQCloseEvent * ); void closeEvent( TQCloseEvent * );
@ -50,7 +50,7 @@ struct DraggedInfo {
class TQDragger : public TQObject class TQDragger : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQDragger(); TQDragger();
~TQDragger(); ~TQDragger();

@ -16,7 +16,7 @@ class TQDragger;
class TQDragApplication : public TQApplication class TQDragApplication : public TQApplication
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQDragApplication( int &argc, char **argv ); TQDragApplication( int &argc, char **argv );
virtual ~TQDragApplication(); virtual ~TQDragApplication();

@ -20,7 +20,7 @@
class ShowNextPiece : public TQFrame class ShowNextPiece : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
friend class TQTetrix; friend class TQTetrix;
public: public:
ShowNextPiece( TQWidget *parent=0, const char *name=0 ); ShowNextPiece( TQWidget *parent=0, const char *name=0 );
@ -39,7 +39,7 @@ private:
class TQTetrix : public TQWidget class TQTetrix : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQTetrix( TQWidget *parent=0, const char *name=0 ); TQTetrix( TQWidget *parent=0, const char *name=0 );
void startGame() { board->startGame(); } void startGame() { board->startGame(); }

@ -17,7 +17,7 @@ class TQTimer;
class TQTetrixBoard : public TQFrame, public GenericTetrix class TQTetrixBoard : public TQFrame, public GenericTetrix
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQTetrixBoard( TQWidget *parent=0, const char *name=0 ); TQTetrixBoard( TQWidget *parent=0, const char *name=0 );

@ -20,7 +20,7 @@ class TQTextEdit;
class TextEdit : public TQMainWindow class TextEdit : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
TextEdit( TQWidget *parent = 0, const char *name = 0 ); TextEdit( TQWidget *parent = 0, const char *name = 0 );

@ -17,7 +17,7 @@ class TQTabWidget;
class Themes: public TQMainWindow class Themes: public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
Themes( TQWidget *parent = 0, const char *name = 0, WFlags f = WType_TopLevel ); Themes( TQWidget *parent = 0, const char *name = 0, WFlags f = WType_TopLevel );

@ -220,7 +220,7 @@ void ConsThread::run()
class ProdCons : public TQWidget class ProdCons : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
ProdCons(); ProdCons();

@ -141,7 +141,7 @@ void GreenThread::stop()
class SemaphoreExample : public TQWidget class SemaphoreExample : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
SemaphoreExample(); SemaphoreExample();
~SemaphoreExample(); ~SemaphoreExample();

@ -24,7 +24,7 @@ class TQLabel;
class TicTacButton : public TQPushButton class TicTacButton : public TQPushButton
{ {
Q_OBJECT TQ_OBJECT
public: public:
TicTacButton( TQWidget *parent ); TicTacButton( TQWidget *parent );
enum Type { Blank, Circle, Cross }; enum Type { Blank, Circle, Cross };
@ -55,7 +55,7 @@ typedef TQMemArray<int> TicTacArray;
class TicTacGameBoard : public TQWidget class TicTacGameBoard : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TicTacGameBoard( int n, TQWidget *parent=0, const char *name=0 ); TicTacGameBoard( int n, TQWidget *parent=0, const char *name=0 );
~TicTacGameBoard(); ~TicTacGameBoard();
@ -88,7 +88,7 @@ private:
class TicTacToe : public TQWidget class TicTacToe : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TicTacToe( int boardSize=3, TQWidget *parent=0, const char *name=0 ); TicTacToe( int boardSize=3, TQWidget *parent=0, const char *name=0 );
private slots: private slots:

@ -23,7 +23,7 @@ protected:
class TellMe : public TQWidget class TellMe : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
public: public:
TellMe( TQWidget * parent = 0, const char * name = 0 ); TellMe( TQWidget * parent = 0, const char * name = 0 );
~TellMe(); ~TellMe();

@ -27,7 +27,7 @@ class TQPopupMenu;
class MyListView : public TQListView class MyListView : public TQListView
{ {
Q_OBJECT TQ_OBJECT
public: public:
MyListView( TQWidget * parent = 0, const char *name = 0 ) MyListView( TQWidget * parent = 0, const char *name = 0 )
: TQListView( parent, name ), selected(0) : TQListView( parent, name ), selected(0)
@ -64,7 +64,7 @@ private:
class WidgetView : public TQMainWindow class WidgetView : public TQMainWindow
{ {
Q_OBJECT TQ_OBJECT
public: public:
WidgetView( TQWidget *parent=0, const char *name=0 ); WidgetView( TQWidget *parent=0, const char *name=0 );

@ -19,7 +19,7 @@ class TQLabel;
class Wizard : public TQWizard class Wizard : public TQWizard
{ {
Q_OBJECT TQ_OBJECT
public: public:
Wizard( TQWidget *parent = 0, const char *name = 0 ); Wizard( TQWidget *parent = 0, const char *name = 0 );

@ -39,7 +39,7 @@ public:
class XFormControl : public TQVBox, public ModeNames class XFormControl : public TQVBox, public ModeNames
{ {
Q_OBJECT TQ_OBJECT
public: public:
XFormControl( const TQFont &initialFont, TQWidget *parent=0, const char *name=0 ); XFormControl( const TQFont &initialFont, TQWidget *parent=0, const char *name=0 );
~XFormControl() {} ~XFormControl() {}
@ -83,7 +83,7 @@ private:
class ShowXForm : public TQWidget, public ModeNames class ShowXForm : public TQWidget, public ModeNames
{ {
Q_OBJECT TQ_OBJECT
public: public:
ShowXForm( const TQFont &f, TQWidget *parent=0, const char *name=0 ); ShowXForm( const TQFont &f, TQWidget *parent=0, const char *name=0 );
~ShowXForm() {} ~ShowXForm() {}
@ -434,7 +434,7 @@ void ShowXForm::showIt()
class XFormCenter : public TQHBox, public ModeNames class XFormCenter : public TQHBox, public ModeNames
{ {
Q_OBJECT TQ_OBJECT
public: public:
XFormCenter( TQWidget *parent=0, const char *name=0 ); XFormCenter( TQWidget *parent=0, const char *name=0 );
public slots: public slots:

@ -15,7 +15,7 @@
class OutlineTree : public TQListView class OutlineTree : public TQListView
{ {
Q_OBJECT TQ_OBJECT
public: public:
OutlineTree( const TQString fileName, TQWidget *parent = 0, const char *name = 0 ); OutlineTree( const TQString fileName, TQWidget *parent = 0, const char *name = 0 );

@ -48,7 +48,7 @@ public:
// //
class Graph : public TQNPWidget { class Graph : public TQNPWidget {
Q_OBJECT TQ_OBJECT
public: public:
// Constructs a Graph to display a GraphModel // Constructs a Graph to display a GraphModel
// //
@ -376,7 +376,7 @@ const char* Graph::styleName[] = { "Pie", "Bar", 0 };
// //
class Grapher : public TQNPInstance, GraphModel { class Grapher : public TQNPInstance, GraphModel {
Q_OBJECT TQ_OBJECT
public: public:
// Create a Grapher - all Grapher plugins are created // Create a Grapher - all Grapher plugins are created
// by one GrapherPlugin object. // by one GrapherPlugin object.

@ -4,7 +4,7 @@
#include <ntqmessagebox.h> #include <ntqmessagebox.h>
class Trivial : public TQNPWidget { class Trivial : public TQNPWidget {
Q_OBJECT TQ_OBJECT
public: public:
void mouseReleaseEvent(TQMouseEvent* event) void mouseReleaseEvent(TQMouseEvent* event)
{ {
@ -22,7 +22,7 @@ public:
}; };
class TrivialInstance : public TQNPInstance { class TrivialInstance : public TQNPInstance {
Q_OBJECT TQ_OBJECT
public: public:
TQNPWidget* newWindow() TQNPWidget* newWindow()
{ {

@ -81,7 +81,7 @@ private:
}; };
class TQNPWidget : public TQWidget { class TQNPWidget : public TQWidget {
Q_OBJECT TQ_OBJECT
public: public:
TQNPWidget(); TQNPWidget();
~TQNPWidget(); ~TQNPWidget();
@ -98,7 +98,7 @@ private:
}; };
class TQNPInstance : public TQObject { class TQNPInstance : public TQObject {
Q_OBJECT TQ_OBJECT
public: public:
~TQNPInstance(); ~TQNPInstance();

@ -55,7 +55,7 @@ class TQPopupMenu;
class TQMultiInputContext : public TQInputContext class TQMultiInputContext : public TQInputContext
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQMultiInputContext(); TQMultiInputContext();
~TQMultiInputContext(); ~TQMultiInputContext();
@ -78,7 +78,7 @@ public:
bool isComposing() const; bool isComposing() const;
bool isPreeditRelocationEnabled(); bool isPreeditRelocationEnabled();
#if (QT_VERSION-0 >= 0x040000) #if (TQT_VERSION-0 >= 0x040000)
TQPtrList<TQMenu> *qt4menus(); TQPtrList<TQMenu> *qt4menus();
#endif #endif
TQPtrList<TQInputContextMenu> *menus(); TQPtrList<TQInputContextMenu> *menus();

@ -48,7 +48,7 @@
class TQMultiInputContextPlugin : public TQInputContextPlugin class TQMultiInputContextPlugin : public TQInputContextPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQMultiInputContextPlugin(); TQMultiInputContextPlugin();
~TQMultiInputContextPlugin(); ~TQMultiInputContextPlugin();

@ -47,7 +47,7 @@
class TQNoneInputContextPlugin : public TQInputContextPlugin class TQNoneInputContextPlugin : public TQInputContextPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQNoneInputContextPlugin(); TQNoneInputContextPlugin();
~TQNoneInputContextPlugin(); ~TQNoneInputContextPlugin();

@ -61,7 +61,7 @@ struct TQComposeTable {
class TQSimpleInputContext : public TQInputContext { class TQSimpleInputContext : public TQInputContext {
Q_OBJECT TQ_OBJECT
public: public:
TQSimpleInputContext(); TQSimpleInputContext();
~TQSimpleInputContext(); ~TQSimpleInputContext();

@ -48,7 +48,7 @@
class TQSimpleInputContextPlugin : public TQInputContextPlugin class TQSimpleInputContextPlugin : public TQInputContextPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQSimpleInputContextPlugin(); TQSimpleInputContextPlugin();
~TQSimpleInputContextPlugin(); ~TQSimpleInputContextPlugin();

@ -70,7 +70,7 @@ class TQString;
class TQXIMInputContext : public TQInputContext class TQXIMInputContext : public TQInputContext
{ {
Q_OBJECT TQ_OBJECT
public: public:
#ifdef Q_WS_X11 #ifdef Q_WS_X11
TQXIMInputContext(); TQXIMInputContext();

@ -48,7 +48,7 @@
class TQXIMInputContextPlugin : public TQInputContextPlugin class TQXIMInputContextPlugin : public TQInputContextPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQXIMInputContextPlugin(); TQXIMInputContextPlugin();
~TQXIMInputContextPlugin(); ~TQXIMInputContextPlugin();

@ -676,7 +676,7 @@ rarely needs to be modified.
\section3 OBJMOC \section3 OBJMOC
This variable is set by \e qmake if files can be found that This variable is set by \e qmake if files can be found that
contain the Q_OBJECT macro. \c OBJMOC contains the contain the TQ_OBJECT macro. \c OBJMOC contains the
name of all intermediate moc object files. The value of this variable name of all intermediate moc object files. The value of this variable
is typically handled by \e qmake or \link #QMAKESPEC qmake.conf \endlink and rarely needs to be is typically handled by \e qmake or \link #QMAKESPEC qmake.conf \endlink and rarely needs to be
modified. modified.
@ -1605,7 +1605,7 @@ The value of this variable is typically handled by \e qmake or
\section3 SRCMOC \section3 SRCMOC
This variable is set by \e qmake if files can be found that This variable is set by \e qmake if files can be found that
contain the Q_OBJECT macro. \c SRCMOC contains the contain the TQ_OBJECT macro. \c SRCMOC contains the
name of all the generated moc files. The value of this variable name of all the generated moc files. The value of this variable
is typically handled by \e qmake or \link #QMAKESPEC qmake.conf \endlink and rarely needs to be is typically handled by \e qmake or \link #QMAKESPEC qmake.conf \endlink and rarely needs to be
modified. modified.

@ -134,9 +134,9 @@ MakefileGenerator::generateMocList(const TQString &fn_target)
bool ignore_qobject = FALSE; bool ignore_qobject = FALSE;
int line_count = 1; int line_count = 1;
/* qmake ignore Q_OBJECT */ /* qmake ignore TQ_OBJECT */
#define COMP_LEN 8 //strlen("Q_OBJECT") #define COMP_LEN 9 //strlen("TQ_OBJECT")
#define OBJ_LEN 8 //strlen("Q_OBJECT") #define OBJ_LEN 9 //strlen("TQ_OBJECT")
#define DIS_LEN 10 //strlen("Q_DISPATCH") #define DIS_LEN 10 //strlen("Q_DISPATCH")
int x; int x;
for(x = 0; x < (total_size_read-COMP_LEN); x++) { for(x = 0; x < (total_size_read-COMP_LEN); x++) {
@ -150,8 +150,8 @@ MakefileGenerator::generateMocList(const TQString &fn_target)
for( ;x < total_size_read; x++) { for( ;x < total_size_read; x++) {
if(*(big_buffer + x) == 't' || *(big_buffer + x) == 'q') { //ignore if(*(big_buffer + x) == 't' || *(big_buffer + x) == 'q') { //ignore
if(total_size_read >= (x + 20)) { if(total_size_read >= (x + 20)) {
if(!strncmp(big_buffer + x + 1, "make ignore Q_OBJECT", 20)) { if(!strncmp(big_buffer + x + 1, "make ignore TQ_OBJECT", 20)) {
debug_msg(2, "Mocgen: %s:%d Found \"qmake ignore Q_OBJECT\"", debug_msg(2, "Mocgen: %s:%d Found \"qmake ignore TQ_OBJECT\"",
fn_target.latin1(), line_count); fn_target.latin1(), line_count);
x += 20; x += 20;
ignore_qobject = TRUE; ignore_qobject = TRUE;
@ -172,13 +172,13 @@ MakefileGenerator::generateMocList(const TQString &fn_target)
#define SYMBOL_CHAR(x) ((x >= 'a' && x <= 'z') || (x >= 'A' && x <= 'Z') || \ #define SYMBOL_CHAR(x) ((x >= 'a' && x <= 'z') || (x >= 'A' && x <= 'Z') || \
(x <= '0' && x >= '9') || x == '_') (x <= '0' && x >= '9') || x == '_')
bool interesting = *(big_buffer+x) == 'Q' && (!strncmp(big_buffer+x, "Q_OBJECT", OBJ_LEN) || bool interesting = ((*(big_buffer+x) == 'T') || (*(big_buffer+x) == 'Q')) && (!strncmp(big_buffer+x, "TQ_OBJECT", OBJ_LEN) ||
!strncmp(big_buffer+x, "Q_DISPATCH", DIS_LEN)); !strncmp(big_buffer+x, "Q_DISPATCH", DIS_LEN));
if(interesting) { if(interesting) {
int len = 0; int len = 0;
if(!strncmp(big_buffer+x, "Q_OBJECT", OBJ_LEN)) { if(!strncmp(big_buffer+x, "TQ_OBJECT", OBJ_LEN)) {
if(ignore_qobject) { if(ignore_qobject) {
debug_msg(2, "Mocgen: %s:%d Ignoring Q_OBJECT", fn_target.latin1(), line_count); debug_msg(2, "Mocgen: %s:%d Ignoring TQ_OBJECT", fn_target.latin1(), line_count);
interesting = FALSE; interesting = FALSE;
} }
len=OBJ_LEN; len=OBJ_LEN;
@ -2101,14 +2101,14 @@ TQString MakefileGenerator::buildArgs()
//arguments //arguments
for(TQStringList::Iterator it = Option::before_user_vars.begin(); for(TQStringList::Iterator it = Option::before_user_vars.begin();
it != Option::before_user_vars.end(); ++it) { it != Option::before_user_vars.end(); ++it) {
if((*it).left(qstrlen("QMAKE_ABSOLUTE_SOURCE_PATH")) != "QMAKE_ABSOLUTE_SOURCE_PATH") if((*it).left(tqstrlen("QMAKE_ABSOLUTE_SOURCE_PATH")) != "QMAKE_ABSOLUTE_SOURCE_PATH")
ret += " \"" + (*it) + "\""; ret += " \"" + (*it) + "\"";
} }
if(Option::after_user_vars.count()) { if(Option::after_user_vars.count()) {
ret += " -after "; ret += " -after ";
for(TQStringList::Iterator it = Option::after_user_vars.begin(); for(TQStringList::Iterator it = Option::after_user_vars.begin();
it != Option::after_user_vars.end(); ++it) { it != Option::after_user_vars.end(); ++it) {
if((*it).left(qstrlen("QMAKE_ABSOLUTE_SOURCE_PATH")) != "QMAKE_ABSOLUTE_SOURCE_PATH") if((*it).left(tqstrlen("QMAKE_ABSOLUTE_SOURCE_PATH")) != "QMAKE_ABSOLUTE_SOURCE_PATH")
ret += " \"" + (*it) + "\""; ret += " \"" + (*it) + "\"";
} }
} }
@ -2145,7 +2145,7 @@ MakefileGenerator::writeHeader(TQTextStream &t)
time_t foo = time(NULL); time_t foo = time(NULL);
t << "#############################################################################" << endl; t << "#############################################################################" << endl;
t << "# Makefile for building: " << var("TARGET") << endl; t << "# Makefile for building: " << var("TARGET") << endl;
t << "# Generated by qmake (" << qmake_version() << ") (TQt " << QT_VERSION_STR << ") on: " << ctime(&foo); t << "# Generated by qmake (" << qmake_version() << ") (TQt " << TQT_VERSION_STR << ") on: " << ctime(&foo);
t << "# Project: " << fileFixify(project->projectFile()) << endl; t << "# Project: " << fileFixify(project->projectFile()) << endl;
t << "# Template: " << var("TEMPLATE") << endl; t << "# Template: " << var("TEMPLATE") << endl;
t << "# Command: " << build_args() << endl; t << "# Command: " << build_args() << endl;

@ -1433,7 +1433,7 @@ UnixMakefileGenerator::writeLibtoolFile()
t << "# " << lname << " - a libtool library file\n"; t << "# " << lname << " - a libtool library file\n";
time_t now = time(NULL); time_t now = time(NULL);
t << "# Generated by qmake/libtool (" << qmake_version() << ") (TQt " t << "# Generated by qmake/libtool (" << qmake_version() << ") (TQt "
<< QT_VERSION_STR << ") on: " << ctime(&now) << "\n"; << TQT_VERSION_STR << ") on: " << ctime(&now) << "\n";
t << "# The name that we can dlopen(3).\n" t << "# The name that we can dlopen(3).\n"
<< "dlname='" << var(project->isActiveConfig("plugin") ? "TARGET" : "TARGET_x") << "dlname='" << var(project->isActiveConfig("plugin") ? "TARGET" : "TARGET_x")

@ -225,7 +225,7 @@ Option::internalParseCommandLine(int argc, char **argv, int skip)
} else if(opt == "d") { } else if(opt == "d") {
Option::debug_level++; Option::debug_level++;
} else if(opt == "version" || opt == "v" || opt == "-version") { } else if(opt == "version" || opt == "v" || opt == "-version") {
fprintf(stderr, "Qmake version: %s (TQt %s)\n", qmake_version(), QT_VERSION_STR); fprintf(stderr, "Qmake version: %s (TQt %s)\n", qmake_version(), TQT_VERSION_STR);
fprintf(stderr, "Qmake is free software from Trolltech ASA.\n"); fprintf(stderr, "Qmake is free software from Trolltech ASA.\n");
return QMAKE_CMDLINE_BAIL; return QMAKE_CMDLINE_BAIL;
} else if(opt == "h" || opt == "help") { } else if(opt == "h" || opt == "help") {

@ -685,7 +685,7 @@ TQMakeProject::read(uchar cmd)
// fprintf(stderr,"Current QT version number: " + ver + "\n"); // fprintf(stderr,"Current QT version number: " + ver + "\n");
if (ver != "" && ver != test_version) { if (ver != "" && ver != test_version) {
ver = test_version; ver = test_version;
fprintf(stderr,"Changed QT version number to " + test_version + "!\n"); fprintf(stderr,"Changed QT version number to %s!\n", test_version.ascii());
} }
} }
} }

@ -28,7 +28,7 @@ class TQValidator;
class TQtMultiLineEdit : public TQtTableView class TQtMultiLineEdit : public TQtTableView
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( EchoMode WordWrap WrapPolicy ) Q_ENUMS( EchoMode WordWrap WrapPolicy )
Q_PROPERTY( int numLines READ numLines ) Q_PROPERTY( int numLines READ numLines )
Q_PROPERTY( bool atBeginning READ atBeginning ) Q_PROPERTY( bool atBeginning READ atBeginning )
@ -317,7 +317,7 @@ private:
void processCmd( TQtMultiLineEditCommand*, bool ); void processCmd( TQtMultiLineEditCommand*, bool );
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQtMultiLineEdit( const TQtMultiLineEdit & ); TQtMultiLineEdit( const TQtMultiLineEdit & );
TQtMultiLineEdit &operator=( const TQtMultiLineEdit & ); TQtMultiLineEdit &operator=( const TQtMultiLineEdit & );
#endif #endif

@ -1072,7 +1072,7 @@ void TQtTableView::coverCornerSquare( bool enable )
coveringCornerSquare = enable; coveringCornerSquare = enable;
if ( !cornerSquare && enable ) { if ( !cornerSquare && enable ) {
cornerSquare = new TQCornerSquare( this ); cornerSquare = new TQCornerSquare( this );
Q_CHECK_PTR( cornerSquare ); TQ_CHECK_PTR( cornerSquare );
cornerSquare->setGeometry( maxViewX() + frameWidth() + 1, cornerSquare->setGeometry( maxViewX() + frameWidth() + 1,
maxViewY() + frameWidth() + 1, maxViewY() + frameWidth() + 1,
VSBEXT, VSBEXT,
@ -1442,7 +1442,7 @@ TQScrollBar *TQtTableView::verticalScrollBar() const
sb->setCursor( arrowCursor ); sb->setCursor( arrowCursor );
#endif #endif
sb->resize( sb->sizeHint() ); // height is irrelevant sb->resize( sb->sizeHint() ); // height is irrelevant
Q_CHECK_PTR(sb); TQ_CHECK_PTR(sb);
sb->setTracking( FALSE ); sb->setTracking( FALSE );
sb->setFocusPolicy( NoFocus ); sb->setFocusPolicy( NoFocus );
connect( sb, SIGNAL(valueChanged(int)), connect( sb, SIGNAL(valueChanged(int)),
@ -1474,7 +1474,7 @@ TQScrollBar *TQtTableView::horizontalScrollBar() const
#endif #endif
sb->resize( sb->sizeHint() ); // width is irrelevant sb->resize( sb->sizeHint() ); // width is irrelevant
sb->setFocusPolicy( NoFocus ); sb->setFocusPolicy( NoFocus );
Q_CHECK_PTR(sb); TQ_CHECK_PTR(sb);
sb->setTracking( FALSE ); sb->setTracking( FALSE );
connect( sb, SIGNAL(valueChanged(int)), connect( sb, SIGNAL(valueChanged(int)),
SLOT(horSbValue(int))); SLOT(horSbValue(int)));

@ -26,7 +26,7 @@ class TQCornerSquare;
class TQtTableView : public TQFrame class TQtTableView : public TQFrame
{ {
Q_OBJECT TQ_OBJECT
public: public:
virtual void setBackgroundColor( const TQColor & ); virtual void setBackgroundColor( const TQColor & );
virtual void setPalette( const TQPalette & ); virtual void setPalette( const TQPalette & );
@ -168,7 +168,7 @@ private:
TQCornerSquare *cornerSquare; TQCornerSquare *cornerSquare;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQtTableView( const TQtTableView & ); TQtTableView( const TQtTableView & );
TQtTableView &operator=( const TQtTableView & ); TQtTableView &operator=( const TQtTableView & );
#endif #endif

@ -51,7 +51,7 @@
#include "ntqpointarray.h" #include "ntqpointarray.h"
#endif // QT_H #endif // QT_H
#if !defined( QT_MODULE_CANVAS ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_CANVAS ) #if !defined( TQT_MODULE_CANVAS ) || defined( QT_LICENSE_PROFESSIONAL ) || defined( QT_INTERNAL_CANVAS )
#define TQM_EXPORT_CANVAS #define TQM_EXPORT_CANVAS
#define TQM_TEMPLATE_EXTERN_CANVAS #define TQM_TEMPLATE_EXTERN_CANVAS
#else #else
@ -218,7 +218,7 @@ class TQCanvasData;
class TQM_EXPORT_CANVAS TQCanvas : public TQObject class TQM_EXPORT_CANVAS TQCanvas : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQCanvas( TQObject* parent = 0, const char* name = 0 ); TQCanvas( TQObject* parent = 0, const char* name = 0 );
TQCanvas(int w, int h); TQCanvas(int w, int h);
@ -353,7 +353,7 @@ private:
friend void qt_unview(TQCanvas* c); friend void qt_unview(TQCanvas* c);
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQCanvas( const TQCanvas & ); TQCanvas( const TQCanvas & );
TQCanvas &operator=( const TQCanvas & ); TQCanvas &operator=( const TQCanvas & );
#endif #endif
@ -363,7 +363,7 @@ class TQCanvasViewData;
class TQM_EXPORT_CANVAS TQCanvasView : public TQScrollView class TQM_EXPORT_CANVAS TQCanvasView : public TQScrollView
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQCanvasView(TQWidget* parent=0, const char* name=0, WFlags f=0); TQCanvasView(TQWidget* parent=0, const char* name=0, WFlags f=0);
@ -393,7 +393,7 @@ private slots:
void updateContentsSize(); void updateContentsSize();
private: private:
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQCanvasView( const TQCanvasView & ); TQCanvasView( const TQCanvasView & );
TQCanvasView &operator=( const TQCanvasView & ); TQCanvasView &operator=( const TQCanvasView & );
#endif #endif
@ -417,7 +417,7 @@ public:
void setOffset(int x, int y) { hotx = x; hoty = y; } void setOffset(int x, int y) { hotx = x; hoty = y; }
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCanvasPixmap( const TQCanvasPixmap & ); TQCanvasPixmap( const TQCanvasPixmap & );
TQCanvasPixmap &operator=( const TQCanvasPixmap & ); TQCanvasPixmap &operator=( const TQCanvasPixmap & );
#endif #endif
@ -463,7 +463,7 @@ public:
{ return (uint)framecount; } { return (uint)framecount; }
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCanvasPixmapArray( const TQCanvasPixmapArray & ); TQCanvasPixmapArray( const TQCanvasPixmapArray & );
TQCanvasPixmapArray &operator=( const TQCanvasPixmapArray & ); TQCanvasPixmapArray &operator=( const TQCanvasPixmapArray & );
#endif #endif
@ -529,7 +529,7 @@ public:
void draw(TQPainter& painter); void draw(TQPainter& painter);
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCanvasSprite( const TQCanvasSprite & ); TQCanvasSprite( const TQCanvasSprite & );
TQCanvasSprite &operator=( const TQCanvasSprite & ); TQCanvasSprite &operator=( const TQCanvasSprite & );
#endif #endif
@ -786,7 +786,7 @@ protected:
virtual void draw(TQPainter&); virtual void draw(TQPainter&);
private: private:
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQCanvasText( const TQCanvasText & ); TQCanvasText( const TQCanvasText & );
TQCanvasText &operator=( const TQCanvasText & ); TQCanvasText &operator=( const TQCanvasText & );
#endif #endif

@ -52,7 +52,7 @@ class TQTextCodecPluginPrivate;
class Q_EXPORT TQTextCodecPlugin : public TQGPlugin class Q_EXPORT TQTextCodecPlugin : public TQGPlugin
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQTextCodecPlugin(); TQTextCodecPlugin();
~TQTextCodecPlugin(); ~TQTextCodecPlugin();

@ -109,7 +109,7 @@ void TQFontJis0201Codec::fromUnicode(const TQChar *in, unsigned short *out, int
int TQFontJis0201Codec::heuristicNameMatch(const char* hint) const int TQFontJis0201Codec::heuristicNameMatch(const char* hint) const
{ {
if ( qstrncmp( hint, "jisx0201", 8 ) == 0 ) if ( tqstrncmp( hint, "jisx0201", 8 ) == 0 )
return 20; return 20;
return -1; return -1;
@ -137,7 +137,7 @@ int TQFontJis0208Codec::heuristicContentMatch(const char *, int) const
int TQFontJis0208Codec::heuristicNameMatch(const char *hint) const int TQFontJis0208Codec::heuristicNameMatch(const char *hint) const
{ {
if ( qstrncmp( hint, "jisx0208.", 9 ) == 0 ) if ( tqstrncmp( hint, "jisx0208.", 9 ) == 0 )
return 20; return 20;
return -1; return -1;
} }

@ -117,7 +117,7 @@
#include "ntqgb18030codec.h" #include "ntqgb18030codec.h"
#if (QT_VERSION-0 >= 0x040000) #if (TQT_VERSION-0 >= 0x040000)
#error "move obsolete header <ntqgbkcodec.h> into the src/compat directory" #error "move obsolete header <ntqgbkcodec.h> into the src/compat directory"
#endif #endif

@ -504,17 +504,17 @@ int TQTextCodec::simpleHeuristicNameMatch(const char* name, const char* hint)
{ {
// if they're the same, return a perfect score. // if they're the same, return a perfect score.
if ( name && hint && *name && *hint && qstricmp( name, hint ) == 0 ) if ( name && hint && *name && *hint && qstricmp( name, hint ) == 0 )
return qstrlen( hint ); return tqstrlen( hint );
// if the letters and numbers are the same, we have an "almost" // if the letters and numbers are the same, we have an "almost"
// perfect match. // perfect match.
TQString h( lettersAndNumbers( hint ) ); TQString h( lettersAndNumbers( hint ) );
TQString n( lettersAndNumbers( name ) ); TQString n( lettersAndNumbers( name ) );
if ( h == n ) if ( h == n )
return qstrlen( hint )-1; return tqstrlen( hint )-1;
if ( h.stripWhiteSpace() == n.stripWhiteSpace() ) if ( h.stripWhiteSpace() == n.stripWhiteSpace() )
return qstrlen( hint )-2; return tqstrlen( hint )-2;
// could do some more here, but I don't think it's worth it // could do some more here, but I don't think it's worth it
@ -1115,7 +1115,7 @@ TQString TQTextCodec::toUnicode(const TQCString& a) const
*/ */
TQString TQTextCodec::toUnicode(const char* chars) const TQString TQTextCodec::toUnicode(const char* chars) const
{ {
return toUnicode(chars,qstrlen(chars)); return toUnicode(chars,tqstrlen(chars));
} }
/*! /*!

@ -79,7 +79,7 @@ static void create_manager()
new TQPluginManager<TQTextCodecFactoryInterface>(IID_QTextCodecFactory, new TQPluginManager<TQTextCodecFactoryInterface>(IID_QTextCodecFactory,
TQApplication::libraryPaths(), "/codecs", TQApplication::libraryPaths(), "/codecs",
FALSE); FALSE);
Q_CHECK_PTR( manager ); TQ_CHECK_PTR( manager );
cleanup_manager.set( &manager ); cleanup_manager.set( &manager );
} }

@ -51,7 +51,7 @@ class TQColorDialogPrivate;
class Q_EXPORT TQColorDialog : public TQDialog class Q_EXPORT TQColorDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
public: public:
static TQColor getColor( const TQColor& init = white, TQWidget* parent=0, const char* name=0 ); static TQColor getColor( const TQColor& init = white, TQWidget* parent=0, const char* name=0 );
@ -82,7 +82,7 @@ private: // Disabled copy constructor and operator=
friend class TQColorDialogPrivate; friend class TQColorDialogPrivate;
friend class TQColorShower; friend class TQColorShower;
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQColorDialog( const TQColorDialog & ); TQColorDialog( const TQColorDialog & );
TQColorDialog& operator=( const TQColorDialog & ); TQColorDialog& operator=( const TQColorDialog & );
#endif #endif

@ -46,7 +46,7 @@
#endif // QT_H #endif // QT_H
#ifndef QT_NO_DIALOG #ifndef QT_NO_DIALOG
#if 0 #if 0
Q_OBJECT TQ_OBJECT
#endif #endif
class TQPushButton; class TQPushButton;
@ -55,7 +55,7 @@ class TQDialogPrivate;
class Q_EXPORT TQDialog : public TQWidget class Q_EXPORT TQDialog : public TQWidget
{ {
friend class TQPushButton; friend class TQPushButton;
Q_OBJECT TQ_OBJECT
Q_PROPERTY( bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled ) Q_PROPERTY( bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled )
Q_PROPERTY( bool modal READ isModal WRITE setModal ) Q_PROPERTY( bool modal READ isModal WRITE setModal )
@ -131,7 +131,7 @@ private:
TQDialogPrivate* d; TQDialogPrivate* d;
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQDialog( const TQDialog & ); TQDialog( const TQDialog & );
TQDialog &operator=( const TQDialog & ); TQDialog &operator=( const TQDialog & );
#endif #endif

@ -55,7 +55,7 @@ template<class type> class TQDict;
class Q_EXPORT TQErrorMessage: public TQDialog { class Q_EXPORT TQErrorMessage: public TQDialog {
Q_OBJECT TQ_OBJECT
public: public:
TQErrorMessage( TQWidget* parent, const char* name=0 ); TQErrorMessage( TQWidget* parent, const char* name=0 );
~TQErrorMessage(); ~TQErrorMessage();
@ -78,7 +78,7 @@ private:
bool nextPending(); bool nextPending();
#if defined(Q_DISABLE_COPY) // Disabled copy constructor and operator= #if defined(TQ_DISABLE_COPY) // Disabled copy constructor and operator=
TQErrorMessage( const TQErrorMessage & ); TQErrorMessage( const TQErrorMessage & );
TQErrorMessage &operator=( const TQErrorMessage & ); TQErrorMessage &operator=( const TQErrorMessage & );
#endif #endif

@ -69,13 +69,13 @@ class TQFileDialogTQFileListView;
class Q_EXPORT TQFileIconProvider : public TQObject class Q_EXPORT TQFileIconProvider : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
TQFileIconProvider( TQObject * parent = 0, const char* name = 0 ); TQFileIconProvider( TQObject * parent = 0, const char* name = 0 );
virtual const TQPixmap * pixmap( const TQFileInfo & ); virtual const TQPixmap * pixmap( const TQFileInfo & );
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQFileIconProvider( const TQFileIconProvider & ); TQFileIconProvider( const TQFileIconProvider & );
TQFileIconProvider& operator=( const TQFileIconProvider & ); TQFileIconProvider& operator=( const TQFileIconProvider & );
#endif #endif
@ -91,7 +91,7 @@ public:
class Q_EXPORT TQFileDialog : public TQDialog class Q_EXPORT TQFileDialog : public TQDialog
{ {
Q_OBJECT TQ_OBJECT
Q_ENUMS( Mode ViewMode PreviewMode ) Q_ENUMS( Mode ViewMode PreviewMode )
// ##### Why are this read-only properties ? // ##### Why are this read-only properties ?
Q_PROPERTY( TQString selectedFile READ selectedFile ) Q_PROPERTY( TQString selectedFile READ selectedFile )
@ -336,7 +336,7 @@ private:
private: // Disabled copy constructor and operator= private: // Disabled copy constructor and operator=
#if defined(Q_DISABLE_COPY) #if defined(TQ_DISABLE_COPY)
TQFileDialog( const TQFileDialog & ); TQFileDialog( const TQFileDialog & );
TQFileDialog &operator=( const TQFileDialog & ); TQFileDialog &operator=( const TQFileDialog & );
#endif #endif

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save