Mercurial > octave
diff libgui/src/m-editor/file-editor.h @ 24713:36cd70fc2d63
style fixes for file editor
* file-editor.cc (file_editor_tab_widget::file_editor_tab_widget):
moved some setups of file_editor_tab_widget into its constructor;
(file_editor_tab_widget::tabBar) renamed into get_tab_bar and casting here;
(file_editor::construct): setup of tab widget moved into the constructor,
no more casting when getting the tab bar
* file-editor.h: renamed file_editor_tab_widget::tabBar
author | Torsten <mttl@mailbox.org> |
---|---|
date | Fri, 09 Feb 2018 19:57:39 +0100 |
parents | a3e67a9e7be5 |
children | 2b3e0b570e77 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.h Fri Feb 09 19:57:36 2018 +0100 +++ b/libgui/src/m-editor/file-editor.h Fri Feb 09 19:57:39 2018 +0100 @@ -38,6 +38,7 @@ #include "file-editor-interface.h" #include "file-editor-tab.h" +#include "tab-bar.h" // subclassed QTabWidget for using custom tabbar @@ -52,7 +53,7 @@ ~file_editor_tab_widget (void) = default; - QTabBar * tabBar (void) const; + tab_bar * get_tab_bar (void) const; }; // the class for the file editor