Move device view above other controls, begin working on matrix display

This commit is contained in:
Adam Honse
2020-07-13 19:59:32 -05:00
parent d3993547c3
commit f787c5e63f
2 changed files with 254 additions and 234 deletions

View File

@@ -92,6 +92,13 @@ void DeviceView::paintEvent(QPaintEvent *event)
painter.drawRect((col * (box_size + box_margin)), (row * (box_size + box_margin)), box_size, box_size);
col++;
if(((controller->zones[zone_idx].matrix_map != NULL)
&&(col >= (controller->zones[zone_idx].matrix_map->width))))
{
row++;
col = 0;
}
if(col > max_cols)
{
row++;