1
0
Fork 0

Swapped repaints which weren't in paintEvents to updates

This commit is contained in:
justin 2016-07-05 17:57:30 -06:00
parent defe153caa
commit 9b145bf269
7 changed files with 12 additions and 11 deletions

View File

@ -81,7 +81,7 @@ void CPUSideBar::debugStateChangedSlot(DBGSTATE state)
{
if(state == stopped)
{
repaint(); //clear
update(); //clear
}
}
@ -96,7 +96,7 @@ void CPUSideBar::changeTopmostAddress(dsint i)
topVA = i;
memset(&regDump, 0, sizeof(REGDUMP));
DbgGetRegDump(&regDump);
repaint();
update();
}
void CPUSideBar::setViewableRows(int rows)
@ -109,7 +109,7 @@ void CPUSideBar::setSelection(dsint selVA)
if(selVA != selectedVA)
{
selectedVA = selVA;
repaint();
update();
}
}
@ -349,7 +349,7 @@ void CPUSideBar::mouseReleaseEvent(QMouseEvent* e)
mCodeFoldingManager.delFoldSegment(wVA);
}
mDisas->reloadData();
viewport()->repaint();
viewport()->update();
}
}
if(x < bulletX - mBulletRadius)

View File

@ -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(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(updateSideBar()), mSideBar, SLOT(repaint()));
connect(Bridge::getBridge(), SIGNAL(updateSideBar()), mSideBar, SLOT(update()));
connect(Bridge::getBridge(), SIGNAL(updateArgumentView()), mArgumentWidget, SLOT(refreshData()));
mDisas->setCodeFoldingManager(mSideBar->getCodeFoldingManager());

View File

@ -143,6 +143,7 @@ MainWindow::MainWindow(QWidget* parent)
mThreadView->setWindowIcon(QIcon(":/icons/images/arrow-threads.png"));
// Snowman view (decompiler)
mSnowmanView = CreateSnowman(this);
if(!mSnowmanView)
mSnowmanView = (SnowmanView*)new QLabel("<center>Snowman is disabled...</center>", this);

View File

@ -1122,7 +1122,7 @@ RegistersView::RegistersView(QWidget* parent) : QScrollArea(parent), mVScrollOff
connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(displayCustomContextMenuSlot(QPoint)));
connect(Bridge::getBridge(), SIGNAL(dbgStateChanged(DBGSTATE)), this, SLOT(debugStateChangedSlot(DBGSTATE)));
// 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
connect(wCM_Increment, SIGNAL(triggered()), this, SLOT(onIncrementAction()));
connect(wCM_ChangeFPUView, SIGNAL(triggered()), this, SLOT(onChangeFPUViewAction()));
@ -1172,14 +1172,14 @@ void RegistersView::fontsUpdatedSlot()
mRowHeight = wRowsHeight;
mCharWidth = QFontMetrics(this->font()).averageCharWidth();
setFixedHeight(getEstimateHeight());
repaint();
update();
}
void RegistersView::ShowFPU(bool set_showfpu)
{
mShowFpu = set_showfpu;
InitMappings();
repaint();
update();
}

View File

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

View File

@ -44,7 +44,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()