diff options
Diffstat (limited to 'kdevdesigner')
-rw-r--r-- | kdevdesigner/designer/metadatabase.cpp | 6 | ||||
-rw-r--r-- | kdevdesigner/designer/metadatabase.h | 2 | ||||
-rw-r--r-- | kdevdesigner/designer/resource.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/kdevdesigner/designer/metadatabase.cpp b/kdevdesigner/designer/metadatabase.cpp index 7aa004d7..74d8ef33 100644 --- a/kdevdesigner/designer/metadatabase.cpp +++ b/kdevdesigner/designer/metadatabase.cpp @@ -63,7 +63,7 @@ class MetaDataBaseRecord public: TQObject *object; TQStringList changedProperties; - TQMap<TQString,TQVariant> fakeProperties; + TQStringVariantMap fakeProperties; TQMap<TQString, TQString> propertyComments; int spacing, margin; TQString resizeMode; @@ -271,14 +271,14 @@ TQVariant MetaDataBase::fakeProperty( TQObject * o, const TQString &property) o, o->name(), o->className() ); return TQVariant(); } - TQMap<TQString, TQVariant>::Iterator it = r->fakeProperties.find( property ); + TQStringVariantMap::Iterator it = r->fakeProperties.find( property ); if ( it != r->fakeProperties.end() ) return r->fakeProperties[property]; return WidgetFactory::defaultValue( o, property ); } -TQMap<TQString,TQVariant>* MetaDataBase::fakeProperties( TQObject* o ) +TQStringVariantMap* MetaDataBase::fakeProperties( TQObject* o ) { setupDataBase(); MetaDataBaseRecord *r = db->find( (void*)o ); diff --git a/kdevdesigner/designer/metadatabase.h b/kdevdesigner/designer/metadatabase.h index 352e10d7..e9535945 100644 --- a/kdevdesigner/designer/metadatabase.h +++ b/kdevdesigner/designer/metadatabase.h @@ -155,7 +155,7 @@ public: static void setFakeProperty( TQObject *o, const TQString &property, const TQVariant& value ); static TQVariant fakeProperty( TQObject * o, const TQString &property ); - static TQMap<TQString,TQVariant>* fakeProperties( TQObject* o ); + static TQStringVariantMap* fakeProperties( TQObject* o ); static void setSpacing( TQObject *o, int spacing ); static int spacing( TQObject *o ); diff --git a/kdevdesigner/designer/resource.cpp b/kdevdesigner/designer/resource.cpp index a6285db5..f86490c4 100644 --- a/kdevdesigner/designer/resource.cpp +++ b/kdevdesigner/designer/resource.cpp @@ -1474,8 +1474,8 @@ void Resource::saveObjectProperties( TQObject *w, TQTextStream &ts, int indent ) } if ( w->isWidgetType() && MetaDataBase::fakeProperties( w ) ) { - TQMap<TQString, TQVariant>* fakeProperties = MetaDataBase::fakeProperties( w ); - for ( TQMap<TQString, TQVariant>::Iterator fake = fakeProperties->begin(); + TQStringVariantMap* fakeProperties = MetaDataBase::fakeProperties( w ); + for ( TQStringVariantMap::Iterator fake = fakeProperties->begin(); fake != fakeProperties->end(); ++fake ) { if ( MetaDataBase::isPropertyChanged( w, fake.key() ) ) { if ( w->inherits("CustomWidget") ) { |