1
0
Fork 0

GUI: fix weird font refresh issue

This commit is contained in:
Duncan Ogilvie 2020-07-11 16:50:08 +02:00
parent e0d736eb2a
commit f5355bd7ae
3 changed files with 3 additions and 0 deletions

View File

@ -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();

View File

@ -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

View File

@ -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);