| 325 | } |
| 326 | |
| 327 | QColor ElaColorDialog::getCustomColor(int index) const |
| 328 | { |
| 329 | Q_D(const ElaColorDialog); |
| 330 | return d->_customColorModel->getDisplayColor(index); |
| 331 | } |
| 332 | |
| 333 | QString ElaColorDialog::getCurrentColorRGB() const |
| 334 | { |
| 335 | Q_D(const ElaColorDialog); |
| 336 | return d->_getHexRgbValue(); |
| 337 | } |
| 338 | |
| 339 | void 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 | // 背景绘制 |
nothing calls this directly
no outgoing calls
no test coverage detected