| 52 | } |
| 53 | |
| 54 | bool DataWidget::labelCheck() { |
| 55 | if (!isEnabled()) { |
| 56 | return false; |
| 57 | } |
| 58 | QTextCursor c = textCursor(); |
| 59 | c.movePosition(QTextCursor::EndOfLine, QTextCursor::MoveAnchor); |
| 60 | c.setPosition(c.position()-1, QTextCursor::KeepAnchor); |
| 61 | |
| 62 | return c.selectedText().at(0) == ':'; |
| 63 | } |
| 64 | |
| 65 | void DataWidget::cursorState(bool state) { |
| 66 | moveable = state; |
no outgoing calls
no test coverage detected