changeset 156:afadc1380fb1

Add few misc. comments.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 08 Sep 2017 03:22:54 +0300
parents 6187c36de250
children 325e7590f93e
files src/main.cpp
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);