From c5ba0c531d70a116bdce0d2ed676f9c186cf2d57 Mon Sep 17 00:00:00 2001 From: Niklas Goby Date: Thu, 10 Mar 2011 13:42:51 +0100 Subject: sytax fix and a new tryout for the getAllInfo() return a string without the "object" brakets "{" and "}" --- src/sysInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3-55-g7522