From b6de723eb32be64d3fcba4815719615218f9594d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 27 Aug 2019 17:01:52 +0200 Subject: TextEditor: Move line wrapping setting to a new "View" menu --- Applications/TextEditor/TextEditorWidget.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Applications/TextEditor') diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp index 2925ed292a..57056dc2aa 100644 --- a/Applications/TextEditor/TextEditorWidget.cpp +++ b/Applications/TextEditor/TextEditorWidget.cpp @@ -158,15 +158,12 @@ TextEditorWidget::TextEditorWidget() app_menu->add_action(*m_save_action); app_menu->add_action(*m_save_as_action); app_menu->add_separator(); - app_menu->add_action(*m_line_wrapping_setting_action); - app_menu->add_separator(); app_menu->add_action(GAction::create("Quit", { Mod_Alt, Key_F4 }, [](const GAction&) { GApplication::the().quit(0); return; })); menubar->add_menu(move(app_menu)); - auto edit_menu = make("Edit"); edit_menu->add_action(m_editor->undo_action()); edit_menu->add_action(m_editor->redo_action()); @@ -190,6 +187,11 @@ TextEditorWidget::TextEditorWidget() }); menubar->add_menu(move(font_menu)); + + auto view_menu = make("View"); + view_menu->add_action(*m_line_wrapping_setting_action); + menubar->add_menu(move(view_menu)); + auto help_menu = make("Help"); help_menu->add_action(GAction::create("About", [](const GAction&) { dbgprintf("FIXME: Implement Help/About\n"); -- cgit v1.2.3