diff libgui/src/variable-editor.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 bd51beb6205e
children 0c6dcf803529 d0a64e67749e
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc	Sat Jan 11 13:55:55 2020 -0800
+++ b/libgui/src/variable-editor.cc	Sun Jan 12 09:33:21 2020 -0800
@@ -326,7 +326,8 @@
         m_waiting_for_mouse_move = false;
         m_waiting_for_mouse_button_release = true;
       }
-    if (event->type () == QEvent::MouseButtonRelease && m_waiting_for_mouse_button_release)
+    if (event->type () == QEvent::MouseButtonRelease
+        && m_waiting_for_mouse_button_release)
       {
         m_waiting_for_mouse_button_release = false;
         bool retval = QDockWidget::event (event);
@@ -364,11 +365,11 @@
 
   void
   variable_dock_widget::unfloat_float (void)
-  {}
+  { }
 
   void
   variable_dock_widget::refloat (void)
-  {}
+  { }
 
 #endif
 
@@ -1113,7 +1114,7 @@
       {
         // Activating a floating window causes problems.
         if (! m_focus_widget_vdw->isFloating ())
-            activateWindow ();
+          activateWindow ();
         m_focus_widget->setFocus ();
       }
     else
@@ -1386,12 +1387,12 @@
         // The default colors are given as color roles for
         // the application's palette
         QColor default_color = qApp->palette ().color
-                              (static_cast<QPalette::ColorRole> (ve_colors[i].def.toInt ()));
-                  // FIXME: use value<QPalette::ColorRole> instead of static cast after
-                  //        dropping support of Qt 5.4
+                               (static_cast<QPalette::ColorRole> (ve_colors[i].def.toInt ()));
+        // FIXME: use value<QPalette::ColorRole> instead of static cast after
+        //        dropping support of Qt 5.4
 
         QColor setting_color =
-            settings->value (ve_colors[i].key, default_color).value<QColor> ();
+          settings->value (ve_colors[i].key, default_color).value<QColor> ();
 
         m_table_colors.replace (i, setting_color);
       }
@@ -1549,13 +1550,11 @@
 
     if (m_table_colors.length () > 4 && m_alternate_rows)
       {
-        m_stylesheet
-          += "QTableView::item:alternate{ background-color: "
-          + m_table_colors[4].name () +" }";
+        m_stylesheet += "QTableView::item:alternate{ background-color: "
+                        + m_table_colors[4].name () +" }";
 
-        m_stylesheet
-          += "QTableView::item:alternate:selected{ background-color: "
-          + m_table_colors[3].name () +" }";
+        m_stylesheet += "QTableView::item:alternate:selected{ background-color: "
+                        + m_table_colors[3].name () +" }";
       }
 
     QList<QTableView *> viewlist = findChildren<QTableView *> ();
@@ -1668,7 +1667,7 @@
 #if defined (QOBJECT_FINDCHILDREN_ACCEPTS_FINDCHILDOPTIONS)
                                                      , Qt::FindDirectChildrenOnly
 #endif
-                                                     );
+                                                    );
     for (int i = 0; i < hbuttonlist.size (); i++)
       {
         connect (hbuttonlist.at (i), SIGNAL (hovered_signal ()),
@@ -1682,7 +1681,7 @@
 #if defined (QOBJECT_FINDCHILDREN_ACCEPTS_FINDCHILDOPTIONS)
                                                            , Qt::FindDirectChildrenOnly
 #endif
-                                                           );
+                                                          );
     for (int i = 0; i < rfbuttonlist.size (); i++)
       {
         connect (rfbuttonlist.at (i), SIGNAL (about_to_activate ()),