MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / paintEvent

Method paintEvent

ElaWidgetTools/ElaColorDialog.cpp:327–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327QColor ElaColorDialog::getCustomColor(int index) const
328{
329 Q_D(const ElaColorDialog);
330 return d->_customColorModel->getDisplayColor(index);
331}
332
333QString ElaColorDialog::getCurrentColorRGB() const
334{
335 Q_D(const ElaColorDialog);
336 return d->_getHexRgbValue();
337}
338
339void ElaColorDialog::paintEvent(QPaintEvent* event)
340{
341 Q_D(ElaColorDialog);
342 QPainter painter(this);
343 painter.save();
344 painter.setRenderHint(QPainter::Antialiasing);
345 painter.setPen(Qt::NoPen);
346 // 背景绘制

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected