diff libgui/graphics/Canvas.cc @ 18501:523878f76518 gui-release

style fix: eliminate lines of slashes to separate functions.
author John W. Eaton <jwe@octave.org>
date Thu, 20 Feb 2014 15:10:07 -0500
parents 49877d3be064
children fb96b7f55242
line wrap: on
line diff
--- a/libgui/graphics/Canvas.cc	Thu Feb 20 14:58:56 2014 -0500
+++ b/libgui/graphics/Canvas.cc	Thu Feb 20 15:10:07 2014 -0500
@@ -35,13 +35,9 @@
 #include "GLCanvas.h"
 #include "Utils.h"
 
-//////////////////////////////////////////////////////////////////////////////
-
 namespace QtHandles
 {
 
-//////////////////////////////////////////////////////////////////////////////
-
 void Canvas::redraw (bool sync)
 {
   if (sync)
@@ -50,15 +46,11 @@
     qWidget ()->update ();
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 void Canvas::blockRedraw (bool block)
 {
   m_redrawBlocked = block;
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 void Canvas::canvasPaintEvent (void)
 {
   if (! m_redrawBlocked)
@@ -72,8 +64,6 @@
     }
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 void Canvas::canvasMouseMoveEvent (QMouseEvent* event)
 {
   gh_manager::auto_lock lock;
@@ -146,8 +136,6 @@
     }
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 void Canvas::canvasMousePressEvent (QMouseEvent* event)
 {
   gh_manager::auto_lock lock;
@@ -293,8 +281,6 @@
     }
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 void Canvas::canvasMouseReleaseEvent (QMouseEvent* event)
 {
   if (m_mouseMode == ZoomMode
@@ -347,8 +333,6 @@
   m_mouseMode = NoMode;
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 bool Canvas::canvasKeyPressEvent (QKeyEvent* event)
 {
   if (m_eventMask & KeyPress)
@@ -365,8 +349,6 @@
   return false;
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 bool Canvas::canvasKeyReleaseEvent (QKeyEvent* event)
 {
   if (! event->isAutoRepeat () && (m_eventMask & KeyRelease))
@@ -380,8 +362,6 @@
   return false;
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 Canvas* Canvas::create (const std::string& /* name */, QWidget* parent,
 			const graphics_handle& handle)
 {
@@ -389,6 +369,4 @@
   return new GLCanvas (parent, handle);
 }
 
-//////////////////////////////////////////////////////////////////////////////
-
 }; // namespace QtHandles