File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 17
17
#include " qgspythondialog.h"
18
18
#include " qgspythonutils.h"
19
19
20
-
21
20
QgsPythonDialog::QgsPythonDialog (QgisInterface* pIface, QWidget *parent)
22
21
: QDialog(parent)
23
22
{
@@ -64,14 +63,12 @@ void QgsPythonDialog::on_edtCmdLine_returnPressed()
64
63
output = " <font color=\" red\" >" + escapeHtml (className) + " : " + escapeHtml (errorText) + " </font><br>" ;
65
64
}
66
65
67
- QString str = " <b><font color=\" green\" >>>></font> " + escapeHtml (command) + " </b><br>" + output;
68
- #if QT_VERSION < 0x040300
69
- txtHistory->setText (txtHistory->text () + str);
70
- #else
71
- txtHistory->setPlainText (txtHistory->toPlainText () + str);
72
- #endif
66
+ QString str = " <b><font color=\" green\" >>>></font> " + escapeHtml (command) + " </b><br>" + output;
67
+
73
68
edtCmdLine->setText (" " );
74
69
70
+ txtHistory->moveCursor (QTextCursor::End);
71
+ txtHistory->insertHtml (str);
75
72
txtHistory->moveCursor (QTextCursor::End);
76
73
txtHistory->ensureCursorVisible ();
77
74
}
You can’t perform that action at this time.
0 commit comments