diff libgui/src/m-editor/file-editor-tab.cc @ 19627:472a5572849c gui-release

hiding horizontal scroll bar in editor when not needed (bug #41592) * file-editor-tab.cc (notice_settings): only show horizontal scroll bar if set in the settings and set scroll size to -1 (no scroll bar if not needed) * settings-dialog.ui: new checkbox for enabling horizontal scroll bar * settings-dialog.cc (ctor): init new checkbox with value from settings file; (write_changed_settings): write state from new checkbox into settings file
author Torsten <ttl@justmail.de>
date Fri, 26 Dec 2014 09:10:38 +0100
parents f90bb1e30de2
children 521d4959fc42
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc
+++ b/libgui/src/m-editor/file-editor-tab.cc
@@ -1904,6 +1904,10 @@
   _edit_area->setTabWidth
         (settings->value ("editor/tab_width",2).toInt ());
 
+  _edit_area->SendScintilla (QsciScintillaBase::SCI_SETHSCROLLBAR,
+        settings->value ("editor/show_hscroll_bar",true).toBool ());
+  _edit_area->SendScintilla (QsciScintillaBase::SCI_SETSCROLLWIDTH,-1);
+
   _long_title = settings->value ("editor/longWindowTitle", false).toBool ();
   update_window_title (_edit_area->isModified ());