Mercurial > octave
diff libgui/graphics/ListBoxControl.cc @ 23070:bef714f45999
maint: Use space after function name/before parenthesis in libgui.
* Backend.cc, ButtonControl.cc, ButtonGroup.cc, Canvas.cc, Container.cc,
EditControl.cc, GLCanvas.cc, ListBoxControl.cc, ListBoxControl.h,
PopupMenuControl.cc, QtHandlesUtils.cc, TextControl.cc, TextEdit.h,
annotation-dialog.cc, annotation-dialog.h, gl-select.cc, dialog.cc,
files-dock-widget.cc, find-files-dialog.cc, history-dock-widget.cc,
file-editor-tab.cc, file-editor.cc, file-editor.h, find-dialog.cc, marker.cc,
octave-qscintilla.cc, octave-qscintilla.h, main-window.cc,
octave-dock-widget.cc, octave-dock-widget.h, octave-gui.cc, parser.cc,
parser.h, webinfo.cc, settings-dialog.cc, shortcut-manager.cc,
welcome-wizard.cc, workspace-view.cc:
Use space after function name and before parenthesis.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 18 Jan 2017 17:36:36 -0800 |
parents | 3a2b891d0b33 |
children | ef4d915df748 |
line wrap: on
line diff
--- a/libgui/graphics/ListBoxControl.cc Wed Jan 18 17:48:32 2017 -0500 +++ b/libgui/graphics/ListBoxControl.cc Wed Jan 18 17:36:36 2017 -0800 @@ -162,7 +162,7 @@ } void - ListBoxControl::sendSelectionChange() + ListBoxControl::sendSelectionChange () { if (! m_blockCallback) { @@ -173,7 +173,7 @@ int i = 0; foreach (const QModelIndex& idx, l) - value(i++) = (idx.row () + 1); + value(i++) = idx.row () + 1; gh_manager::post_set (m_handle, "value", octave_value (value), false); gh_manager::post_callback (m_handle, "callback"); @@ -236,7 +236,7 @@ override_return = true; else { - if (! list->indexAt(m->pos()).isValid()) + if (! list->indexAt (m->pos ()).isValid ()) override_return = true; m_selectionChanged = true; } @@ -249,9 +249,9 @@ if (m->button () & Qt::RightButton) override_return = true; - else if (! list->indexAt(m->pos()).isValid()) + else if (! list->indexAt (m->pos ()).isValid ()) { - list->setCurrentRow(list->count()-1); + list->setCurrentRow (list->count () - 1); override_return = true; }