1
0
Fork 0

GUI: big performance gains in the GUI

This commit is contained in:
mrexodia 2016-09-06 07:59:51 +02:00
parent 267e35ccae
commit 76c8834bf3
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
5 changed files with 5 additions and 5 deletions

View File

@ -2523,7 +2523,7 @@ void RegistersView::debugStateChangedSlot(DBGSTATE state)
void RegistersView::repaint()
{
this->viewport()->repaint();
this->viewport()->update();
}
SIZE_T RegistersView::GetSizeRegister(const REGISTER_NAME reg_name)

View File

@ -329,7 +329,7 @@ void ScriptView::keyPressEvent(QKeyEvent* event)
{
setTableOffset(getInitialSelection() - getNbrOfLineToPrint() + 2);
}
repaint();
reloadData();
}
else if(key == Qt::Key_Return || key == Qt::Key_Enter)
{

View File

@ -46,7 +46,7 @@ void StatusLabel::debugStateChangedSlot(DBGSTATE state)
break;
}
this->repaint();
this->update();
}
void StatusLabel::logUpdate(QString message)

View File

@ -208,7 +208,7 @@ void QHexEditPrivate::setHorizontalSpacing(int x)
_horizonalSpacing = x;
adjust();
setCursorPos(cursorPos());
this->repaint();
this->update();
}
int QHexEditPrivate::horizontalSpacing()

View File

@ -42,7 +42,7 @@ void RichTextPainter::paintRichText(QPainter* painter, int x, int y, int w, int
painter->setPen(pen);
break;
}
painter->drawText(QRect(x + xinc, y, w - xinc, h), 0, curRichText.text); //TODO: this bottlenecks
painter->drawText(QRect(x + xinc, y, w - xinc, h), Qt::TextBypassShaping, curRichText.text);
if(curRichText.highlight)
{
highlightPen.setColor(curRichText.highlightColor);