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

Method _getColorFromEdit

ElaWidgetTools/private/ElaColorDialogPrivate.cpp:272–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 return colorHex;
271}
272
273QColor 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected