From: mzn Date: Thu, 9 Jun 2005 09:02:57 +0000 (+0000) Subject: Correction. X-Git-Tag: T3_0_0_a3~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c389397c0048f968815e64f63ac77985d489cb5;p=modules%2Fgui.git Correction. --- 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(); }