1
0

QtBiomeVisualiser: Fixed default zoom selection.

This commit is contained in:
Mattes D 2014-10-31 12:26:12 +01:00
parent f25e268ca0
commit c6e8da893e

View File

@ -288,15 +288,11 @@ void MainWindow::createActions()
{ {
m_actViewZoom[i] = new QAction(tr("&Zoom %1%").arg(std::floor(m_ViewZooms[i] * 100)), this); m_actViewZoom[i] = new QAction(tr("&Zoom %1%").arg(std::floor(m_ViewZooms[i] * 100)), this);
m_actViewZoom[i]->setCheckable(true); m_actViewZoom[i]->setCheckable(true);
if ((int)(m_ViewZooms[i] * 16) == 16)
{
m_actViewZoom[i]->setChecked(true);
m_CurrentZoomLevel = i;
}
m_actViewZoom[i]->setData(QVariant(i)); m_actViewZoom[i]->setData(QVariant(i));
zoomGroup->addAction(m_actViewZoom[i]); zoomGroup->addAction(m_actViewZoom[i]);
connect(m_actViewZoom[i], SIGNAL(triggered()), this, SLOT(setViewZoom())); connect(m_actViewZoom[i], SIGNAL(triggered()), this, SLOT(setViewZoom()));
} }
m_actViewZoom[m_CurrentZoomLevel]->setChecked(true);
} }