From ca5072e8110eef06e6714f1bebe110f99824c905 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Tue, 10 Nov 2015 13:46:48 +0000 Subject: [PATCH] Set grid visible when open new window --- app/GridManager.cpp | 1 - app/VideoHandle.cpp | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app/GridManager.cpp b/app/GridManager.cpp index 01ce3ad..be677fa 100644 --- a/app/GridManager.cpp +++ b/app/GridManager.cpp @@ -66,7 +66,6 @@ void GridManager::drawGrid( QPixmap &image, const QRect& area, QPainter *painter QPen mainPen = QPen( color, 1, Qt::SolidLine ); style = Solid; - hSpacing = vSpacing = 64; switch( style ) { case IntersectionDot: diff --git a/app/VideoHandle.cpp b/app/VideoHandle.cpp index 45dc638..0510b73 100644 --- a/app/VideoHandle.cpp +++ b/app/VideoHandle.cpp @@ -372,6 +372,7 @@ Void VideoHandle::openSubWindow( VideoSubWindow* subWindow ) { connect( subWindow->getViewArea(), SIGNAL( selectionChanged( QRect ) ), this, SLOT( updateSelectionArea( QRect ) ) ); subWindow->getViewArea()->setTool( m_uiViewTool ); + subWindow->getViewArea()->setGridVisible( m_arrayActions[SHOW_GRID_ACT]->isChecked() ); } Void VideoHandle::closeSubWindow( SubWindowAbstract* subWindow )