summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-30 16:54:23 +0100
committerMattes D <github@xoft.cz>2014-10-30 16:54:23 +0100
commitf25e268ca0641362dac80c0095730b2f17839607 (patch)
treee2912e7667885a7275d92df1da1218340fc31149
parentQtBiomeVisualiser: Added a prototyping int generator flavor. (diff)
downloadcuberite-f25e268ca0641362dac80c0095730b2f17839607.tar
cuberite-f25e268ca0641362dac80c0095730b2f17839607.tar.gz
cuberite-f25e268ca0641362dac80c0095730b2f17839607.tar.bz2
cuberite-f25e268ca0641362dac80c0095730b2f17839607.tar.lz
cuberite-f25e268ca0641362dac80c0095730b2f17839607.tar.xz
cuberite-f25e268ca0641362dac80c0095730b2f17839607.tar.zst
cuberite-f25e268ca0641362dac80c0095730b2f17839607.zip
Diffstat (limited to '')
-rw-r--r--Tools/QtBiomeVisualiser/MainWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.cpp b/Tools/QtBiomeVisualiser/MainWindow.cpp
index e6e951b60..481e49cea 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);