mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
LibGUI+PDFViewer: Move NumericInput into LibGUI
A text box that is restricted to numbers within a range, is generally useful. Let's make it available for use!
This commit is contained in:
parent
4fd5d450be
commit
ea31c11aff
7 changed files with 31 additions and 4 deletions
|
@ -276,7 +276,7 @@ void PDFViewerWidget::initialize_toolbar(GUI::Toolbar& toolbar)
|
|||
toolbar.add_action(*m_go_to_prev_page_action);
|
||||
toolbar.add_action(*m_go_to_next_page_action);
|
||||
|
||||
m_page_text_box = toolbar.add<NumericInput>();
|
||||
m_page_text_box = toolbar.add<GUI::NumericInput>();
|
||||
m_page_text_box->set_enabled(false);
|
||||
m_page_text_box->set_fixed_width(30);
|
||||
m_page_text_box->set_min_number(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue