summaryrefslogtreecommitdiff
path: root/utils/regtools/qeditor/regtab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/regtools/qeditor/regtab.cpp')
-rw-r--r--utils/regtools/qeditor/regtab.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/utils/regtools/qeditor/regtab.cpp b/utils/regtools/qeditor/regtab.cpp
index b3f88321fb..9292248c61 100644
--- a/utils/regtools/qeditor/regtab.cpp
+++ b/utils/regtools/qeditor/regtab.cpp
@@ -372,3 +372,20 @@ void RegTab::OnDumpRegs(bool c)
"There was an error when dumping the registers");
}
}
+
+void RegTab::OnBackendReload(bool c)
+{
+ Q_UNUSED(c);
+ m_io_backend->Reload();
+ OnDataChanged();
+}
+
+void RegTab::OnTypeChanged(int index)
+{
+ if(index == -1)
+ return;
+ if(index == 0) /* registers */
+ OnRegItemClicked(m_reg_tree->currentItem(), 0);
+ else if(index == 1) /* analysers */
+ OnAnalyserClicked(m_analysers_list->currentItem());
+}