diff libgui/src/m-editor/file-editor.h @ 21002:314245afff3a

add a menu entry for showing/hiding the editor horizontal scrollbar * file-editor.cc (show_hscrollbar): new slot; (notice_settings): check menu entry depending on settings, showing/hiding horizontal scroll bar is done in the editor tabs; (construct): add new action to the view menu; (set_shortcuts): set the shortcut for the new action * file-editor.h: new action with new slot * shortcut-manager.cc (do_init_data) initialize shortcut data for show horizontal scrollbar action
author Torsten <ttl@justmail.de>
date Mon, 28 Dec 2015 20:35:51 +0100
parents 1c91ff4cf9ec
children 221847e5f488
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h	Mon Dec 28 19:50:49 2015 +0100
+++ b/libgui/src/m-editor/file-editor.h	Mon Dec 28 20:35:51 2015 +0100
@@ -275,6 +275,7 @@
   void show_long_line (bool);
   void show_toolbar (bool);
   void show_statusbar (bool);
+  void show_hscrollbar (bool);
   void zoom_in (bool);
   void zoom_out (bool);
   void zoom_normal (bool);
@@ -352,6 +353,7 @@
   QAction *_show_longline_action;
   QAction *_show_toolbar_action;
   QAction *_show_statusbar_action;
+  QAction *_show_hscrollbar_action;
   QAction *_zoom_in_action;
   QAction *_zoom_out_action;
   QAction *_zoom_normal_action;