diff options
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r-- | src/gui/debugwindow.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index ebf7d974..d6d99307 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -44,6 +44,7 @@ DebugWindow::DebugWindow(): setWindowName("Debug"); setResizable(true); + setCloseButton(true); setDefaultSize(0, 0, 400, 100); loadWindowState(); @@ -62,15 +63,11 @@ DebugWindow::DebugWindow(): mParticleCountLabel = new gcn::Label("[Particle count: 0]"); mParticleCountLabel->setPosition(100, 60); - Button *closeButton = new Button("Close", "close", this); - closeButton->setPosition(5, 60); - add(mFPSLabel); add(mMusicFileLabel); add(mMapFileLabel); add(mTileMouseLabel); add(mParticleCountLabel); - add(closeButton); } void @@ -108,12 +105,3 @@ DebugWindow::logic() +"]"); mParticleCountLabel->adjustSize(); } - -void -DebugWindow::action(const gcn::ActionEvent &event) -{ - if (event.getId() == "close") - { - setVisible(false); - } -} |