1
0
Fork 0

GUI: fixed a bug in CPUStack + added updatePatches signal

This commit is contained in:
Mr. eXoDia 2014-07-06 04:13:36 +02:00
parent 41adaf539f
commit da63daf89c
3 changed files with 14 additions and 1 deletions

View File

@ -367,6 +367,11 @@ void Bridge::emitRepaintTableView()
emit repaintTableView();
}
void Bridge::emitUpdatePatches()
{
emit updatePatches();
}
/************************************************************************************
Static Functions
************************************************************************************/
@ -729,6 +734,12 @@ __declspec(dllexport) void* _gui_sendmessage(GUIMSG type, void* param1, void* pa
}
break;
case GUI_UPDATE_PATCHES:
{
emit Bridge::getBridge()->emitUpdatePatches();
}
break;
default:
{
}

View File

@ -79,6 +79,7 @@ public:
void emitAddMsgToStatusBar(QString msg);
void emitUpdateSideBar();
void emitRepaintTableView();
void emitUpdatePatches();
//Public variables
void* winId;
@ -138,6 +139,7 @@ signals:
void addMsgToStatusBar(QString msg);
void updateSideBar();
void repaintTableView();
void updatePatches();
private:
QMutex* mBridgeMutex;

View File

@ -206,7 +206,7 @@ QString CPUStack::paintContent(QPainter* painter, int_t rowBase, int rowOffset,
QColor inactiveColor = ConfigColor("StackInactiveTextColor");
for(int i=0; i<richText.size(); i++)
{
richText[i].flags == RichTextPainter::FlagColor;
richText[i].flags = RichTextPainter::FlagColor;
richText[i].textColor = inactiveColor;
}
}