Commits

Yuya Nishihara  committed 513947a

qtapp: comment about the use of QFont.insertSubstition before QApplication

QFont API should be called after QApplication is instantiated, but it is
inevitable in this case.

  • Participants
  • Parent commits d0ca3b6
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/qtapp.py

             version = platform.mac_ver()[0]
             version = '.'.join(version.split('.')[:2])
             if version == '10.9':
+                # needs to replace the font created in the constructor of
+                # QApplication, which is invalid use of QFont but works on Mac
                 QFont.insertSubstitution('.Lucida Grande UI', 'Lucida Grande')
 
         self._ui = ui