[ui] set font size at Application level

This commit is contained in:
Yann Lanthony 2018-04-09 11:59:57 +02:00
parent 0e6fd0cb1a
commit def7e6b634
2 changed files with 4 additions and 1 deletions

View file

@ -72,6 +72,10 @@ if __name__ == "__main__":
app.setApplicationName('Meshroom') app.setApplicationName('Meshroom')
app.setAttribute(Qt.AA_EnableHighDpiScaling) app.setAttribute(Qt.AA_EnableHighDpiScaling)
font = app.font()
font.setPointSize(9)
app.setFont(font)
pwd = os.path.dirname(__file__) pwd = os.path.dirname(__file__)
app.setWindowIcon(QIcon(os.path.join(pwd, "img/icon.png"))) app.setWindowIcon(QIcon(os.path.join(pwd, "img/icon.png")))
qmlDir = os.path.join(pwd, "qml") qmlDir = os.path.join(pwd, "qml")

View file

@ -17,7 +17,6 @@ ApplicationWindow {
height: 720 height: 720
visible: true visible: true
title: (_reconstruction.graph.filepath ? _reconstruction.graph.filepath : "Untitled") + (_reconstruction.undoStack.clean ? "" : "*") + " - Meshroom" title: (_reconstruction.graph.filepath ? _reconstruction.graph.filepath : "Untitled") + (_reconstruction.undoStack.clean ? "" : "*") + " - Meshroom"
font.pointSize: 9
property variant node: null property variant node: null
// supported 3D files extensions // supported 3D files extensions