Update terminal name

This commit is contained in:
Kellermorph
2026-07-10 14:36:47 +02:00
parent c884d32dbe
commit f62ce7e4ca
2 changed files with 19 additions and 2 deletions
+2 -2
View File
@@ -280,7 +280,7 @@ void Terminal::paint(
painter->setFont(d->m_label_font);
painter->setPen(d->m_label_color);
QPointF label_pos = d->m_label_pos;
QPointF label_pos = d->m_pos + d->m_label_pos;
QFontMetrics fm(d->m_label_font);
QSizeF text_size = fm.size(Qt::TextSingleLine, d->m_name);
@@ -384,7 +384,7 @@ QRectF Terminal::boundingRect() const {
QFontMetrics fm(d->m_label_font);
QSizeF text_size = fm.size(Qt::TextSingleLine, d->m_name);
QPointF label_pos = d->m_label_pos;
QPointF label_pos = d->m_pos + d->m_label_pos;
qreal dx = 0, dy = 0;
if (d->m_label_halignment & Qt::AlignLeft) dx = 0;