summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/propertyobject.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /kdevdesigner/designer/propertyobject.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/propertyobject.cpp')
-rw-r--r--kdevdesigner/designer/propertyobject.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/kdevdesigner/designer/propertyobject.cpp b/kdevdesigner/designer/propertyobject.cpp
index 8687033e..8053501e 100644
--- a/kdevdesigner/designer/propertyobject.cpp
+++ b/kdevdesigner/designer/propertyobject.cpp
@@ -26,21 +26,21 @@
#include "propertyobject.h"
#include "metadatabase.h"
-#include <qptrvector.h>
-#include <qptrlist.h>
-#include <qmetaobject.h>
-#include <qvariant.h>
+#include <tqptrvector.h>
+#include <tqptrlist.h>
+#include <tqmetaobject.h>
+#include <tqvariant.h>
-PropertyObject::PropertyObject( const QWidgetList &objs )
- : QObject(), objects( objs ), mobj( 0 )
+PropertyObject::PropertyObject( const TQWidgetList &objs )
+ : TQObject(), objects( objs ), mobj( 0 )
{
- QPtrVector<QPtrList<QMetaObject> > v;
+ TQPtrVector<TQPtrList<TQMetaObject> > v;
v.resize( objects.count() );
v.setAutoDelete( TRUE );
- for ( QObject *o = objects.first(); o; o = objects.next() ) {
- const QMetaObject *m = o->metaObject();
- QPtrList<QMetaObject> *mol = new QPtrList<QMetaObject>;
+ for ( TQObject *o = objects.first(); o; o = objects.next() ) {
+ const TQMetaObject *m = o->metaObject();
+ TQPtrList<TQMetaObject> *mol = new TQPtrList<TQMetaObject>;
while ( m ) {
mol->insert( 0, m );
m = m->superClass();
@@ -58,7 +58,7 @@ PropertyObject::PropertyObject( const QWidgetList &objs )
minDepth = depth;
}
- const QMetaObject *m = v[0]->at( --minDepth );
+ const TQMetaObject *m = v[0]->at( --minDepth );
for ( int j = 0; j < numObjects; ++j ) {
if ( v[j]->at( minDepth ) != m ) {
@@ -72,87 +72,87 @@ PropertyObject::PropertyObject( const QWidgetList &objs )
Q_ASSERT( mobj );
}
-bool PropertyObject::setProperty( const char *name, const QVariant& value )
+bool PropertyObject::setProperty( const char *name, const TQVariant& value )
{
- for ( QObject *o = objects.first(); o; o = objects.next() )
+ for ( TQObject *o = objects.first(); o; o = objects.next() )
o->setProperty( name, value );
return TRUE;
}
-QVariant PropertyObject::property( const char *name ) const
+TQVariant PropertyObject::property( const char *name ) const
{
return ( (PropertyObject*)this )->objects.first()->property( name );
}
-void PropertyObject::mdPropertyChanged( const QString &property, bool changed )
+void PropertyObject::mdPropertyChanged( const TQString &property, bool changed )
{
- for ( QObject *o = objects.first(); o; o = objects.next() )
+ for ( TQObject *o = objects.first(); o; o = objects.next() )
MetaDataBase::setPropertyChanged( o, property, changed );
}
-bool PropertyObject::mdIsPropertyChanged( const QString &property )
+bool PropertyObject::mdIsPropertyChanged( const TQString &property )
{
- for ( QObject *o = objects.first(); o; o = objects.next() ) {
+ for ( TQObject *o = objects.first(); o; o = objects.next() ) {
if ( MetaDataBase::isPropertyChanged( o, property ) )
return TRUE;
}
return FALSE;
}
-void PropertyObject::mdSetPropertyComment( const QString &property, const QString &comment )
+void PropertyObject::mdSetPropertyComment( const TQString &property, const TQString &comment )
{
- for ( QObject *o = objects.first(); o; o = objects.next() )
+ for ( TQObject *o = objects.first(); o; o = objects.next() )
MetaDataBase::setPropertyComment( o, property, comment );
}
-QString PropertyObject::mdPropertyComment( const QString &property )
+TQString PropertyObject::mdPropertyComment( const TQString &property )
{
return MetaDataBase::propertyComment( objects.first(), property );
}
-void PropertyObject::mdSetFakeProperty( const QString &property, const QVariant &value )
+void PropertyObject::mdSetFakeProperty( const TQString &property, const TQVariant &value )
{
- for ( QObject *o = objects.first(); o; o = objects.next() )
+ for ( TQObject *o = objects.first(); o; o = objects.next() )
MetaDataBase::setFakeProperty( o, property, value );
}
-QVariant PropertyObject::mdFakeProperty( const QString &property )
+TQVariant PropertyObject::mdFakeProperty( const TQString &property )
{
return MetaDataBase::fakeProperty( objects.first(), property );
}
-void PropertyObject::mdSetCursor( const QCursor &c )
+void PropertyObject::mdSetCursor( const TQCursor &c )
{
- for ( QObject *o = objects.first(); o; o = objects.next() ) {
+ for ( TQObject *o = objects.first(); o; o = objects.next() ) {
if ( o->isWidgetType() )
- MetaDataBase::setCursor( (QWidget*)o, c );
+ MetaDataBase::setCursor( (TQWidget*)o, c );
}
}
-QCursor PropertyObject::mdCursor()
+TQCursor PropertyObject::mdCursor()
{
return MetaDataBase::cursor( objects.first() );
}
-void PropertyObject::mdSetPixmapKey( int pixmap, const QString &arg )
+void PropertyObject::mdSetPixmapKey( int pixmap, const TQString &arg )
{
- for ( QObject *o = objects.first(); o; o = objects.next() )
+ for ( TQObject *o = objects.first(); o; o = objects.next() )
MetaDataBase::setPixmapKey( o, pixmap, arg );
}
-QString PropertyObject::mdPixmapKey( int pixmap )
+TQString PropertyObject::mdPixmapKey( int pixmap )
{
return MetaDataBase::pixmapKey( objects.first(), pixmap );
}
-void PropertyObject::mdSetExportMacro( const QString &macro )
+void PropertyObject::mdSetExportMacro( const TQString &macro )
{
- for ( QObject *o = objects.first(); o; o = objects.next() )
+ for ( TQObject *o = objects.first(); o; o = objects.next() )
MetaDataBase::setExportMacro( o, macro );
}
-QString PropertyObject::mdExportMacro()
+TQString PropertyObject::mdExportMacro()
{
return MetaDataBase::exportMacro( objects.first() );
}