MCPcopy Create free account
hub / github.com/KDE/kdevelop / workingDirectory

Method workingDirectory

plugins/executeplasmoid/plasmoidexecutionjob.cpp:117–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117QString PlasmoidExecutionJob::workingDirectory(ILaunchConfiguration* cfg)
118{
119 QString workingDirectory;
120 IProject* p = cfg->project();
121 if(p) {
122 QString identifier = cfg->config().readEntry("PlasmoidIdentifier", "");
123 QString possiblePath = Path(p->path(), identifier).toLocalFile();
124 if(QFileInfo(possiblePath).isDir()) {
125 workingDirectory = possiblePath;
126 }
127 }
128
129 if(workingDirectory.isEmpty())
130 {
131 workingDirectory = QDir::tempPath();
132 }
133 return workingDirectory;
134}
135
136#include "moc_plasmoidexecutionjob.cpp"

Callers 3

PlasmoidExecutionJobMethod · 0.45
startMethod · 0.45
slotFailedMethod · 0.45

Calls 8

readEntryMethod · 0.80
toLocalFileMethod · 0.80
PathClass · 0.50
QFileInfoClass · 0.50
projectMethod · 0.45
configMethod · 0.45
pathMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected