Allow minimization of viewer event log window
This commit is contained in:
parent
fc7fb53042
commit
8f5913ea70
|
@ -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; }
|
||||
|
|
|
@ -36,7 +36,6 @@ public:
|
|||
|
||||
void addEventMessage(QEvent *e);
|
||||
|
||||
void showEvent(QShowEvent *e) override;
|
||||
void hideEvent(QHideEvent *e) override;
|
||||
|
||||
public slots:
|
||||
|
|
Loading…
Reference in a new issue