diff libgui/src/m-editor/file-editor.h @ 27330:e449134870fb

allow to sort editor tabs alphabetically (bug #42602) * file-editor.cc (check_actions): enable new action depending in number of tabs; (set_shortcut): set new shortcut to new action; (construct): add new action to view menu and to the tabs context menu; * file-editor.h: new action for sorting tabs; * shortcut-manager.cc (do_init_data): new shortcut for sorting tabs with empty default * tab-bar.cc (switch_tab): new function for sorting tabs alphabetically; (mousePressEvent): do not change current index if no tab was removed by activating an entry of the context menu; * tab-bar.h: new function sort_tabs_alph
author Torsten Lilge <ttl-octave@mailbox.org>
date Wed, 07 Aug 2019 19:21:35 +0200
parents 0915fec3d3a9
children 7cf857166440
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h	Tue Aug 06 21:14:38 2019 -0700
+++ b/libgui/src/m-editor/file-editor.h	Wed Aug 07 19:21:35 2019 +0200
@@ -431,6 +431,7 @@
     QAction *m_switch_right_tab_action;
     QAction *m_move_tab_left_action;
     QAction *m_move_tab_right_action;
+    QAction *m_sort_tabs_action;
 
     QAction *m_toggle_breakpoint_action;
     QAction *m_next_breakpoint_action;