summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Goby2011-03-10 13:42:51 +0100
committerNiklas Goby2011-03-10 13:42:51 +0100
commitc5ba0c531d70a116bdce0d2ed676f9c186cf2d57 (patch)
tree95079124d43d7bf95a1fed0a69431c3739ddd00a
parentagain syntax fix (diff)
downloadfbgui-c5ba0c531d70a116bdce0d2ed676f9c186cf2d57.tar.gz
fbgui-c5ba0c531d70a116bdce0d2ed676f9c186cf2d57.tar.xz
fbgui-c5ba0c531d70a116bdce0d2ed676f9c186cf2d57.zip
sytax fix and a new tryout for the getAllInfo()
return a string without the "object" brakets "{" and "}"
-rw-r--r--src/sysInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sysInfo.cpp b/src/sysInfo.cpp
index 968317d..9456fe5 100644
--- a/src/sysInfo.cpp
+++ b/src/sysInfo.cpp
@@ -51,7 +51,8 @@ QString sysInfo::getIPAddress(){
}
// ------------------------------------------------------------------------------------------------
QString sysInfo::getAllInfos(){
- QString tmp = '["mac":"' + getMACAddress() + '", "ip":"' + getIPAddress() +'"]';
+ //QString tmp = '{"mac":"' + getMACAddress() + '", "ip":"' + getIPAddress() +'"}';
+ QString tmp = "\"mac\":\"" + getMACAddress() + "\", \"ip\":\"" + getIPAddress() +"\"";
return tmp;
}