Allow minimization of viewer event log window

This commit is contained in:
manongjohn 2023-10-13 23:01:13 -04:00
parent fc7fb53042
commit 8f5913ea70
2 changed files with 4 additions and 11 deletions

View file

@ -14,8 +14,8 @@
//-----------------------------------------------------------------------------
ViewerEventLogPopup::ViewerEventLogPopup(QWidget *parent)
: QSplitter(parent), m_logging(false), m_lastMsgCount(0) {
setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint);
: QSplitter(parent), m_logging(true), m_lastMsgCount(0) {
setWindowFlags(Qt::WindowStaysOnTopHint);
setWindowTitle(tr("Viewer Event Log"));
// style sheet
@ -316,12 +316,6 @@ void ViewerEventLogPopup::onClearButtonPressed() { m_eventLog->clear(); }
//--------------------------------------------------
void ViewerEventLogPopup::showEvent(QShowEvent *e) {
m_logging = true;
m_pauseBtn->setText("Pause");
m_eventLog->clear();
void ViewerEventLogPopup::hideEvent(QHideEvent *e) {
if (m_logging) onPauseButtonPressed();
}
//--------------------------------------------------
void ViewerEventLogPopup::hideEvent(QHideEvent *e) { m_logging = false; }

View file

@ -36,7 +36,6 @@ public:
void addEventMessage(QEvent *e);
void showEvent(QShowEvent *e) override;
void hideEvent(QHideEvent *e) override;
public slots: