MCPcopy Create free account
hub / github.com/D4stiny/PeaceMaker / UpdateWidget

Method UpdateWidget

PeaceMakerGUI/InvestigateProcessWindow.cpp:94–102  ·  view source on GitHub ↗

* @brief InvestigateProcessWindow::UpdateWidget - Refresh stylesheet (Qt bug). * @param widget - Widget to update. */

Source from the content-addressed store, hash-verified

92 * @param widget - Widget to update.
93 */
94void InvestigateProcessWindow::UpdateWidget(QWidget *widget)
95{
96 widget->style()->unpolish(widget);
97 widget->style()->polish(widget);
98 QEvent event(QEvent::StyleChange);
99 QApplication::sendEvent(widget, &event);
100 widget->update();
101 widget->updateGeometry();
102}
103
104InvestigateProcessWindow::InvestigateProcessWindow(QWidget *parent) :
105 QWidget(parent),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected