diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-19 02:13:50 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-19 02:13:50 -0400 |
| commit | e5d36f54f184dfc86e1878f9a6a28b9bef705507 (patch) | |
| tree | bb22540189732459bbed751df4cee7cae9b30782 /sigmodr/widgets/MapEditor.cpp | |
| parent | 2e30fe48aa3ec24cb917e5aa4b1bf9b7c1891f3f (diff) | |
| download | sigen-e5d36f54f184dfc86e1878f9a6a28b9bef705507.tar.gz sigen-e5d36f54f184dfc86e1878f9a6a28b9bef705507.tar.xz sigen-e5d36f54f184dfc86e1878f9a6a28b9bef705507.zip | |
Fix connections and defaults
Diffstat (limited to 'sigmodr/widgets/MapEditor.cpp')
| -rw-r--r-- | sigmodr/widgets/MapEditor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sigmodr/widgets/MapEditor.cpp b/sigmodr/widgets/MapEditor.cpp index 58165951..39bc136c 100644 --- a/sigmodr/widgets/MapEditor.cpp +++ b/sigmodr/widgets/MapEditor.cpp @@ -67,7 +67,7 @@ MapEditor::MapEditor(Map* map, QWidget* parent) : buttonDown->setIcon(KIcon("arrow-down")); buttonBottom->setIcon(KIcon("arrow-down-double")); connect(buttonAdd, SIGNAL(pressed()), m_scene, SLOT(addTile())); - connect(buttonRemove, SIGNAL(pressed()), m_scene, SLOT(remove())); + connect(buttonRemove, SIGNAL(pressed()), m_scene, SLOT(removeSelected())); connect(m_scene, SIGNAL(itemsSelected(bool)), buttonRemove, SLOT(setEnabled(bool))); connect(buttonTop, SIGNAL(pressed()), m_scene, SLOT(moveToTop())); connect(m_scene, SIGNAL(tilesSelected(bool)), buttonTop, SLOT(setEnabled(bool))); @@ -77,10 +77,10 @@ MapEditor::MapEditor(Map* map, QWidget* parent) : connect(m_scene, SIGNAL(tilesSelected(bool)), buttonDown, SLOT(setEnabled(bool))); connect(buttonBottom, SIGNAL(pressed()), m_scene, SLOT(moveToBottom())); connect(m_scene, SIGNAL(tilesSelected(bool)), buttonBottom, SLOT(setEnabled(bool))); - connect(varShowEffects, SIGNAL(stateChanged(int)), m_scene, SIGNAL(showEffects(int))); - connect(varShowTiles, SIGNAL(stateChanged(int)), m_scene, SIGNAL(showTiles(int))); - connect(varShowTrainers, SIGNAL(stateChanged(int)), m_scene, SIGNAL(showTrainers(int))); - connect(varShowWarps, SIGNAL(stateChanged(int)), m_scene, SIGNAL(showWarps(int))); + connect(varShowEffects, SIGNAL(stateChanged(int)), m_scene, SLOT(showEffects(int))); + connect(varShowTiles, SIGNAL(stateChanged(int)), m_scene, SLOT(showTiles(int))); + connect(varShowTrainers, SIGNAL(stateChanged(int)), m_scene, SLOT(showTrainers(int))); + connect(varShowWarps, SIGNAL(stateChanged(int)), m_scene, SLOT(showWarps(int))); QVBoxLayout* layout = new QVBoxLayout; layout->addWidget(formWidget); setLayout(layout); |
