Files
giesCANne/main.cpp
T
Collin Kidder f4474badc5 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.
2017-12-10 20:02:11 -05:00

20 lines
371 B
C++

#include "mainwindow.h"
#include <QApplication>
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();
}