1
0
Fork 0

GUI: Draw register labels on top of jump labels

This commit is contained in:
Nukem 2015-11-10 21:52:00 -05:00
parent 2ebb8e323d
commit 0ad44b2a0c
1 changed files with 7 additions and 7 deletions

View File

@ -399,23 +399,23 @@ void CPUSideBar::drawLabel(QPainter* painter, int Line, QString Text)
int x = 1;
int y = LineCoordinate - fontHeight;
QRect rect(x, y, width, fontHeight);
QRect rect(x, y, width, fontHeight - 1);
//draw rectangle
// Draw rectangle
painter->setBrush(IPLabelBG);
painter->setPen(QPen(IPLabelBG));
painter->drawRect(rect);
//draw text inside the rectangle
// Draw text inside the rectangle
painter->setPen(QPen(IPLabel));
painter->drawText(rect, Qt::AlignHCenter | Qt::AlignVCenter, Text);
//draw arrow
// Draw arrow
y = fontHeight * (1 + Line) - 0.5 * fontHeight;
//y+=3;
painter->setPen(QPen(IPLabelBG, 2));
painter->setPen(QPen(IPLabelBG, 2.0));
painter->setBrush(QBrush(IPLabelBG));
drawStraightArrow(painter, rect.right() + 2, y, this->viewport()->width() - x - 15, y);
drawStraightArrow(painter, rect.right() + 2, y, this->viewport()->width() - x - 11, y);
painter->restore();
}