Add option to change grid size and save it

This commit is contained in:
jfmcarreira committed 2018-07-24 22:54:43 +01:00
1 parent 6657a738b8
commit 1810be9489
6 files changed
+62 -11

No files matched your search

+8 -2
View File
@@ -137,6 +137,12 @@ void ViewArea::setGridVisible( bool enable )
update();
}
void ViewArea::setGridSize( int size )
{
m_grid.setGridSize( size );
update();
}
void ViewArea::clearMask()
{
m_mask.clear();
@@ -579,9 +585,9 @@ void ViewArea::paintEvent( QPaintEvent* event )
//painter.fillRect( cImgWinRect, QBrush( QColor( 128, 128, 128, 128 ) ) );
painter.setPen( QColor( 50, 50, 50, 128 ) );
//painter.drawRect( cImgWinRect );
painter.setOpacity(0.7);
painter.setOpacity( 0.7 );
painter.drawPixmap( cImgWinRect, m_pixmap );
painter.setOpacity(1);
painter.setOpacity( 1 );
cVisibleWinRect.moveTopLeft( cImgWinRect.topLeft() + cVisibleWinRect.topLeft() );