- example how to change font size

This commit is contained in:
Dmytro Bogovych 2021-06-05 18:22:07 +03:00
parent fc0d501c05
commit b76cba0d78
2 changed files with 8 additions and 3 deletions

View File

@ -1,2 +1,2 @@
// Auto generated file ! Please do not edit ! // Auto generated file ! Please do not edit !
#define APP_BUILD_NUMBER 214 #define APP_BUILD_NUMBER 215

View File

@ -8,9 +8,14 @@
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication app(argc, argv);
helper::theme::applyCurrent(Settings::instance()); helper::theme::applyCurrent(Settings::instance());
/* QFont f = app.font();
f.setFamily("Monaco");
f.setPointSize(16);
app.setFont(f); */
// Path to database. // Path to database.
QString path = Settings::instance().getDatabasePath(); QString path = Settings::instance().getDatabasePath();
@ -25,5 +30,5 @@ int main(int argc, char *argv[])
w.setAttribute(Qt::WA_WState_Hidden, true); w.setAttribute(Qt::WA_WState_Hidden, true);
w.show(); w.show();
return a.exec(); return app.exec();
} }