stats: fix visibility check of the statistics tab on desktop

Apparently, the visibility flag of the view is not inherited
from the statistics widget. Therefore, the statistics is
redrawn on every action even if not visible.

Set the visibility explicitly in the show- and hide-events.

This is crazy.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-03-30 23:18:15 +02:00
parent 01fb69e198
commit f299fa37f9
2 changed files with 14 additions and 0 deletions

View file

@ -37,6 +37,7 @@ private:
ChartListModel charts;
void showEvent(QShowEvent *) override;
void hideEvent(QHideEvent *) override;
};
#endif // STATSWIDGET_H