Mercurial > hg > octave-lojdl
changeset 13351:c3a04e23c14f
Loading octave on startup.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Thu, 07 Apr 2011 10:55:33 +0200 |
parents | 5a13d25ce389 |
children | 5329898fbe05 |
files | gui//terminal.cpp |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gui//terminal.cpp +++ b/gui//terminal.cpp @@ -4,14 +4,19 @@ : QMdiSubWindow(), m_terminalWidget(0) { setWindowTitle("Terminal Session"); + resize(800, 400); launchTerminal(); } void Terminal::launchTerminal() { delete m_terminalWidget; - m_terminalWidget = new QTermWidget(1, this); + m_terminalWidget = new QTermWidget(0, this); m_terminalWidget->setScrollBarPosition(QTermWidget::ScrollBarRight); setWidget(m_terminalWidget); + QString programName = "octave"; + m_terminalWidget->setShellProgram(programName); + m_terminalWidget->startShellProgram(); + setFocus(); connect(m_terminalWidget, SIGNAL(finished()), this, SLOT(launchTerminal())); }