comparison common.cpp @ 71:eaabc54de103

Foundation framework now included in OSX builds; ifdef bug corrected in common.cpp
author luisf
date Thu, 18 Nov 2010 15:29:48 +0000
parents 68aebc316898
children 10eb97683aa9
comparison
equal deleted inserted replaced
70:3af5c2b913c7 71:eaabc54de103
93 return ""; 93 return "";
94 } 94 }
95 95
96 return QString::fromUcs2(info); 96 return QString::fromUcs2(info);
97 } 97 }
98 #elif Q_OS_MAC 98 #else
99 #ifdef Q_OS_MAC
99 // Nothing here: definition is in common_osx.mm 100 // Nothing here: definition is in common_osx.mm
100 #else 101 #else
101 QString getUserRealName() 102 QString getUserRealName()
102 { 103 {
103 const int maxlen = 1023; 104 const int maxlen = 1023;
111 QString s(p->pw_gecos); 112 QString s(p->pw_gecos);
112 if (s != "") s = s.split(',')[0]; 113 if (s != "") s = s.split(',')[0];
113 return s; 114 return s;
114 } 115 }
115 #endif 116 #endif
117 #endif
116 118