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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user