QModelIndexList matches = m_pTraceFileModel->match(start, Qt::DisplayRole, QVariant(packetIndex), 1);\r
if (matches.count() > 0)\r
{\r
- ui->treeView->setCurrentIndex(matches[0]);\r
- ui->treeView->setFocus();\r
+ selectApicallModelIndex(matches[0], true, true);\r
}\r
\r
if (m_pTimeline != NULL)\r
glvdebug_output_message("Opening trace file...");\r
glvdebug_output_message(filename.c_str());\r
\r
- QCursor origCursor = this->cursor();\r
- this->setCursor(Qt::WaitCursor);\r
+ QApplication::setOverrideCursor(Qt::WaitCursor);\r
\r
// open trace file and read in header\r
memset(&m_traceFileInfo, 0, sizeof(glvdebug_trace_file_info));\r
glvdebug_settings_updated();\r
}\r
\r
- this->setCursor(origCursor);\r
+ QApplication::restoreOverrideCursor();\r
\r
return bOpened;\r
}\r
if (select)\r
{\r
ui->treeView->setCurrentIndex(index);\r
- }\r
+ } \r
}\r
\r
float glvdebug::u64ToFloat(uint64_t value)\r