From b5d890ae837ea35d9f5077cf260bf85922259be9 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 7 Apr 2013 12:37:06 +0000 Subject: gui: misc cleanup --- src/gui/debate.cc | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'src/gui/debate.cc') 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); - } - } -- cgit v1.2.3