diff options
author | dos-reis <gdr@axiomatics.org> | 2013-04-07 12:37:06 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2013-04-07 12:37:06 +0000 |
commit | b5d890ae837ea35d9f5077cf260bf85922259be9 (patch) | |
tree | cc5e1cd591a2cae525392c46464a4f9c57049644 /src/gui/debate.cc | |
parent | a4633748286e4701f9430991b27a0ffa4fb49bb6 (diff) | |
download | open-axiom-b5d890ae837ea35d9f5077cf260bf85922259be9.tar.gz |
gui: misc cleanup
Diffstat (limited to 'src/gui/debate.cc')
-rw-r--r-- | src/gui/debate.cc | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/src/gui/debate.cc b/src/gui/debate.cc index deaed417..9cb19438 100644 --- a/src/gui/debate.cc +++ b/src/gui/debate.cc @@ -35,25 +35,15 @@ namespace OpenAxiom { - Debate::Debate(QTabWidget* parent, Command& cmd) - : QScrollArea(parent), conv(*this, cmd) { + Debate::Debate(QTabWidget* tab) + : super(tab), conv(this) { setWidget(&conv); setViewportMargins(0, 0, 0, 0); viewport()->setAutoFillBackground(true); viewport()->setBackgroundRole(conv.backgroundRole()); setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn); - adjustSize(); - - exchanges()->server()->launch(); - // When invoked in a --role=server mode, OpenAxiom would - // wait to be pinged before displaying a prompt. This is - // an unfortunate result of a rather awkward hack. - exchanges()->server()->input(""); - - connect(exchanges()->server(), - SIGNAL(finished(int,QProcess::ExitStatus)), - this, SLOT(done(int))); + // adjustSize(); } Debate::~Debate() { } @@ -65,11 +55,4 @@ namespace OpenAxiom { setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); } - - void Debate::done(int exit_code) { - // For the time being, shut done the whole application - // if the interpreter quits. FIXME. - QApplication::exit(exit_code); - } - } |