void AiView::mouseReleaseEvent ( QMouseEvent *  event  )  [protected]
Parameters:
event : Qt mouse event

Definition at line 148 of file aiview.cpp.

00149 {
00150     if( m_isZooming )
00151     {
00152         int x = ( this->width() / 2 ) - ( m_image.width() / 2 );
00153         int y = ( this->height() / 2 ) - ( m_image.height() / 2 );
00154         m_endX = event->x();
00155         m_endY = event->y();
00156         //~ tesing if zooming zone in image *ONLY*
00157         if( m_startX >= x && m_startY >= y && m_endX <= x + m_image.width() && m_endY <= y + m_image.height() && m_endX > m_startX && m_endY > m_startY )
00158         {
00159             emit zoneZooming( m_startX - x , m_startY - y, m_endX - x, m_endY - y );
00160             m_startX = m_endX = 0;
00161         }
00162     }
00163 }

 All Classes Namespaces Files Functions Variables Typedefs

Generated on Sat Feb 27 08:33:25 2010 for AiFractals by  doxygen 1.6.1