Added part of QLabelling source code (#12).