GUI: fix weird font refresh issue
This commit is contained in:
parent
e0d736eb2a
commit
f5355bd7ae
|
|
@ -248,6 +248,7 @@ void AbstractTableView::paintEvent(QPaintEvent* event)
|
|||
|
||||
Q_UNUSED(event);
|
||||
QPainter wPainter(this->viewport());
|
||||
wPainter.setFont(font());
|
||||
int wViewableRowsCount = getViewableRowsCount();
|
||||
|
||||
int scrollValue = -horizontalScrollBar()->value();
|
||||
|
|
|
|||
|
|
@ -1674,6 +1674,7 @@ void RegistersView::paintEvent(QPaintEvent* event)
|
|||
}
|
||||
|
||||
QPainter wPainter(this->viewport());
|
||||
wPainter.setFont(font());
|
||||
wPainter.fillRect(wPainter.viewport(), QBrush(ConfigColor("RegistersBackgroundColor")));
|
||||
|
||||
// Don't draw the registers if a program isn't actually running
|
||||
|
|
|
|||
|
|
@ -687,6 +687,7 @@ void QHexEditPrivate::mousePressEvent(QMouseEvent* event)
|
|||
void QHexEditPrivate::paintEvent(QPaintEvent* event)
|
||||
{
|
||||
QPainter painter(this);
|
||||
painter.setFont(font());
|
||||
|
||||
painter.fillRect(event->rect(), _backgroundColor);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue