+ m_table->selectRow(model->getRowIndex(program));
+
+ /* Update graphs */
+ if (src != m_gpuGraph) {
+ m_gpuGraph->selectProgram(program);
+ }
+
+ if (src != m_cpuGraph) {
+ m_cpuGraph->selectProgram(program);
+ }
+
+ /* Update timeline */
+ if (src != m_timeline) {
+ m_timeline->selectProgram(program);
+ }
+}
+
+
+void ProfileDialog::selectTime(int64_t start, int64_t end)
+{
+ QObject* src = QObject::sender();
+
+ /* Update table model */
+ ProfileTableModel* model = (ProfileTableModel*)m_table->model();
+ model->selectTime(start, end);
+ m_table->reset();
+
+ /* Update graphs */
+ if (src != m_gpuGraph) {
+ m_gpuGraph->selectTime(start, end);
+ }
+
+ if (src != m_cpuGraph) {
+ m_cpuGraph->selectTime(start, end);
+ }
+
+ /* Update timeline */
+ if (src != m_timeline) {
+ m_timeline->selectTime(start, end);
+ }