summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-11-14 22:33:54 +0100
committerHowaner <franzi.moos@googlemail.com>2014-11-14 22:33:54 +0100
commita0e1e43fc187d79021b4e84e70729255f7f690e2 (patch)
tree933304dcec7bc698bf7c0f70fe8938d46c642113 /Tools/QtBiomeVisualiser/MainWindow.cpp
parent... in this world (diff)
parentNoise3D: Added jungles. (diff)
downloadcuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.gz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.bz2
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.lz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.xz
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.tar.zst
cuberite-a0e1e43fc187d79021b4e84e70729255f7f690e2.zip
Diffstat (limited to 'Tools/QtBiomeVisualiser/MainWindow.cpp')
-rw-r--r--Tools/QtBiomeVisualiser/MainWindow.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.cpp b/Tools/QtBiomeVisualiser/MainWindow.cpp
index e6e951b60..c6ea8656e 100644
--- a/Tools/QtBiomeVisualiser/MainWindow.cpp
+++ b/Tools/QtBiomeVisualiser/MainWindow.cpp
@@ -32,7 +32,8 @@ const double MainWindow::m_ViewZooms[] =
MainWindow::MainWindow(QWidget * parent) :
QMainWindow(parent),
m_GeneratorSetup(nullptr),
- m_LineSeparator(nullptr)
+ m_LineSeparator(nullptr),
+ m_CurrentZoomLevel(2)
{
initMinecraftPath();
@@ -41,6 +42,7 @@ MainWindow::MainWindow(QWidget * parent) :
connect(m_BiomeView, SIGNAL(decreaseZoom()), this, SLOT(decreaseZoom()));
connect(m_BiomeView, SIGNAL(wheelUp()), this, SLOT(increaseZoom()));
connect(m_BiomeView, SIGNAL(wheelDown()), this, SLOT(decreaseZoom()));
+ m_BiomeView->setZoomLevel(m_ViewZooms[m_CurrentZoomLevel]);
m_StatusBar = new QStatusBar();
this->setStatusBar(m_StatusBar);
@@ -286,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]->setCheckable(true);
- if ((int)(m_ViewZooms[i] * 16) == 16)
- {
- m_actViewZoom[i]->setChecked(true);
- m_CurrentZoomLevel = i;
- }
m_actViewZoom[i]->setData(QVariant(i));
zoomGroup->addAction(m_actViewZoom[i]);
connect(m_actViewZoom[i], SIGNAL(triggered()), this, SLOT(setViewZoom()));
}
+ m_actViewZoom[m_CurrentZoomLevel]->setChecked(true);
}