mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Minor
Add more help line for the preview of terminal strip configurator
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user