diff options
Diffstat (limited to 'src/sysInfo.cpp')
| -rw-r--r-- | src/sysInfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sysInfo.cpp b/src/sysInfo.cpp index 7cf2124..929b45d 100644 --- a/src/sysInfo.cpp +++ b/src/sysInfo.cpp @@ -25,6 +25,8 @@ QString sysInfo::getInfo(QString& infoName){ return getAllInfos(); else if (infoName == QString("json")) return getNames(); + else if (infoName == QString("script")) + return getPrcOutP2(); // still here? return "info_error"; } @@ -89,7 +91,7 @@ QString sysInfo::getAllInfos(){ return json; } // -QStringList sysInfo::getPrcOutP2() +QString sysInfo::getPrcOutP2() { QString cmd = "echo test"; QProcess *process = new QProcess(); @@ -113,6 +115,6 @@ QStringList sysInfo::getPrcOutP2() } qDebug()<<"process finished: "; - return output; + return ""; } |
