GUI: big performance gains in the GUI
This commit is contained in:
parent
267e35ccae
commit
76c8834bf3
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ void StatusLabel::debugStateChangedSlot(DBGSTATE state)
|
|||
break;
|
||||
}
|
||||
|
||||
this->repaint();
|
||||
this->update();
|
||||
}
|
||||
|
||||
void StatusLabel::logUpdate(QString message)
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ void QHexEditPrivate::setHorizontalSpacing(int x)
|
|||
_horizonalSpacing = x;
|
||||
adjust();
|
||||
setCursorPos(cursorPos());
|
||||
this->repaint();
|
||||
this->update();
|
||||
}
|
||||
|
||||
int QHexEditPrivate::horizontalSpacing()
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue