diff options
| author | Niklas Goby | 2011-03-10 13:42:51 +0100 |
|---|---|---|
| committer | Niklas Goby | 2011-03-10 13:42:51 +0100 |
| commit | c5ba0c531d70a116bdce0d2ed676f9c186cf2d57 (patch) | |
| tree | 95079124d43d7bf95a1fed0a69431c3739ddd00a /src | |
| parent | again syntax fix (diff) | |
| download | fbgui-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 "}"
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysInfo.cpp | 3 |
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; } |
