Add button to toggle graphical LED view and default to hidden
This commit is contained in:
parent
ba24efe544
commit
a2ed9571cf
7 changed files with 249 additions and 196 deletions
|
|
@ -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 |
|
||||
\*-----------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue