From f70ffdc41a6ed134fd2efceac60eeae1c61df0f0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 1 Jun 2019 16:21:25 +0900 Subject: Adjusted to use new TQStringVariantMap type. Signed-off-by: Michele Calgaro --- kommander/editor/metadatabase.cpp | 6 +++--- kommander/editor/metadatabase.h | 2 +- kommander/editor/resource.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'kommander') diff --git a/kommander/editor/metadatabase.cpp b/kommander/editor/metadatabase.cpp index 23e97618..c84e1159 100644 --- a/kommander/editor/metadatabase.cpp +++ b/kommander/editor/metadatabase.cpp @@ -48,7 +48,7 @@ class MetaDataBaseRecord public: TQObject *object; TQStringList changedProperties; - TQMap fakeProperties; + TQStringVariantMap fakeProperties; TQMap propertyComments; int spacing, margin; TQValueList connections; @@ -237,14 +237,14 @@ TQVariant MetaDataBase::fakeProperty( TQObject * o, const TQString &property) o, o->name(), o->className() ); return TQVariant(); } - TQMap::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* MetaDataBase::fakeProperties( TQObject* o ) +TQStringVariantMap* MetaDataBase::fakeProperties( TQObject* o ) { setupDataBase(); MetaDataBaseRecord *r = db->find( (void*)o ); diff --git a/kommander/editor/metadatabase.h b/kommander/editor/metadatabase.h index 11254f0b..cb73130e 100644 --- a/kommander/editor/metadatabase.h +++ b/kommander/editor/metadatabase.h @@ -143,7 +143,7 @@ public: static void setFakeProperty( TQObject *o, const TQString &property, const TQVariant& value ); static TQVariant fakeProperty( TQObject * o, const TQString &property ); - static TQMap* fakeProperties( TQObject* o ); + static TQStringVariantMap* fakeProperties( TQObject* o ); static void setSpacing( TQObject *o, int spacing ); static int spacing( TQObject *o ); diff --git a/kommander/editor/resource.cpp b/kommander/editor/resource.cpp index d9d3fa7d..e08d25c4 100644 --- a/kommander/editor/resource.cpp +++ b/kommander/editor/resource.cpp @@ -1044,8 +1044,8 @@ void Resource::saveObjectProperties( TQObject *w, TQTextStream &ts, int indent ) } if ( w->isWidgetType() && MetaDataBase::fakeProperties( w ) ) { - TQMap* fakeProperties = MetaDataBase::fakeProperties( w ); - for ( TQMap::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" ) ) { -- cgit v1.2.1