diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-01 19:44:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-01 19:44:57 +0900 |
commit | fd634b0c147bef3af1fa68454e4d8a9cda4f9243 (patch) | |
tree | cab9beb8519adda0bfb69ae97b586151c498d704 /tools | |
parent | d795939c03a8250fa654992ff4ae807831c9292c (diff) | |
download | tqt3-fd634b0c147bef3af1fa68454e4d8a9cda4f9243.tar.gz tqt3-fd634b0c147bef3af1fa68454e4d8a9cda4f9243.zip |
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/designer/designer/metadatabase.cpp | 6 | ||||
-rw-r--r-- | tools/designer/designer/metadatabase.h | 2 | ||||
-rw-r--r-- | tools/designer/designer/resource.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tools/designer/designer/metadatabase.cpp b/tools/designer/designer/metadatabase.cpp index 0afd4b428..bdfd5cb97 100644 --- a/tools/designer/designer/metadatabase.cpp +++ b/tools/designer/designer/metadatabase.cpp @@ -64,7 +64,7 @@ class MetaDataBaseRecord public: TQObject *object; TQStringList changedProperties; - TQMap<TQString,TQVariant> fakeProperties; + TQStringVariantMap fakeProperties; TQMap<TQString, TQString> propertyComments; int spacing, margin; TQString resizeMode; @@ -272,14 +272,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/tools/designer/designer/metadatabase.h b/tools/designer/designer/metadatabase.h index 92e989000..21711c51d 100644 --- a/tools/designer/designer/metadatabase.h +++ b/tools/designer/designer/metadatabase.h @@ -162,7 +162,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/tools/designer/designer/resource.cpp b/tools/designer/designer/resource.cpp index 682da9e8a..63ac33f6b 100644 --- a/tools/designer/designer/resource.cpp +++ b/tools/designer/designer/resource.cpp @@ -1501,8 +1501,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") ) { |