WIP: Add '*' to console when new text arrives.

This commit is contained in:
Ernie Pasveer
2025-04-20 11:30:59 -05:00
parent afc5e6fa3e
commit cb1cbc5250
4 changed files with 44 additions and 5 deletions
+14
View File
@@ -90,6 +90,11 @@ void SeerConsoleWidget::handleText (const char* buffer, int count) {
textEdit->insertAnsiText(str);
textEdit->ensureCursorVisible();
// Send signal of new text if this widget is not visable.
if (isVisible() == false) {
emit newTextAdded();
}
return;
}
@@ -523,3 +528,12 @@ void SeerConsoleWidget::resizeEvent (QResizeEvent* event) {
QWidget::resizeEvent(event);
}
void SeerConsoleWidget::showEvent (QShowEvent* event) {
// Handle the event as normal.
QWidget::showEvent(event);
// Announce we are now visable.
emit newTextViewed();
}