From b76cba0d78bce416045bce5cc59291d8f8d7a6e1 Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Sat, 5 Jun 2021 18:22:07 +0300 Subject: [PATCH] - example how to change font size --- client/build-number/build_number.h | 2 +- client/main.cpp | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/client/build-number/build_number.h b/client/build-number/build_number.h index dd461d4..fdf8a37 100644 --- a/client/build-number/build_number.h +++ b/client/build-number/build_number.h @@ -1,2 +1,2 @@ // Auto generated file ! Please do not edit ! -#define APP_BUILD_NUMBER 214 \ No newline at end of file +#define APP_BUILD_NUMBER 215 \ No newline at end of file diff --git a/client/main.cpp b/client/main.cpp index 6dc5034..65a6f65 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -8,9 +8,14 @@ int main(int argc, char *argv[]) { - QApplication a(argc, argv); + QApplication app(argc, argv); helper::theme::applyCurrent(Settings::instance()); + /* QFont f = app.font(); + f.setFamily("Monaco"); + f.setPointSize(16); + app.setFont(f); */ + // Path to database. QString path = Settings::instance().getDatabasePath(); @@ -25,5 +30,5 @@ int main(int argc, char *argv[]) w.setAttribute(Qt::WA_WState_Hidden, true); w.show(); - return a.exec(); + return app.exec(); }