StelPropertyMgr.cpp   StelPropertyMgr.cpp 
skipping to change at line 32 skipping to change at line 32
if(getValue() == value) if(getValue() == value)
return true; return true;
return prop.write(target,value); return prop.write(target,value);
} }
bool StelProperty::isReadOnly() const bool StelProperty::isReadOnly() const
{ {
return !prop.isWritable(); return !prop.isWritable();
} }
bool StelProperty::isSynchronizable() const
{
return prop.isWritable() && prop.isStored();
}
bool StelProperty::canNotify() const bool StelProperty::canNotify() const
{ {
return prop.hasNotifySignal(); return prop.hasNotifySignal();
} }
QMetaType::Type StelProperty::getType() const QMetaType::Type StelProperty::getType() const
{ {
//Qt is quite funky when it comes to QVariant::Type vs QMetaType::Ty pe, see //Qt is quite funky when it comes to QVariant::Type vs QMetaType::Ty pe, see
//https://doc.qt.io/qt-5/qvariant.html#type //https://doc.qt.io/qt-5/qvariant.html#type
//and https://stackoverflow.com/questions/31290606/qmetatypefloat-no t-in-qvarianttype //and https://stackoverflow.com/questions/31290606/qmetatypefloat-no t-in-qvarianttype
skipping to change at line 119 skipping to change at line 124
qWarning()<<"StelProperty"<<id<<"not found"; qWarning()<<"StelProperty"<<id<<"not found";
return prop; return prop;
} }
void StelPropertyMgr::onStelPropChanged(const QVariant &val) void StelPropertyMgr::onStelPropChanged(const QVariant &val)
{ {
StelProperty* prop = qobject_cast<StelProperty*>(sender()); StelProperty* prop = qobject_cast<StelProperty*>(sender());
#ifndef NDEBUG #ifndef NDEBUG
qDebug()<<"StelProperty"<<prop->getId()<<"changed, value"<<val; qDebug()<<"StelProperty"<<prop->getId()<<"changed, value"<<val;
#endif #endif
emit stelPropChanged(prop->getId(),val); emit stelPropertyChanged(prop, val);
} }
QStringList StelPropertyMgr::getPropertyList() const QStringList StelPropertyMgr::getPropertyList() const
{ {
return propMap.keys(); return propMap.keys();
} }
void StelPropertyMgr::registerObject(QObject *obj) void StelPropertyMgr::registerObject(QObject *obj)
{ {
const QString name = obj->objectName(); const QString name = obj->objectName();
 End of changes. 2 change blocks. 
1 lines changed or deleted 6 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/