Swapped repaints which weren't in paintEvents to updates
This commit is contained in:
parent
defe153caa
commit
9b145bf269
|
@ -81,7 +81,7 @@ void CPUSideBar::debugStateChangedSlot(DBGSTATE state)
|
||||||
{
|
{
|
||||||
if(state == stopped)
|
if(state == stopped)
|
||||||
{
|
{
|
||||||
repaint(); //clear
|
update(); //clear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ void CPUSideBar::changeTopmostAddress(dsint i)
|
||||||
topVA = i;
|
topVA = i;
|
||||||
memset(®Dump, 0, sizeof(REGDUMP));
|
memset(®Dump, 0, sizeof(REGDUMP));
|
||||||
DbgGetRegDump(®Dump);
|
DbgGetRegDump(®Dump);
|
||||||
repaint();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPUSideBar::setViewableRows(int rows)
|
void CPUSideBar::setViewableRows(int rows)
|
||||||
|
@ -109,7 +109,7 @@ void CPUSideBar::setSelection(dsint selVA)
|
||||||
if(selVA != selectedVA)
|
if(selVA != selectedVA)
|
||||||
{
|
{
|
||||||
selectedVA = selVA;
|
selectedVA = selVA;
|
||||||
repaint();
|
update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -349,7 +349,7 @@ void CPUSideBar::mouseReleaseEvent(QMouseEvent* e)
|
||||||
mCodeFoldingManager.delFoldSegment(wVA);
|
mCodeFoldingManager.delFoldSegment(wVA);
|
||||||
}
|
}
|
||||||
mDisas->reloadData();
|
mDisas->reloadData();
|
||||||
viewport()->repaint();
|
viewport()->update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(x < bulletX - mBulletRadius)
|
if(x < bulletX - mBulletRadius)
|
||||||
|
|
|
@ -15,7 +15,7 @@ CPUWidget::CPUWidget(QWidget* parent) : QWidget(parent), ui(new Ui::CPUWidget)
|
||||||
connect(mDisas, SIGNAL(selectionChanged(dsint)), mSideBar, SLOT(setSelection(dsint)));
|
connect(mDisas, SIGNAL(selectionChanged(dsint)), mSideBar, SLOT(setSelection(dsint)));
|
||||||
connect(mDisas, SIGNAL(disassembledAt(dsint, dsint, bool, dsint)), mArgumentWidget, SLOT(disassembledAtSlot(dsint, dsint, bool, dsint)));
|
connect(mDisas, SIGNAL(disassembledAt(dsint, dsint, bool, dsint)), mArgumentWidget, SLOT(disassembledAtSlot(dsint, dsint, bool, dsint)));
|
||||||
connect(Bridge::getBridge(), SIGNAL(dbgStateChanged(DBGSTATE)), mSideBar, SLOT(debugStateChangedSlot(DBGSTATE)));
|
connect(Bridge::getBridge(), SIGNAL(dbgStateChanged(DBGSTATE)), mSideBar, SLOT(debugStateChangedSlot(DBGSTATE)));
|
||||||
connect(Bridge::getBridge(), SIGNAL(updateSideBar()), mSideBar, SLOT(repaint()));
|
connect(Bridge::getBridge(), SIGNAL(updateSideBar()), mSideBar, SLOT(update()));
|
||||||
connect(Bridge::getBridge(), SIGNAL(updateArgumentView()), mArgumentWidget, SLOT(refreshData()));
|
connect(Bridge::getBridge(), SIGNAL(updateArgumentView()), mArgumentWidget, SLOT(refreshData()));
|
||||||
mDisas->setCodeFoldingManager(mSideBar->getCodeFoldingManager());
|
mDisas->setCodeFoldingManager(mSideBar->getCodeFoldingManager());
|
||||||
|
|
||||||
|
|
|
@ -143,6 +143,7 @@ MainWindow::MainWindow(QWidget* parent)
|
||||||
mThreadView->setWindowIcon(QIcon(":/icons/images/arrow-threads.png"));
|
mThreadView->setWindowIcon(QIcon(":/icons/images/arrow-threads.png"));
|
||||||
|
|
||||||
// Snowman view (decompiler)
|
// Snowman view (decompiler)
|
||||||
|
|
||||||
mSnowmanView = CreateSnowman(this);
|
mSnowmanView = CreateSnowman(this);
|
||||||
if(!mSnowmanView)
|
if(!mSnowmanView)
|
||||||
mSnowmanView = (SnowmanView*)new QLabel("<center>Snowman is disabled...</center>", this);
|
mSnowmanView = (SnowmanView*)new QLabel("<center>Snowman is disabled...</center>", this);
|
||||||
|
|
|
@ -1122,7 +1122,7 @@ RegistersView::RegistersView(QWidget* parent) : QScrollArea(parent), mVScrollOff
|
||||||
connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(displayCustomContextMenuSlot(QPoint)));
|
connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(displayCustomContextMenuSlot(QPoint)));
|
||||||
connect(Bridge::getBridge(), SIGNAL(dbgStateChanged(DBGSTATE)), this, SLOT(debugStateChangedSlot(DBGSTATE)));
|
connect(Bridge::getBridge(), SIGNAL(dbgStateChanged(DBGSTATE)), this, SLOT(debugStateChangedSlot(DBGSTATE)));
|
||||||
// self communication for repainting (maybe some other widgets needs this information, too)
|
// self communication for repainting (maybe some other widgets needs this information, too)
|
||||||
connect(this, SIGNAL(refresh()), this, SLOT(repaint()));
|
connect(this, SIGNAL(refresh()), this, SLOT(update()));
|
||||||
// context menu actions
|
// context menu actions
|
||||||
connect(wCM_Increment, SIGNAL(triggered()), this, SLOT(onIncrementAction()));
|
connect(wCM_Increment, SIGNAL(triggered()), this, SLOT(onIncrementAction()));
|
||||||
connect(wCM_ChangeFPUView, SIGNAL(triggered()), this, SLOT(onChangeFPUViewAction()));
|
connect(wCM_ChangeFPUView, SIGNAL(triggered()), this, SLOT(onChangeFPUViewAction()));
|
||||||
|
@ -1172,14 +1172,14 @@ void RegistersView::fontsUpdatedSlot()
|
||||||
mRowHeight = wRowsHeight;
|
mRowHeight = wRowsHeight;
|
||||||
mCharWidth = QFontMetrics(this->font()).averageCharWidth();
|
mCharWidth = QFontMetrics(this->font()).averageCharWidth();
|
||||||
setFixedHeight(getEstimateHeight());
|
setFixedHeight(getEstimateHeight());
|
||||||
repaint();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RegistersView::ShowFPU(bool set_showfpu)
|
void RegistersView::ShowFPU(bool set_showfpu)
|
||||||
{
|
{
|
||||||
mShowFpu = set_showfpu;
|
mShowFpu = set_showfpu;
|
||||||
InitMappings();
|
InitMappings();
|
||||||
repaint();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -329,7 +329,7 @@ void ScriptView::keyPressEvent(QKeyEvent* event)
|
||||||
{
|
{
|
||||||
setTableOffset(getInitialSelection() - getNbrOfLineToPrint() + 2);
|
setTableOffset(getInitialSelection() - getNbrOfLineToPrint() + 2);
|
||||||
}
|
}
|
||||||
repaint();
|
update();
|
||||||
}
|
}
|
||||||
else if(key == Qt::Key_Return || key == Qt::Key_Enter)
|
else if(key == Qt::Key_Return || key == Qt::Key_Enter)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,7 +44,7 @@ void StatusLabel::debugStateChangedSlot(DBGSTATE state)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->repaint();
|
this->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void StatusLabel::logUpdate(QString message)
|
void StatusLabel::logUpdate(QString message)
|
||||||
|
|
|
@ -208,7 +208,7 @@ void QHexEditPrivate::setHorizontalSpacing(int x)
|
||||||
_horizonalSpacing = x;
|
_horizonalSpacing = x;
|
||||||
adjust();
|
adjust();
|
||||||
setCursorPos(cursorPos());
|
setCursorPos(cursorPos());
|
||||||
this->repaint();
|
this->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
int QHexEditPrivate::horizontalSpacing()
|
int QHexEditPrivate::horizontalSpacing()
|
||||||
|
|
Loading…
Reference in New Issue