1 #include "vogleditor_statetreequeryitem.h"
3 #include "vogl_query_state.h"
6 vogleditor_stateTreeQueryItem::vogleditor_stateTreeQueryItem(QString name, GLuint64 handle, vogleditor_stateTreeItem* parent, const vogl_query_state* pState)
7 : vogleditor_stateTreeItem(name, "", parent),
10 m_pDiffBaseState(NULL)
13 tmp = tmp.sprintf("%s (%" PRIi64 ")", enum_to_string(pState->get_target()).toStdString().c_str(), pState->get_prev_result());
17 void vogleditor_stateTreeQueryItem::set_diff_base_state(const vogl_query_state* pBaseState)
19 m_pDiffBaseState = pBaseState;
22 bool vogleditor_stateTreeQueryItem::hasChanged() const
24 if (m_pDiffBaseState == NULL)
27 if (m_pState->get_target() != m_pDiffBaseState->get_target())
30 if (m_pState->get_prev_result() != m_pDiffBaseState->get_prev_result())