Cloned from qt.gitorious.org