|
|
|
@ -64,7 +64,7 @@ class MetaDataBaseRecord
|
|
|
|
|
public:
|
|
|
|
|
QObject *object;
|
|
|
|
|
QStringList changedProperties;
|
|
|
|
|
QMap<QString,QVariant> fakeProperties;
|
|
|
|
|
QStringVariantMap fakeProperties;
|
|
|
|
|
QMap<QString, QString> propertyComments;
|
|
|
|
|
int spacing, margin;
|
|
|
|
|
QString resizeMode;
|
|
|
|
@ -272,14 +272,14 @@ QVariant MetaDataBase::fakeProperty( QObject * o, const QString &property)
|
|
|
|
|
o, o->name(), o->className() );
|
|
|
|
|
return QVariant();
|
|
|
|
|
}
|
|
|
|
|
QMap<QString, QVariant>::Iterator it = r->fakeProperties.find( property );
|
|
|
|
|
QStringVariantMap::Iterator it = r->fakeProperties.find( property );
|
|
|
|
|
if ( it != r->fakeProperties.end() )
|
|
|
|
|
return r->fakeProperties[property];
|
|
|
|
|
return WidgetFactory::defaultValue( o, property );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QMap<QString,QVariant>* MetaDataBase::fakeProperties( QObject* o )
|
|
|
|
|
QStringVariantMap* MetaDataBase::fakeProperties( QObject* o )
|
|
|
|
|
{
|
|
|
|
|
setupDataBase();
|
|
|
|
|
MetaDataBaseRecord *r = db->find( (void*)o );
|
|
|
|
|