comparison libgui/src/m-editor/octave-qscintilla.cc @ 18678:6113e0c6920b

maint: Clean up extra spaces before/after parentheses.
author Rik <rik@octave.org>
date Fri, 25 Apr 2014 13:25:25 -0700
parents 1b289f45187f
children 7c78430535db
comparison
equal deleted inserted replaced
18677:f684f7075aee 18678:6113e0c6920b
113 #ifdef HAVE_QSCI_VERSION_2_6_0 113 #ifdef HAVE_QSCI_VERSION_2_6_0
114 // context menu requested 114 // context menu requested
115 void 115 void
116 octave_qscintilla::contextMenuEvent (QContextMenuEvent *e) 116 octave_qscintilla::contextMenuEvent (QContextMenuEvent *e)
117 { 117 {
118 QMenu *context_menu = createStandardContextMenu ( ); // standard menu 118 QMenu *context_menu = createStandardContextMenu (); // standard menu
119 119
120 // the menu's position 120 // the menu's position
121 QPoint global_pos, local_pos; 121 QPoint global_pos, local_pos;
122 122
123 if (e->reason () == QContextMenuEvent::Mouse) 123 if (e->reason () == QContextMenuEvent::Mouse)
201 void 201 void
202 octave_qscintilla::contextmenu_run (bool) 202 octave_qscintilla::contextmenu_run (bool)
203 { 203 {
204 QStringList commands = selectedText ().split (QRegExp("[\r\n]"), 204 QStringList commands = selectedText ().split (QRegExp("[\r\n]"),
205 QString::SkipEmptyParts); 205 QString::SkipEmptyParts);
206 for (int i = 0; i < commands.size (); i++ ) 206 for (int i = 0; i < commands.size (); i++)
207 emit execute_command_in_terminal_signal (commands.at (i)); 207 emit execute_command_in_terminal_signal (commands.at (i));
208 } 208 }
209 209
210 #endif 210 #endif