mirror of
https://github.com/epasveer/seer.git
synced 2026-08-31 01:20:45 +08:00
WIP: Add '*' to console when new text arrives.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user