Added ability to change the font size.

It mostly works. It's a little wonky sometimes but it will mostly change all fonts in the application to the size you set.
This commit is contained in:
Collin Kidder
2017-12-10 20:02:11 -05:00
parent d25c01ed1a
commit f4474badc5
4 changed files with 38 additions and 1 deletions
+7
View File
@@ -6,6 +6,13 @@ int main(int argc, char *argv[])
QApplication a(argc, argv);
MainWindow w;
QSettings settings;
int fontSize = settings.value("Main/FontSize", 9).toUInt();
QFont sysFont = QFont(); //get default font
sysFont.setPointSize(fontSize);
a.setFont(sysFont);
w.show();
return a.exec();