Mercurial > hg > easyhg
view common_osx.mm @ 160:98fa31128e9d
* That string scraping was much too fiddly -- best keep it simpler for now
author | Chris Cannam |
---|---|
date | Fri, 03 Dec 2010 12:32:59 +0000 |
parents | 68aebc316898 |
children |
line wrap: on
line source
#include "common.h" #include <QString> #ifdef Q_OS_MAC #include <Foundation/Foundation.h> QString getUserRealName() { NSString *s = NSFullUserName(); return QString::fromLocal8Bit([s UTF8String]); } #endif