Replace Q_OBJECT with TQ_OBJECT

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/24/head
Michele Calgaro 1 year ago
parent 093291ecbc
commit b9781b38d8
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -20,7 +20,7 @@
*/
class KDEDcopTest : public TDEMainWindow
{
Q_OBJECT
TQ_OBJECT
public:
/**
* Default Constructor

@ -119,7 +119,7 @@
2004-05-25 Richard Dale <Richard_Dale@tipitina.demon.co.uk>
* Added the correct macro expansion for Q_OBJECT with Qt/E 2.3.x
* Added the correct macro expansion for TQ_OBJECT with Qt/E 2.3.x
* kalyptus can now generate the SMOKE library for Qt Embedded
2004-05-22 Richard Dale <Richard_Dale@tipitina.demon.co.uk>

@ -147,7 +147,7 @@ $allowed_k_dcop_accesors_re = join("|", @allowed_k_dcop_accesors);
TQ_DISABLE_COPY => 'TQ_DISABLE_COPY',
Q_WS_QWS => 'undef',
Q_WS_MAC => 'undef',
Q_OBJECT => <<'CODE',
TQ_OBJECT => <<'CODE',
public:
virtual TQMetaObject *metaObject() const;
virtual const char *className() const;
@ -468,7 +468,7 @@ sub readSourceLine
=head2 readCxxLine
Reads a C++ source line, skipping comments, blank lines,
preprocessor tokens and the Q_OBJECT macro
preprocessor tokens and the TQ_OBJECT macro
=cut
@ -496,7 +496,7 @@ LOOP:
}
}
if ( $p =~ /^\s*Q_OBJECT/ ) {
if ( $p =~ /^\s*TQ_OBJECT/ ) {
if ($qt_embedded) {
push @inputqueue, @qte_codeqobject;
} elsif ($qt4) {
@ -545,7 +545,7 @@ LOOP:
next if ( $p =~ /^\s*$/s ); # blank lines
# || $p =~ /^\s*Q_OBJECT/ # TQObject macro
# || $p =~ /^\s*TQ_OBJECT/ # TQObject macro
# );
#

@ -2625,7 +2625,7 @@ sub preParseClass
|| ($name eq 'qt_cast')
|| ($name eq 'qt_property')
|| ($name eq 'staticMetaObject')
# Assume only Qt classes have tr() and trUtf8() in their Q_OBJECT macro
# Assume only Qt classes have tr() and trUtf8() in their TQ_OBJECT macro
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'tr')
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'trUtf8')
|| $name eq 'trUtf8'
@ -5475,7 +5475,7 @@ sub printJavadocComment($$$$)
$line =~ s/bool/boolean/g;
$line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g;
$line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g;
$line =~ s/Q_OBJECT\n//g;
$line =~ s/TQ_OBJECT\n//g;
$line =~ s/class\s+([\w]+)\s*:\s*public/public class $1 implements/g;
$line =~ s/public\s*(slots)?:\n/public /g;
$line =~ s/([^0-9"]\s*)\*(\s*[^0-9"-])/$1$2/g;

@ -903,7 +903,7 @@ sub preParseClass
|| ($name eq 'qt_property')
|| ($name eq 'staticMetaObject')
|| ($classNode->{astNodeName} eq 'KTar' and $name eq 'writeFile_impl')
# Assume only Qt classes have tr() and trUtf8() in their Q_OBJECT macro
# Assume only Qt classes have tr() and trUtf8() in their TQ_OBJECT macro
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'tr')
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'trUtf8')
|| $m->{Deprecated} ) {
@ -3317,7 +3317,7 @@ sub printJavadocComment($$$$)
$line =~ s/bool/boolean/g;
$line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g;
$line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g;
$line =~ s/Q_OBJECT\n//g;
$line =~ s/TQ_OBJECT\n//g;
$line =~ s/class\s+([\w]+)\s*:\s*public/public class $1 implements/g;
$line =~ s/public\s*(slots)?:\n/public /g;
$line =~ s/([^0-9"]\s*)\*(\s*[^0-9"-])/$1$2/g;

@ -952,7 +952,7 @@ sub preParseClass
|| ($name eq 'type')
|| ($classNode->{astNodeName} eq 'KTar' and $name eq 'writeFile_impl')
|| ($classNode->{astNodeName} eq 'TQApplication' and $name eq 'TQApplication')
# Assume only Qt classes have tr() and trUtf8() in their Q_OBJECT macro
# Assume only Qt classes have tr() and trUtf8() in their TQ_OBJECT macro
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'tr')
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'trUtf8')
@ -3510,7 +3510,7 @@ sub printCSharpdocComment($$$$)
$line =~ s/bool/bool/g;
$line =~ s/SLOT\(\s*([^\)]*)\) ?\)/SLOT("$1)")/g;
$line =~ s/SIGNAL\(\s*([^\)]*)\) ?\)/SIGNAL("$1)")/g;
$line =~ s/Q_OBJECT\n//g;
$line =~ s/TQ_OBJECT\n//g;
$line =~ s/public\s*(slots)?:\n/public /g;
$line =~ s/([^0-9"]\s*)\*(\s*[^0-9"-])/$1$2/g;
$line =~ s/^(\s*)\*/$1/g;

@ -637,7 +637,7 @@ sub preParseClass
|| ($name eq 'hack_strchr')
|| ($name eq 'hack_strstr') ) )
# Assume only Qt classes have tr() and trUtf8() in their Q_OBJECT macro
# Assume only Qt classes have tr() and trUtf8() in their TQ_OBJECT macro
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'tr')
|| ($classNode->{astNodeName} !~ /^Q/ and $name eq 'trUtf8')

@ -35,7 +35,7 @@ namespace Bindings {
*/
class BindingObject : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
BindingObject( TQObject *parent, const char *name=0 );

@ -50,7 +50,7 @@ class JSDCOPInterfacerLoader : public JSBindingBase
*/
class JSDCOPInterface : public BindingObject, public DCOPObject
{
Q_OBJECT
TQ_OBJECT
public:
JSDCOPInterface( KJS::Interpreter *js, TQObject *parent, const char *name=0 );

@ -35,7 +35,7 @@ namespace Bindings {
*/
class Movie : public BindingObject
{
Q_OBJECT
TQ_OBJECT
TQ_PROPERTY( TQColor setBackgroundColor READ backgroundColor )
TQ_PROPERTY( int setSpeed READ speed )

@ -34,7 +34,7 @@ namespace Bindings {
*/
class NetAccess : public BindingObject
{
Q_OBJECT
TQ_OBJECT
public:
NetAccess( TQObject *parent, const char *name=0 );
virtual ~NetAccess();

@ -35,7 +35,7 @@ namespace Bindings {
*/
class SqlQuery : public BindingObject
{
Q_OBJECT
TQ_OBJECT
TQ_PROPERTY( int size READ size)
TQ_PROPERTY( int at READ at)
TQ_PROPERTY( int numRowsAffected READ numRowsAffected )
@ -88,7 +88,7 @@ private:
*/
class SqlDatabase : public BindingObject
{
Q_OBJECT
TQ_OBJECT
TQ_PROPERTY( TQString databaseName READ databaseName WRITE setDatabaseName)
TQ_PROPERTY( TQString userName READ userName WRITE setUserName)
TQ_PROPERTY( TQString password READ password WRITE setPassword)

@ -42,7 +42,7 @@ namespace Bindings {
class Config : public BindingObject
{
Q_OBJECT
TQ_OBJECT
TQ_PROPERTY( bool forceGlobal READ forceGlobal WRITE setForceGlobal )
TQ_PROPERTY( bool dollarExpansion READ isDollarExpansion WRITE setDollarExpansion )
TQ_PROPERTY( bool readOnly READ isReadOnly WRITE setReadOnly )

@ -13,7 +13,7 @@ namespace KJSEmbed {
};
class POSViewImp: public POSViewBase {
Q_OBJECT
TQ_OBJECT
public:
POSViewImp( TQWidget *parent = 0, const char *name = 0 );

@ -13,7 +13,7 @@ namespace KJSEmbed {
}
class EmbedViewImp: public EmbedView {
Q_OBJECT
TQ_OBJECT
public:
EmbedViewImp( TQWidget *parent = 0, const char *name = 0 );

@ -38,7 +38,7 @@ namespace KJSEmbed {
* @version $Id$
*/
class KJSEMBED_EXPORT JSBindingPlugin : public TQObject {
Q_OBJECT
TQ_OBJECT
public:
JSBindingPlugin( TQObject *parent, const char *name, const TQStringList &args );
virtual ~JSBindingPlugin();

@ -59,7 +59,7 @@ class KJSEmbedPart;
*/
class KJSEMBED_EXPORT JSConsoleWidget : public TQFrame
{
Q_OBJECT
TQ_OBJECT
public:
JSConsoleWidget( KJSEmbedPart *js, TQWidget *parent=0, const char *name=0 );

@ -37,7 +37,7 @@ class JSObjectProxy;
*/
class KJSEMBED_EXPORT JSObjectEventProxy : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
JSObjectEventProxy( JSObjectProxy *parent, const char *name=0 );

@ -71,7 +71,7 @@ class JSBuiltIn;
*/
class KJSEMBED_EXPORT KJSEmbedPart : public KParts::ReadOnlyPart
{
Q_OBJECT
TQ_OBJECT
TQ_PROPERTY( TQStringList constructorNames READ constructorNames )
TQ_PROPERTY( TQCString versionString READ versionString )
TQ_PROPERTY( int versionMajor READ versionMajor )

@ -31,7 +31,7 @@
*/
class KSimpleProcess : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
/**

@ -34,7 +34,7 @@ namespace KJSEmbed {
*/
class JSConsolePlugin : public KParts::Plugin
{
Q_OBJECT
TQ_OBJECT
public:
JSConsolePlugin( TQObject *parent, const char *name, const TQStringList & );

@ -38,7 +38,7 @@ public:
class MyCustomTQObjectImp : public TQObject {
Q_OBJECT
TQ_OBJECT
/** Identifiers for the methods provided by this class. */
enum Mode { On, Off };

@ -39,7 +39,7 @@ public:
class ProcessImp : public TQProcess {
Q_OBJECT
TQ_OBJECT
/** Identifiers for the methods provided by this class. */
enum Communication { Stdin = 0x01, Stdout = 0x02, Stderr = 0x04, DupStderr = 0x08 };

@ -34,7 +34,7 @@ namespace KParts {
class KJSEMBED_EXPORT ReadOnlyPart : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
ReadOnlyPart( TQObject *parent, const char *name=0 );
@ -48,7 +48,7 @@ private:
class KJSEMBED_EXPORT ReadWritePart : public ReadOnlyPart
{
Q_OBJECT
TQ_OBJECT
public:
ReadWritePart( TQObject *parent, const char *name=0 );

@ -49,7 +49,7 @@ class JSObjectProxy;
*/
class KJSEMBED_EXPORT JSSlotProxy : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
JSSlotProxy( TQObject *parent, const char *name=0 );

@ -30,7 +30,7 @@ namespace KJSEmbed {
//using namespace KScriptInterface;
class JavaScript : public KScriptInterface
{
Q_OBJECT
TQ_OBJECT
TQ_PROPERTY( TQString appID READ appID )
public:

@ -198,7 +198,7 @@ class TQCanvasData;
class TQM_EXPORT_CANVAS TQCanvas : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
TQCanvas( TQObject* parent = 0, const char* name = 0 );
TQCanvas(int w, int h);
@ -344,7 +344,7 @@ class TQCanvasViewData;
class TQM_EXPORT_CANVAS TQCanvasView : public TQScrollView
{
Q_OBJECT
TQ_OBJECT
public:
TQCanvasView(TQWidget* parent=0, const char* name=0, WFlags f=0);

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

@ -40,7 +40,7 @@ class XMLActionScript;
*/
class XMLActionClient : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
/**

@ -45,7 +45,7 @@ class TQMetaObject;
class JavaSlot: public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
JavaSlot(JNIEnv * env, jobject receiver, jstring slot);
~JavaSlot();
@ -190,7 +190,7 @@ public:
class JavaSignal: public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
JavaSignal();
~JavaSignal();

@ -8,7 +8,7 @@
class QtUtils : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
QtUtils();

@ -31,7 +31,7 @@
class CustomSlot: public TQObject
{
Q_OBJECT
TQ_OBJECT
public:

@ -49,7 +49,7 @@ class TDEJavaSlotFactory;
class TDEJavaSlot: public JavaSlot
{
Q_OBJECT
TQ_OBJECT
public:
TDEJavaSlot(JNIEnv * env, jobject receiver, jstring slot);
virtual ~TDEJavaSlot();

@ -8,7 +8,7 @@ class TDEProcess;
class KMozillaPart : public XPartHost_KPart
{
Q_OBJECT
TQ_OBJECT
public:
KMozillaPart(TQWidget *parentWidget, const char *widgetName,

@ -13,7 +13,7 @@
class ShellWindow : public KParts::MainWindow
{
Q_OBJECT
TQ_OBJECT
public:
ShellWindow()

@ -10,7 +10,7 @@ class XPartHost_KPart;
class KBrowserSignals : public KParts::BrowserExtension, virtual public XBrowserSignals
{
Q_OBJECT
TQ_OBJECT
public:
KBrowserSignals( XPartHost_KPart *part, DCOPRef ref );
virtual ~KBrowserSignals();

@ -19,7 +19,7 @@ class QXEmbed;
*/
class XPartHost_KPart : public KParts::ReadOnlyPart, public XPartHost
{
Q_OBJECT
TQ_OBJECT
public:
XPartHost_KPart( TQWidget *parentWidget, const char *widgetName,
TQObject *parent, const char *name );

@ -9,7 +9,7 @@ class TDEProcess;
class ShellWindow : public KParts::MainWindow
{
Q_OBJECT
TQ_OBJECT
public:
ShellWindow();

@ -34,7 +34,7 @@ class TDEProcess;
class XP_NotepadFactory : public KParts::Factory
{
Q_OBJECT
TQ_OBJECT
public:
XP_NotepadFactory( bool clone = false ) {}
virtual ~XP_NotepadFactory() {}
@ -47,7 +47,7 @@ public:
class XP_NotepadPart : public XPartHost_KPart
{
Q_OBJECT
TQ_OBJECT
public:
XP_NotepadPart(TQWidget *parentWidget, const char *widgetName,

Loading…
Cancel
Save