mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-13 10:04:13 +02:00
new Checkbox
This commit is contained in:
@@ -275,9 +275,10 @@ void Terminal::paint(
|
||||
m_help_line_a -> setLine(line);
|
||||
}
|
||||
|
||||
// Draw label if show_name is enabled
|
||||
// Draw label if show_name is enabled and terminal names are allowed
|
||||
const QString display_name = name();
|
||||
if (d->m_show_name && !display_name.isEmpty()) {
|
||||
if (d->m_show_name && !display_name.isEmpty()
|
||||
&& (!diagram() || diagram()->drawTerminalNames())) {
|
||||
painter->setRenderHint(QPainter::Antialiasing, true);
|
||||
painter->setRenderHint(QPainter::TextAntialiasing, true);
|
||||
painter->setFont(d->m_label_font);
|
||||
|
||||
Reference in New Issue
Block a user