Logo Search packages:      
Sourcecode: ktechlab version File versions

void CVBEditor::updateWorldMatrix (  ) 

Updates the world matrix from ItmeView's zoom level and from Canvas' offset.

Definition at line 622 of file itemview.cpp.

References ItemView::zoomLevel().

{
      double z = p_itemView->zoomLevel();
      QRect r = m_pCanvas->rect();
//    QWMatrix m( z, 0.0, 0.0, z, -r.left(), -r.top() );
//    QWMatrix m( z, 0.0, 0.0, z, 0.0, 0.0 );
      QWMatrix m;
      m.scale( z, z );
      m.translate( -r.left(), -r.top() );
      setWorldMatrix( m );
}


Generated by  Doxygen 1.6.0   Back to index