# HG changeset patch # User Matti Hamalainen # Date 1504830174 -10800 # Node ID afadc1380fb12bb752b75047cee9c80794ac39ec # Parent 6187c36de250c705a39ba2309a3dfd514b264514 Add few misc. comments. diff -r 6187c36de250 -r afadc1380fb1 src/main.cpp --- a/src/main.cpp Thu Sep 07 12:53:03 2017 +0300 +++ b/src/main.cpp Fri Sep 08 03:22:54 2017 +0300 @@ -135,6 +135,7 @@ { if (err.isValid()) { + // If an error has occured, log it slLog("ERROR", QStringLiteral("SQL %1: %2"). arg(where).arg(err.text())); @@ -142,6 +143,7 @@ } else { + // If no error, but event reporting requested, log it if (report) { slLog("NOTE", @@ -203,6 +205,10 @@ } +// +// Set stylesheet for given QWidget, and scale fonts etc. +// for some elements based on current UI scale factor. +// void slSetCommonStyleSheet(QWidget *widget) { // Clamp scale value @@ -240,6 +246,9 @@ } +// +// Main program begins +// int main(int argc, char *argv[]) { QApplication sapp(argc, argv);