MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / labelCheck

Method labelCheck

gui/qt/datawidget.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54bool 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
65void DataWidget::cursorState(bool state) {
66 moveable = state;

Callers 2

breakAddGuiMethod · 0.80
watchAddGuiMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected