Fix theme editor sample widgets

(cherry picked from commit a0626d7d9c)
This commit is contained in:
Pedro J. Estébanez 2018-04-25 20:12:46 +02:00 committed by Hein-Pieter van Braam
parent 02f767fe0d
commit 3bda257163
1 changed files with 3 additions and 3 deletions

View File

@ -691,11 +691,11 @@ ThemeEditor::ThemeEditor() {
test_menu_button->get_popup()->add_separator(); test_menu_button->get_popup()->add_separator();
test_menu_button->get_popup()->add_check_item(TTR("Check Item")); test_menu_button->get_popup()->add_check_item(TTR("Check Item"));
test_menu_button->get_popup()->add_check_item(TTR("Checked Item")); test_menu_button->get_popup()->add_check_item(TTR("Checked Item"));
test_menu_button->get_popup()->set_item_checked(2, true); test_menu_button->get_popup()->set_item_checked(3, true);
test_menu_button->get_popup()->add_separator(); test_menu_button->get_popup()->add_separator();
test_menu_button->get_popup()->add_check_item(TTR("Radio Item")); test_menu_button->get_popup()->add_radio_check_item(TTR("Radio Item"));
test_menu_button->get_popup()->add_radio_check_item(TTR("Checked Radio Item")); test_menu_button->get_popup()->add_radio_check_item(TTR("Checked Radio Item"));
test_menu_button->get_popup()->set_item_checked(5, true); test_menu_button->get_popup()->set_item_checked(6, true);
first_vb->add_child(test_menu_button); first_vb->add_child(test_menu_button);
OptionButton *test_option_button = memnew(OptionButton); OptionButton *test_option_button = memnew(OptionButton);