GUI: fixed a bug in CPUStack + added updatePatches signal
This commit is contained in:
		
							parent
							
								
									41adaf539f
								
							
						
					
					
						commit
						da63daf89c
					
				|  | @ -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: | ||||
|     { | ||||
|     } | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
|  | @ -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; | ||||
|             } | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue