From b451815fb11dde8dce172e7378aa553a9b2c79d2 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 29 Mar 2009 22:31:46 -0400 Subject: Connect up the grid size widget --- sigmodr/widgets/mapeditor/MapEditor.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sigmodr/widgets/mapeditor/MapEditor.cpp') diff --git a/sigmodr/widgets/mapeditor/MapEditor.cpp b/sigmodr/widgets/mapeditor/MapEditor.cpp index 002e29c2..ea129233 100644 --- a/sigmodr/widgets/mapeditor/MapEditor.cpp +++ b/sigmodr/widgets/mapeditor/MapEditor.cpp @@ -56,6 +56,7 @@ MapEditor::MapEditor(Map* map, QWidget* parent) : file.close(); ui_view = formWidget->findChild("varView"); ui_width = formWidget->findChild("varWidth"); + ui_gridSize = formWidget->findChild("varGridSize"); ui_height = formWidget->findChild("varHeight"); ui_buttonAdd = formWidget->findChild("buttonAdd"); ui_buttonRemove = formWidget->findChild("buttonRemove"); @@ -80,6 +81,7 @@ MapEditor::MapEditor(Map* map, QWidget* parent) : ui_buttonBottom->setEnabled(false); connect(ui_width, SIGNAL(valueChanged(int)), this, SLOT(setMapWidth(int))); connect(ui_height, SIGNAL(valueChanged(int)), this, SLOT(setMapHeight(int))); + connect(ui_gridSize, SIGNAL(valueChanged(int)), this, SLOT(setGridSize(int))); reset(); QVBoxLayout* layout = new QVBoxLayout; layout->addWidget(formWidget); @@ -103,6 +105,7 @@ void MapEditor::reset() ui_view->setScene(m_scene); ui_width->setValue(m_map->width()); ui_height->setValue(m_map->height()); + m_rect->setGridSize(ui_gridSize->value()); makeConnections(); } -- cgit