79286545

Date: 2024-12-17 02:37:50
Score: 0.5
Natty:
Report link

This is my code, where WWidget inherits from QWidget:

typedef QRgb COLOR;
void
WWidget::Widget_UpdateColorBackground(COLOR coBackground)
    {
    QPalette oPalette(palette());   // Make a copy of the current palette
    oPalette.setColor(QPalette::Base, coBackground);
    setPalette(oPalette);
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Daniel