MCPcopy Create free account
hub / github.com/GilesBathgate/RapCAD / getCommand

Method getCommand

src/ui/console.cpp:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125QString Console::getCommand() const
126{
127 QTextCursor cursor=textCursor();
128 cursor.movePosition(QTextCursor::StartOfLine);
129 cursor.movePosition(QTextCursor::Right, QTextCursor::MoveAnchor, promptLength);
130 cursor.movePosition(QTextCursor::EndOfLine, QTextCursor::KeepAnchor);
131 QString command=cursor.selectedText();
132 cursor.clearSelection();
133 return command;
134}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected