[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r1595: Remove a useless member variable in ZImageView. (trunk/src/gui/network)



Author: edmanm
Date: 2007-01-17 23:19:33 -0500 (Wed, 17 Jan 2007)
New Revision: 1595

Modified:
   trunk/src/gui/network/zimageview.cpp
   trunk/src/gui/network/zimageview.h
Log:
Remove a useless member variable in ZImageView.


Modified: trunk/src/gui/network/zimageview.cpp
===================================================================
--- trunk/src/gui/network/zimageview.cpp	2007-01-17 03:55:58 UTC (rev 1594)
+++ trunk/src/gui/network/zimageview.cpp	2007-01-18 04:19:33 UTC (rev 1595)
@@ -40,7 +40,6 @@
   _zoom = 0.0;
   _desiredX = 0.0;
   _desiredY = 0.0;
-  _mouseDown = false;
   _maxZoomFactor = 2.0;
   _padding = 60;
 
@@ -318,7 +317,6 @@
 {
   e->accept();
   setCursor(QCursor(Qt::SizeAllCursor));
-  _mouseDown = true;
   _mouseX = e->x();
   _mouseY = e->y();
   resetZoomPoint();
@@ -331,7 +329,6 @@
   setCursor(QCursor(Qt::CrossCursor));
   updateViewport();
   resetZoomPoint();
-  _mouseDown = false;
 }
 
 /** Responds to the user moving the mouse. */

Modified: trunk/src/gui/network/zimageview.h
===================================================================
--- trunk/src/gui/network/zimageview.h	2007-01-17 03:55:58 UTC (rev 1594)
+++ trunk/src/gui/network/zimageview.h	2007-01-18 04:19:33 UTC (rev 1595)
@@ -89,7 +89,6 @@
   float _padding;  /**< Amount of padding to use on the side of the image. */
   float _maxZoomFactor;  /**< Maximum amount to zoom into the image. */
 
-  bool _mouseDown;  /**< Set to true when a mouse button is depressed. */
   int  _mouseX;     /**< The x-coordinate of the current mouse position. */
   int  _mouseY;     /**< The y-coordinate of the current mouse position. */