qtcn/tianchi — pull request #52 by tsuibin (2013-06-14 03:38:04+00:00)
Title: Update tcos.cpp

add get Hostname function of linux
#if defined(Q_OS_LINUX)
QFile file("/etc/hostname");
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
return ret;
ret.append(file.readLine());
#endif