summaryrefslogtreecommitdiff
path: root/quacker/macondo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quacker/macondo.cpp')
-rw-r--r--quacker/macondo.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/quacker/macondo.cpp b/quacker/macondo.cpp
index 83e4553..cb65110 100644
--- a/quacker/macondo.cpp
+++ b/quacker/macondo.cpp
@@ -4,10 +4,8 @@
#include <QGridLayout>
#include <QPushButton>
-#include <QTimer>
Macondo::Macondo(Quackle::Game *game) : QWidget() {
- m_updateTimer = new QTimer(this);
QGridLayout *layout = new QGridLayout(this);
m_simulateButton = new QPushButton(tr("Simulate"));
layout->addWidget(m_simulateButton, 0, 0);
@@ -19,25 +17,9 @@ Macondo::Macondo(Quackle::Game *game) : QWidget() {
MacondoBackend::InitOptions initOptions(execPath);
m_backend = new MacondoBackend(game, initOptions);
connect(m_simulateButton, SIGNAL(clicked()), this, SLOT(simulate()));
- connect(m_updateTimer, SIGNAL(timeout()), this, SLOT(updateResults()));
- m_updateTimer->setInterval(1000);
}
void Macondo::simulate() {
MacondoBackend::SimulateOptions options;
m_backend->simulate(options);
- m_updateTimer->start();
-}
-
-void Macondo::updateResults() {
- switch (m_backend->command()) {
- case MacondoCommand::None:
- break;
- case MacondoCommand::Simulate:
- m_backend->getSimResults();
- break;
- case MacondoCommand::Solve:
- // TODO
- break;
- }
}