Mercurial > hg > easyhg
annotate common_osx.mm @ 273:cc95394e2392 easyhg_v0.3.2
* Add warning dialog for "restore default settings"; add option for dates or ages in history list
author | Chris Cannam |
---|---|
date | Tue, 25 Jan 2011 16:41:40 +0000 |
parents | 68aebc316898 |
children |
rev | line source |
---|---|
Chris@62 | 1 |
Chris@62 | 2 #include "common.h" |
Chris@62 | 3 |
Chris@62 | 4 #include <QString> |
Chris@62 | 5 |
Chris@62 | 6 #ifdef Q_OS_MAC |
Chris@62 | 7 |
Chris@62 | 8 #include <Foundation/Foundation.h> |
Chris@62 | 9 |
Chris@62 | 10 QString getUserRealName() |
Chris@62 | 11 { |
Chris@62 | 12 NSString *s = NSFullUserName(); |
Chris@62 | 13 return QString::fromLocal8Bit([s UTF8String]); |
Chris@62 | 14 } |
Chris@62 | 15 |
Chris@62 | 16 #endif |