Add more help line for the preview of terminal strip configurator
This commit is contained in:
joshua
2024-11-07 18:48:53 +01:00
parent 258bfd7957
commit 4ca0bbf682

View File

@@ -64,6 +64,8 @@ void TerminalStripDrawer::paint(QPainter *painter)
painter->save(); painter->save();
painter->setPen(Qt::blue); painter->setPen(Qt::blue);
painter->drawRect(boundingRect()); painter->drawRect(boundingRect());
painter->drawLine(QPointF{boundingRect().left(), boundingRect().center().y()},
QPointF{boundingRect().right(), boundingRect().center().y()});
painter->restore(); painter->restore();
} }
@@ -145,6 +147,15 @@ void TerminalStripDrawer::paint(QPainter *painter)
painter->restore(); painter->restore();
} }
if(m_preview_draw)
{
painter->save();
painter->setPen(Qt::yellow);
painter->drawLine(QPoint{terminal_rect.x(), terminal_rect.y() + terminal_rect.height()/2},
QPoint{terminal_rect.width(), terminal_rect.y() + terminal_rect.height()/2});
painter->restore();
}
//Draw text //Draw text
painter->save(); painter->save();
if (terminals_text_orientation[index_] == Qt::Horizontal) if (terminals_text_orientation[index_] == Qt::Horizontal)