MCPcopy Create free account
hub / github.com/Vector35/debugger / getColoredIcon

Method getColoredIcon

ui/controlswidget.cpp:114–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113
114QIcon DebugControlsWidget::getColoredIcon(const QString& iconPath, const QColor& color)
115{
116 auto pixmap = QPixmap(iconPath);
117 auto mask = pixmap.createMaskFromColor(QColor("transparent"), Qt::MaskInColor);
118 pixmap.fill(color);
119 pixmap.setMask(mask);
120 return QIcon(pixmap);
121}
122
123
124QString DebugControlsWidget::getToolTip(const QString& name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected