Mercurial > octave
diff libgui/src/welcome-wizard.h @ 27087:4092ffc1e43c
fix size of the welcome wizard (bug #56265)
* welcome-wizard.cc (welcome_wizard): initialize new class variables for
width and height, do not use screen size but get the required size for
all three pages and resize widget accordingly;
(adjust_size): new method for updating the required size;
(initial_page::initial_page)
(setup_community_news::setup_community_news)
(final_page::final_page): adjust spacing and size policy
* welcome-wizard.h: new method adjust_size and new class variables for
max. width and heigth
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Fri, 10 May 2019 22:15:37 +0200 |
parents | 00f796120a6d |
children | da1f59fe04b3 |
line wrap: on
line diff
--- a/libgui/src/welcome-wizard.h Wed Apr 10 21:45:54 2019 -0700 +++ b/libgui/src/welcome-wizard.h Fri May 10 22:15:37 2019 +0200 @@ -42,12 +42,16 @@ ~welcome_wizard (void) = default; + void adjust_size (void); + private: QList<page_creator_fptr> m_page_ctor_list; QList<page_creator_fptr>::iterator m_page_list_iterator; QWidget *m_current_page; bool m_allow_web_connect_state; + int m_max_height; + int m_max_width; private slots: