From 6c389397c0048f968815e64f63ac77985d489cb5 Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 9 Jun 2005 09:02:57 +0000 Subject: [PATCH] Correction. --- src/PythonConsole/Makefile.in | 3 ++- src/PythonConsole/PythonConsole_PyConsole.h | 2 ++ src/PythonConsole/PythonConsole_PyEditor.cxx | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/PythonConsole/Makefile.in b/src/PythonConsole/Makefile.in index 991dd70c4..b1b1713ea 100755 --- a/src/PythonConsole/Makefile.in +++ b/src/PythonConsole/Makefile.in @@ -25,7 +25,8 @@ LIB_SRC= PythonConsole_PyConsole.cxx \ PythonConsole_PyInterp.cxx LIB_MOC = \ - PythonConsole_PyEditor.h + PythonConsole_PyEditor.h \ + PythonConsole_PyConsole.h CPPFLAGS+= $(PYTHON_INCLUDES) $(QT_INCLUDES) diff --git a/src/PythonConsole/PythonConsole_PyConsole.h b/src/PythonConsole/PythonConsole_PyConsole.h index a35d213c6..77add6018 100755 --- a/src/PythonConsole/PythonConsole_PyConsole.h +++ b/src/PythonConsole/PythonConsole_PyConsole.h @@ -10,6 +10,8 @@ class PyInterp_base; class PYCONSOLE_EXPORT PythonConsole: public QWidget { + Q_OBJECT; + public: PythonConsole(QWidget* parent, PyInterp_base* interp = 0 ); virtual ~PythonConsole(); diff --git a/src/PythonConsole/PythonConsole_PyEditor.cxx b/src/PythonConsole/PythonConsole_PyEditor.cxx index 7ba34c58d..4bc6b899f 100755 --- a/src/PythonConsole/PythonConsole_PyEditor.cxx +++ b/src/PythonConsole/PythonConsole_PyEditor.cxx @@ -149,7 +149,7 @@ void PythonConsole_PyEditor::exec( const QString& command ) _currentPrompt = READY_PROMPT; _buf.truncate(0); _isInHistory = false; - setText(_currentPrompt); + setText( "\n" + _currentPrompt); setText( command + "\n" ); handleReturn(); } -- 2.39.2