Add button to toggle graphical LED view and default to hidden

This commit is contained in:
Adam Honse 2020-08-23 02:14:54 -05:00
parent ba24efe544
commit a2ed9571cf
7 changed files with 249 additions and 196 deletions

View file

@ -390,6 +390,14 @@ void DeviceView::paintEvent(QPaintEvent* /* event */)
QPainter painter(this);
QFont font = painter.font();
/*-----------------------------------------------------*\
| If Device View is hidden, don't paint |
\*-----------------------------------------------------*/
if(isHidden())
{
return;
}
/*-----------------------------------------------------*\
| If controller has resized, reinitialize local data |
\*-----------------------------------------------------*/