view common_osx.mm @ 202:3d4291d4226c

* Treat command failure on hg heads as a success, so that following actions happen properly (hg heads fails on empty repo) * Hide no-modifications-yet label when widget is first created, show it only if it would actually be true * Set directory name to window title * Various textual fixes
author Chris Cannam
date Tue, 04 Jan 2011 14:31:22 +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