qeditor: when switching type tab, automagically switch view, implement reload
Change-Id: I7360af3b5dd7380151732687d6d8de3dbd503f20 Reviewed-on: http://gerrit.rockbox.org/976 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
This commit is contained in:
parent
e1f1f22b66
commit
0c633db980
2 changed files with 19 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -88,6 +88,8 @@ private slots:
|
|||
void OnAnalyserClicked(QListWidgetItem *clicked);
|
||||
void OnReadOnlyClicked(bool);
|
||||
void OnDumpRegs(bool);
|
||||
void OnBackendReload(bool);
|
||||
void OnTypeChanged(int index);
|
||||
};
|
||||
|
||||
#endif /* REGTAB_H */
|
Loading…
Reference in a new issue