| 1299 | } |
| 1300 | |
| 1301 | void 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 | |
| 1310 | void Editor::insertLabelRef(const QString& label) |
| 1311 | { |
no test coverage detected