summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Potashev <[email protected]>2015-05-26 19:45:48 +0300
committerAlexander Potashev <[email protected]>2015-05-26 19:48:39 +0300
commit6db46b960dcaca021ab382da22725d7c047b3db3 (patch)
treeaaaec24dcb11df873634eceeb0e5c3ccdc726333
parent7879d3bd5396a2a8b16821b4c0d7b0151b064460 (diff)
GasCreationDialog: Remove unused slot slotButtonClicked()
Call of createGasParticlesApply() already moved into GasMenuHandler::createGasParticles(), so everything works without overriding methods in GasCreationDialog. CCMAIL: [email protected]
-rw-r--r--step/gascreationdialog.cc14
-rw-r--r--step/gascreationdialog.h3
2 files changed, 0 insertions, 17 deletions
diff --git a/step/gascreationdialog.cc b/step/gascreationdialog.cc
index 1518bdb..2d55ca3 100644
--- a/step/gascreationdialog.cc
+++ b/step/gascreationdialog.cc
@@ -82,17 +82,3 @@ Ui::WidgetCreateGasParticles *GasCreationDialog::ui()
{
return _ui;
}
-
-
-// FIXME: Is this ever called??
-// There is no slotButtonClicked in QDialog...
-
-void GasCreationDialog::slotButtonClicked(int button)
-{
- if (button == QDialogButtonBox::Ok) {
- if(_handler->createGasParticlesApply())
- accept();
- } else {
- reject();
- }
-}
diff --git a/step/gascreationdialog.h b/step/gascreationdialog.h
index 41ef87e..57a79a1 100644
--- a/step/gascreationdialog.h
+++ b/step/gascreationdialog.h
@@ -42,9 +42,6 @@ public:
Ui::WidgetCreateGasParticles *ui();
-protected slots:
- void slotButtonClicked(int button);
-
protected:
Ui::WidgetCreateGasParticles *_ui;