| 270 | return colorHex; |
| 271 | } |
| 272 | |
| 273 | QColor ElaColorDialogPrivate::_getColorFromEdit() const |
| 274 | { |
| 275 | QColor editColor; |
| 276 | if (_modeComboBox->currentIndex() == 0) |
| 277 | { |
| 278 | // RGB |
| 279 | editColor.setRgb(_firstEdit->text().toUInt(), _secondEdit->text().toUInt(), _thridEdit->text().toUInt()); |
| 280 | } |
| 281 | else |
| 282 | { |
| 283 | // HSV |
| 284 | editColor.setHsv(_firstEdit->text().toUInt(), _secondEdit->text().toUInt(), _thridEdit->text().toUInt()); |
| 285 | } |
| 286 | return editColor; |
| 287 | } |
nothing calls this directly
no outgoing calls
no test coverage detected