Skip to content

Commit

Permalink
update log textedit from append to inserthtml to fix display issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Glowacki committed Dec 7, 2023
1 parent 794f515 commit 2c6f267
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,16 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QS
{
h_msg.replace("\n", "<br>");
}
uProbeX::log_textedit->append(h_msg);
uProbeX::log_textedit->insertHtml(h_msg);
//uProbeX::log_textedit->ensureCursorVisible();
break;
case QtWarningMsg:
h_msg = "<span style=\"color : yellow; \">" + msg + "</span><br />";
uProbeX::log_textedit->append(h_msg);
uProbeX::log_textedit->insertHtml(h_msg);
break;
case QtCriticalMsg:
h_msg = "<span style=\"color : red; \">" + msg + "</span><br />";
uProbeX::log_textedit->append(h_msg);
uProbeX::log_textedit->insertHtml(h_msg);
break;
case QtFatalMsg:
abort();
Expand Down

0 comments on commit 2c6f267

Please sign in to comment.