MCPcopy Create free account
hub / github.com/KDE/konsole / fullCommand

Method fullCommand

src/ShellCommand.cpp:28–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28QString ShellCommand::fullCommand() const
29{
30 QStringList quotedArgs(_arguments);
31 for (int i = 0; i < quotedArgs.count(); i++) {
32 QString arg = quotedArgs.at(i);
33 bool hasSpace = false;
34 for (int j = 0; j < arg.length(); j++) {
35 if (arg[j].isSpace()) {
36 hasSpace = true;
37 }
38 }
39 if (hasSpace) {
40 quotedArgs[i] = QStringLiteral(u"\"") + arg + QStringLiteral(u"\"");
41 }
42 }
43 return quotedArgs.join(QStringLiteral(u" "));
44}
45
46QString ShellCommand::command() const
47{

Callers 6

writeProfileMethod · 0.80
testEmptyCommandMethod · 0.80
setupGeneralPageMethod · 0.80

Calls 2

countMethod · 0.80
isSpaceMethod · 0.80

Tested by 4

testEmptyCommandMethod · 0.64