diff options
author | Timothy Pearson <[email protected]> | 2012-03-02 02:11:59 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-03-02 02:11:59 -0600 |
commit | 9a75b154bf0732aa3a501b6e31e566e06c5f8a31 (patch) | |
tree | df1e10cc7504665622d096f9ba80dc9e56f3afb8 /src/kernel/qobject.cpp | |
parent | a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (diff) | |
download | qt3-9a75b154bf0732aa3a501b6e31e566e06c5f8a31.tar.gz qt3-9a75b154bf0732aa3a501b6e31e566e06c5f8a31.zip |
Undo prior accidental commit
Diffstat (limited to 'src/kernel/qobject.cpp')
-rw-r--r-- | src/kernel/qobject.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp index 285fc51..7e01dec 100644 --- a/src/kernel/qobject.cpp +++ b/src/kernel/qobject.cpp @@ -335,7 +335,7 @@ static void cleanup_object_trees() static void ensure_object_trees() { object_trees = new QObjectList; - tqAddPostRoutine( cleanup_object_trees ); + qAddPostRoutine( cleanup_object_trees ); } static void insert_tree( QObject* obj ) @@ -418,7 +418,7 @@ QObject::QObject( QObject *parent, const char *name ) blockSig( FALSE ), // not blocking signals wasDeleted( FALSE ), // double-delete catcher isTree( FALSE ), // no tree yet - objname( name ? tqstrdup(name) : 0 ), // set object name + objname( name ? qstrdup(name) : 0 ), // set object name parentObj( 0 ), // no parent yet. It is set by insertChild() childObjects( 0 ), // no children yet connections( 0 ), // no connections yet @@ -463,7 +463,7 @@ QObject::~QObject() { if ( wasDeleted ) { #if defined(QT_DEBUG) - tqWarning( "Double QObject deletion detected." ); + qWarning( "Double QObject deletion detected." ); #endif return; } @@ -643,12 +643,12 @@ void *qt_inheritedBy( QMetaObject *superClass, const QObject *object ) future. If the object does not have a name, the name() function returns - "unnamed", so printf() (used in tqDebug()) will not be asked to + "unnamed", so printf() (used in qDebug()) will not be asked to output a null pointer. If you want a null pointer to be returned for unnamed objects, you can call name( 0 ). \code - tqDebug( "MyClass::setPrecision(): (%s) invalid precision %f", + qDebug( "MyClass::setPrecision(): (%s) invalid precision %f", name(), newPrecision ); \endcode @@ -668,7 +668,7 @@ void QObject::setName( const char *name ) { if ( objname ) delete [] (char*) objname; - objname = name ? tqstrdup(name) : 0; + objname = name ? qstrdup(name) : 0; } /*! @@ -756,7 +756,7 @@ bool QObject::event( QEvent *e ) { #if defined(QT_CHECK_NULL) if ( e == 0 ) - tqWarning( "QObject::event: Null events are not permitted" ); + qWarning( "QObject::event: Null events are not permitted" ); #endif if ( eventFilters ) { // try filters if ( activate_filters(e) ) // stopped by a filter @@ -883,7 +883,7 @@ void QObject::customEvent( QCustomEvent * ) if ( obj == textEdit ) { if ( e->type() == QEvent::KeyPress ) { QKeyEvent *k = (QKeyEvent*)ev; - tqDebug( "Ate key press %d", k->key() ); + qDebug( "Ate key press %d", k->key() ); return TRUE; } else { return FALSE; @@ -1005,7 +1005,7 @@ void QObject::blockSignals( bool block ) void MyObject::timerEvent( QTimerEvent *e ) { - tqDebug( "timer event, id %d", e->timerId() ); + qDebug( "timer event, id %d", e->timerId() ); } \endcode @@ -1282,7 +1282,7 @@ void QObject::insertChild( QObject *obj ) if ( obj->parentObj && obj->parentObj != this ) { #if defined(QT_CHECK_STATE) if ( obj->parentObj != this && obj->isWidgetType() ) - tqWarning( "QObject::insertChild: Cannot reparent a widget, " + qWarning( "QObject::insertChild: Cannot reparent a widget, " "use QWidget::reparent() instead" ); #endif obj->parentObj->removeChild( obj ); @@ -1293,7 +1293,7 @@ void QObject::insertChild( QObject *obj ) Q_CHECK_PTR( childObjects ); } else if ( obj->parentObj == this ) { #if defined(QT_CHECK_STATE) - tqWarning( "QObject::insertChild: Object %s::%s already in list", + qWarning( "QObject::insertChild: Object %s::%s already in list", obj->className(), obj->name( "unnamed" ) ); #endif return; @@ -1368,7 +1368,7 @@ void QObject::removeChild( QObject *obj ) if ( e->type() == QEvent::KeyPress ) { // special processing for key press QKeyEvent *k = (QKeyEvent *)e; - tqDebug( "Ate key press %d", k->key() ); + qDebug( "Ate key press %d", k->key() ); return TRUE; // eat event } else { // standard event processing @@ -1453,10 +1453,10 @@ static bool check_signal_macro( const QObject *sender, const char *signal, int sigcode = (int)(*signal) - '0'; if ( sigcode != QSIGNAL_CODE ) { if ( sigcode == QSLOT_CODE ) - tqWarning( "QObject::%s: Attempt to %s non-signal %s::%s", + qWarning( "QObject::%s: Attempt to %s non-signal %s::%s", func, op, sender->className(), signal+1 ); else - tqWarning( "QObject::%s: Use the SIGNAL macro to %s %s::%s", + qWarning( "QObject::%s: Use the SIGNAL macro to %s %s::%s", func, op, sender->className(), signal ); return FALSE; } @@ -1467,7 +1467,7 @@ static bool check_member_code( int code, const QObject *object, const char *member, const char *func ) { if ( code != QSLOT_CODE && code != QSIGNAL_CODE ) { - tqWarning( "QObject::%s: Use the SLOT or SIGNAL macro to " + qWarning( "QObject::%s: Use the SLOT or SIGNAL macro to " "%s %s::%s", func, func, object->className(), member ); return FALSE; } @@ -1483,10 +1483,10 @@ static void err_member_notfound( int code, const QObject *object, case QSIGNAL_CODE: type = "signal"; break; } if ( strchr(member,')') == 0 ) // common typing mistake - tqWarning( "QObject::%s: Parentheses expected, %s %s::%s", + qWarning( "QObject::%s: Parentheses expected, %s %s::%s", func, type, object->className(), member ); else - tqWarning( "QObject::%s: No such %s %s::%s", + qWarning( "QObject::%s: No such %s %s::%s", func, type, object->className(), member ); } @@ -1497,9 +1497,9 @@ static void err_info_about_objects( const char * func, { const char * a = sender->name(), * b = receiver->name(); if ( a ) - tqWarning( "QObject::%s: (sender name: '%s')", func, a ); + qWarning( "QObject::%s: (sender name: '%s')", func, a ); if ( b ) - tqWarning( "QObject::%s: (receiver name: '%s')", func, b ); + qWarning( "QObject::%s: (receiver name: '%s')", func, b ); } static void err_info_about_candidates( int code, @@ -1524,7 +1524,7 @@ static void err_info_about_candidates( int code, break; } if ( rm ) { - tqWarning("QObject::%s: Candidate: %s", func, newname.data()); + qWarning("QObject::%s: Candidate: %s", func, newname.data()); } } } @@ -1748,7 +1748,7 @@ bool QObject::connect( const QObject *sender, const char *signal, { #if defined(QT_CHECK_NULL) if ( sender == 0 || receiver == 0 || signal == 0 || member == 0 ) { - tqWarning( "QObject::connect: Cannot connect %s::%s to %s::%s", + qWarning( "QObject::connect: Cannot connect %s::%s to %s::%s", sender ? sender->className() : "(null)", signal ? signal+1 : "(null)", receiver ? receiver->className() : "(null)", @@ -1825,7 +1825,7 @@ bool QObject::connect( const QObject *sender, const char *signal, } #if defined(QT_CHECK_RANGE) if ( !s->checkConnectArgs(signal,receiver,member) ) { - tqWarning( "QObject::connect: Incompatible sender/receiver arguments" + qWarning( "QObject::connect: Incompatible sender/receiver arguments" "\n\t%s::%s --> %s::%s", s->className(), signal, r->className(), member ); @@ -1849,7 +1849,7 @@ bool QObject::connect( const QObject *sender, const char *signal, || ( QUType::isEqual( sm->method->parameters[si-1].type, &static_QUType_varptr ) && QUType::isEqual( rm->method->parameters[ri-1].type, &static_QUType_ptr ) ) ) continue; // varptr got introduced in 3.1 and is binary compatible with ptr - tqWarning( "QObject::connect: Incompatible sender/receiver marshalling" + qWarning( "QObject::connect: Incompatible sender/receiver marshalling" "\n\t%s::%s --> %s::%s", s->className(), signal, r->className(), member ); @@ -1989,7 +1989,7 @@ bool QObject::disconnect( const QObject *sender, const char *signal, { #if defined(QT_CHECK_NULL) if ( sender == 0 || (receiver == 0 && member != 0) ) { - tqWarning( "QObject::disconnect: Unexpected null parameter" ); + qWarning( "QObject::disconnect: Unexpected null parameter" ); return FALSE; } #endif @@ -2061,7 +2061,7 @@ bool QObject::disconnect( const QObject *sender, const char *signal, } if ( signal_index < 0 ) { #if defined(QT_CHECK_RANGE) - tqWarning( "QObject::disconnect: No such signal %s::%s", + qWarning( "QObject::disconnect: No such signal %s::%s", s->className(), signal ); #endif return FALSE; @@ -2504,7 +2504,7 @@ static void dumpRecursive( int level, QObject *object ) flags += 'I'; } } - tqDebug( "%s%s::%s %s", (const char*)buf, object->className(), name, + qDebug( "%s%s::%s %s", (const char*)buf, object->className(), name, flags.latin1() ); if ( object->children() ) { QObjectListIt it(*object->children()); @@ -2546,41 +2546,41 @@ void QObject::dumpObjectTree() void QObject::dumpObjectInfo() { #if defined(QT_DEBUG) - tqDebug( "OBJECT %s::%s", className(), name( "unnamed" ) ); + qDebug( "OBJECT %s::%s", className(), name( "unnamed" ) ); int n = 0; - tqDebug( " SIGNALS OUT" ); + qDebug( " SIGNALS OUT" ); if ( connections ) { QConnectionList *clist; for ( uint i = 0; i < connections->size(); i++ ) { if ( ( clist = connections->at( i ) ) ) { - tqDebug( "\t%s", metaObject()->signal( i, TRUE )->name ); + qDebug( "\t%s", metaObject()->signal( i, TRUE )->name ); n++; register QConnection *c; QConnectionListIt cit(*clist); while ( (c=cit.current()) ) { ++cit; - tqDebug( "\t --> %s::%s %s", c->object()->className(), + qDebug( "\t --> %s::%s %s", c->object()->className(), c->object()->name( "unnamed" ), c->memberName() ); } } } } if ( n == 0 ) - tqDebug( "\t<None>" ); + qDebug( "\t<None>" ); - tqDebug( " SIGNALS IN" ); + qDebug( " SIGNALS IN" ); n = 0; if ( senderObjects ) { QObject *sender = senderObjects->first(); while ( sender ) { - tqDebug( "\t%s::%s", + qDebug( "\t%s::%s", sender->className(), sender->name( "unnamed" ) ); n++; sender = senderObjects->next(); } } if ( n == 0 ) - tqDebug( "\t<None>" ); + qDebug( "\t<None>" ); #endif } @@ -2610,7 +2610,7 @@ bool QObject::setProperty( const char *name, const QVariant& value ) int id = meta->findProperty( name, TRUE ); const QMetaProperty* p = meta->property( id, TRUE ); if ( !p || !p->isValid() || !p->writable() ) { - tqWarning( "%s::setProperty( \"%s\", value ) failed: property invalid, read-only or does not exist", + qWarning( "%s::setProperty( \"%s\", value ) failed: property invalid, read-only or does not exist", className(), name ); return FALSE; } @@ -2662,7 +2662,7 @@ QVariant QObject::property( const char *name ) const int id = meta->findProperty( name, TRUE ); const QMetaProperty* p = meta->property( id, TRUE ); if ( !p || !p->isValid() ) { - tqWarning( "%s::property( \"%s\" ) failed: property invalid or does not exist", + qWarning( "%s::property( \"%s\" ) failed: property invalid or does not exist", className(), name ); return v; } |