mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
HexEditor: Show status tips in Statusbar
This commit is contained in:
parent
200892868a
commit
aa7346d23e
1 changed files with 7 additions and 0 deletions
|
@ -272,6 +272,13 @@ HexEditorWidget::HexEditorWidget()
|
||||||
m_statusbar->segment(0).set_action(*m_goto_offset_action);
|
m_statusbar->segment(0).set_action(*m_goto_offset_action);
|
||||||
|
|
||||||
m_editor->set_focus(true);
|
m_editor->set_focus(true);
|
||||||
|
|
||||||
|
GUI::Application::the()->on_action_enter = [this](GUI::Action& action) {
|
||||||
|
m_statusbar->set_override_text(action.status_tip());
|
||||||
|
};
|
||||||
|
GUI::Application::the()->on_action_leave = [this](GUI::Action&) {
|
||||||
|
m_statusbar->set_override_text({});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
void HexEditorWidget::update_inspector_values(size_t position)
|
void HexEditorWidget::update_inspector_values(size_t position)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue