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();
} }
@@ -142,6 +144,15 @@ void TerminalStripDrawer::paint(QPainter *painter)
//(see Qt documentation about QRect) //(see Qt documentation about QRect)
const QPoint p2 { p1.x(), p1.y() + terminal_rect.height() }; const QPoint p2 { p1.x(), p1.y() + terminal_rect.height() };
painter->drawLine(p1, p2); painter->drawLine(p1, p2);
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(); painter->restore();
} }