Fix: #199 zoom toolbar moved into the visible area

This commit is contained in:
baydam
2016-02-03 13:14:25 +00:00
parent e9a64540df
commit 3238efbdb4
3 changed files with 7 additions and 8 deletions
+3 -4
View File
@@ -189,11 +189,10 @@ void MapperGLCanvas::createZoomToolsLayout()
_zoomToolBar->setLayout(buttonsLayout);
}
void MapperGLCanvas::moveZoomToolbar(const QRect &rect)
void MapperGLCanvas::updateZoomToolbar()
{
_zoomToolBar->move(rect.width() - _zoomToolBar->width(),
rect.height() - _zoomToolBar->height());
_zoomToolBar->move(this->viewport()->width() - _zoomToolBar->width(),
this->viewport()->height() - _zoomToolBar->height());
}