From 4ca0bbf6822a7dd8b5399b8edac3af1f571bbc58 Mon Sep 17 00:00:00 2001 From: joshua Date: Thu, 7 Nov 2024 18:48:53 +0100 Subject: [PATCH] Minor Add more help line for the preview of terminal strip configurator --- .../GraphicsItem/terminalstripdrawer.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sources/TerminalStrip/GraphicsItem/terminalstripdrawer.cpp b/sources/TerminalStrip/GraphicsItem/terminalstripdrawer.cpp index fcb2e78a4..57db4b70f 100644 --- a/sources/TerminalStrip/GraphicsItem/terminalstripdrawer.cpp +++ b/sources/TerminalStrip/GraphicsItem/terminalstripdrawer.cpp @@ -64,6 +64,8 @@ void TerminalStripDrawer::paint(QPainter *painter) painter->save(); painter->setPen(Qt::blue); painter->drawRect(boundingRect()); + painter->drawLine(QPointF{boundingRect().left(), boundingRect().center().y()}, + QPointF{boundingRect().right(), boundingRect().center().y()}); painter->restore(); } @@ -145,6 +147,15 @@ void TerminalStripDrawer::paint(QPainter *painter) 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 painter->save(); if (terminals_text_orientation[index_] == Qt::Horizontal)