MCPcopy Create free account
hub / github.com/IgKh/katvan / insertColor

Method insertColor

core/katvan_editor.cpp:1301–1308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1299}
1300
1301void Editor::insertColor(const QColor& color)
1302{
1303 QTextCursor cursor = textCursor();
1304 QString expression = d_codeModel->getColorExpression(color, cursor.position());
1305
1306 cursor.insertText(expression);
1307 setTextCursor(cursor);
1308}
1309
1310void Editor::insertLabelRef(const QString& label)
1311{

Callers 1

showColorPickerMethod · 0.80

Calls 2

getColorExpressionMethod · 0.80
positionMethod · 0.80

Tested by

no test coverage detected