: m_parentItem(NULL),
m_pApiCallItem(NULL),
m_pFrameItem(NULL),
- m_pModel(pModel)
+ m_pModel(pModel),
+ m_localRowIndex(0)
{
m_columnData[VOGL_ACTC_APICALL] = "API Call";
m_columnData[VOGL_ACTC_INDEX] = "Index";
m_columnData[VOGL_ACTC_FLAGS] = "";
+ m_columnData[VOGL_ACTC_GLCONTEXT] = "GL Context";
//m_ColumnTitles[VOGL_ACTC_BEGINTIME] = "Begin Time";
//m_ColumnTitles[VOGL_ACTC_ENDTIME] = "End Time";
m_columnData[VOGL_ACTC_DURATION] = "Duration (ns)";
: m_parentItem(parent),
m_pApiCallItem(NULL),
m_pFrameItem(frameItem),
- m_pModel(NULL)
+ m_pModel(NULL),
+ m_localRowIndex(0)
{
if (frameItem != NULL)
{
: m_parentItem(parent),
m_pApiCallItem(apiCallItem),
m_pFrameItem(NULL),
- m_pModel(NULL)
+ m_pModel(NULL),
+ m_localRowIndex(0)
{
m_columnData[VOGL_ACTC_APICALL] = nodeText;
{
m_columnData[VOGL_ACTC_INDEX] = (qulonglong)apiCallItem->globalCallIndex();
m_columnData[VOGL_ACTC_FLAGS] = "";
+ dynamic_string strContext;
+ m_columnData[VOGL_ACTC_GLCONTEXT] = strContext.format("0x%" PRIx64, apiCallItem->getGLPacket()->m_context_handle).c_str();
//m_columnData[VOGL_ACTC_BEGINTIME] = apiCallItem->startTime();
//m_columnData[VOGL_ACTC_ENDTIME] = apiCallItem->endTime();
m_columnData[VOGL_ACTC_DURATION] = (qulonglong)apiCallItem->duration();
void vogleditor_apiCallTreeItem::appendChild(vogleditor_apiCallTreeItem* pChild)
{
- m_childItems.append(pChild);
+ pChild->m_localRowIndex = m_childItems.size();
+ m_childItems.append(pChild);
}
int vogleditor_apiCallTreeItem::childCount() const
int vogleditor_apiCallTreeItem::row() const
{
// note, this is just the row within the current level of the hierarchy
- if (m_parentItem)
- return m_parentItem->m_childItems.indexOf(const_cast<vogleditor_apiCallTreeItem*>(this));
-
- return 0;
+ return m_localRowIndex;
}