diff libgui/src/m-editor/octave-qscintilla.cc @ 27935:f1844e33f621

maint: Use Octave coding conventions in libgui/ directory. * Table.cc, qt-graphics-toolkit.cc, documentation.cc, documentation.h, files-dock-widget.cc, find-files-dialog.cc, gui-preferences-cs.h, gui-preferences-dw.h, gui-preferences-ed.h, gui-preferences-ff.h, gui-preferences-mw.h, gui-preferences-sc.h, history-dock-widget.cc, file-editor-tab.cc, file-editor.cc, find-dialog.cc, octave-qscintilla.cc, main-window.cc, octave-dock-widget.cc, octave-qobject.cc, resource-manager.cc, set-path-dialog.cc, set-path-model.cc, settings-dialog.cc, settings-dialog.h, shortcut-manager.cc, tab-bar.cc, variable-editor.cc, workspace-model.cc, workspace-model.h, workspace-view.cc: Use Octave coding conventions in libgui/ directory.
author Rik <rik@octave.org>
date Sun, 12 Jan 2020 09:33:21 -0800
parents 265b386f8b20
children c20b7290c778
line wrap: on
line diff
--- a/libgui/src/m-editor/octave-qscintilla.cc	Sat Jan 11 13:55:55 2020 -0800
+++ b/libgui/src/m-editor/octave-qscintilla.cc	Sun Jan 12 09:33:21 2020 -0800
@@ -418,7 +418,8 @@
                 comment_string = settings->value (ed_comment_str).toInt ();
               else
                 // old version (combo box)
-                comment_string = settings->value (ed_comment_str_old.key,                                                  ed_comment_str.def).toInt ();
+                comment_string = settings->value (ed_comment_str_old.key,
+                                                  ed_comment_str.def).toInt ();
 
               return (QStringList (ed_comment_strings.at (comment_string)));
             }
@@ -699,7 +700,7 @@
           }
 
         if (mid_block_regexp.indexIn (line_text) > -1)
-            indent_column -= indent_increment;
+          indent_column -= indent_increment;
 
         if (case_block_regexp.indexIn (line_text) > -1)
           {
@@ -782,10 +783,10 @@
   void octave_qscintilla::contextmenu_run_temp_error (void)
   {
     QMessageBox::critical (this, tr ("Octave Editor"),
-                        tr ("Creating temporary files failed.\n"
-                            "Make sure you have write access to temp. directory\n"
-                             "%1\n\n"
-                             "\"Run Selection\" requires temporary files.").arg (QDir::tempPath ()));
+                           tr ("Creating temporary files failed.\n"
+                               "Make sure you have write access to temp. directory\n"
+                               "%1\n\n"
+                               "\"Run Selection\" requires temporary files.").arg (QDir::tempPath ()));
   }
 
   void octave_qscintilla::contextmenu_run (bool)
@@ -879,14 +880,14 @@
         // %3 : command line (eval and display)
         // %4 : command line for history (via fprintf)
         code += QString ("%1 (%2, '%3', '%4');\n"
-                          + next_bp_quiet
-                          + "%3\n"
-                          + next_bp_quiet_reset
-                          + "\n")
-                         .arg (tmp_script_name)
-                         .arg (i)
-                         .arg (line)
-                         .arg (line_history);
+                         + next_bp_quiet
+                         + "%3\n"
+                         + next_bp_quiet_reset
+                         + "\n")
+                .arg (tmp_script_name)
+                .arg (i)
+                .arg (line)
+                .arg (line_history);
       }
 
     code += QString ("munlock (\"%1\"); clear %1;\n").arg (tmp_script_name);