diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-13 08:32:36 +0000 |
commit | f7e71d47719ab6094cf4a9fafffa5ea351973522 (patch) | |
tree | 30834aa632d442019e14f88685001d94657d060b /kdecore/kdcoppropertyproxy.cpp | |
parent | b31cfd9a1ee986fe2ae9a693f3afd7f171dd897c (diff) | |
download | tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.tar.gz tdelibs-f7e71d47719ab6094cf4a9fafffa5ea351973522.zip |
Initial conversion for TQt for Qt4 3.4.0 TP2
This will also compile with TQt for Qt3, and should not cause any problems
with dependent modules such as kdebase. If it does then it needs to be fixed!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kdcoppropertyproxy.cpp')
-rw-r--r-- | kdecore/kdcoppropertyproxy.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kdecore/kdcoppropertyproxy.cpp b/kdecore/kdcoppropertyproxy.cpp index bc720736f..22390a4c4 100644 --- a/kdecore/kdcoppropertyproxy.cpp +++ b/kdecore/kdcoppropertyproxy.cpp @@ -94,12 +94,12 @@ TQValueList<TQCString> KDCOPPropertyProxy::functions( TQObject *object ) res << "bool setProperty(TQCString name,TQVariant property)"; res << "TQValueList<TQCString> propertyNames(bool super)"; - TQMetaObject *metaObj = object->metaObject(); + TQMetaObject *metaObj = object->tqmetaObject(); TQStrList properties = metaObj->propertyNames( true ); TQStrListIterator it( properties ); for (; it.current(); ++it ) { - const TQMetaProperty *metaProp = metaObj->property( metaObj->findProperty( it.current(), true ), true ); + const TQMetaProperty *metaProp = metaObj->property( metaObj->tqfindProperty( it.current(), true ), true ); assert( metaProp ); @@ -146,18 +146,18 @@ bool KDCOPPropertyProxy::processPropertyRequest( const TQCString &fun, const TQB replyType = "bool"; TQDataStream reply( replyData, IO_WriteOnly ); - reply << (Q_INT8)object->setProperty( propName, propValue ); + reply << (TQ_INT8)object->setProperty( propName, propValue ); return true; } if ( fun == "propertyNames(bool)" ) { - Q_INT8 b; + TQ_INT8 b; TQDataStream stream( data, IO_ReadOnly ); stream >> b; TQValueList<TQCString> res; - TQStrList props = object->metaObject()->propertyNames( static_cast<bool>( b ) ); + TQStrList props = object->tqmetaObject()->propertyNames( static_cast<bool>( b ) ); TQStrListIterator it( props ); for (; it.current(); ++it ) res.append( it.current() ); @@ -228,7 +228,7 @@ bool KDCOPPropertyProxy::processPropertyRequest( const TQCString &fun, const TQB DEMARSHAL( UInt, uint ) case TQVariant::Bool: { - Q_INT8 v; + TQ_INT8 v; stream >> v; prop = TQVariant( static_cast<bool>( v ), 1 ); } @@ -283,7 +283,7 @@ bool KDCOPPropertyProxy::processPropertyRequest( const TQCString &fun, const TQB MARSHAL( Int ) MARSHAL( UInt ) case TQVariant::Bool: - reply << (Q_INT8)prop.toBool(); + reply << (TQ_INT8)prop.toBool(); break; MARSHAL( Double ) default: @@ -314,7 +314,7 @@ bool KDCOPPropertyProxy::decodePropertyRequestInternal( const TQCString &fun, TQ propName.detach(); set = true; propName = propName.mid( 3 ); - int p1 = propName.find( '(' ); + int p1 = propName.tqfind( '(' ); uint len = propName.length(); @@ -328,7 +328,7 @@ bool KDCOPPropertyProxy::decodePropertyRequestInternal( const TQCString &fun, TQ else propName.truncate( propName.length() - 2 ); - if ( !object->metaObject()->propertyNames( true ).contains( propName ) ) + if ( !object->tqmetaObject()->propertyNames( true ).tqcontains( propName ) ) return false; return true; |