1 #include "vogleditor_statetreesyncitem.h"
3 #include "vogl_sync_object.h"
5 vogleditor_stateTreeSyncItem::vogleditor_stateTreeSyncItem(QString name, vogleditor_stateTreeItem* parent, const vogl_sync_state& state)
6 : vogleditor_stateTreeItem(name, "", parent),
11 if (state.get_params().get<int>(GL_SYNC_STATUS, 0, &value))
13 setValue(enum_to_string(value));
17 void vogleditor_stateTreeSyncItem::set_diff_base_state(const vogl_sync_state* pBaseState)
19 m_pDiffBaseState = pBaseState;
22 bool vogleditor_stateTreeSyncItem::hasChanged() const
24 if (m_pDiffBaseState == NULL)
27 return !(m_pState->compare_restorable_state(*m_pDiffBaseState));