diff main.cpp @ 8:21ce6187d32e

Minor changes done by automatic style checker
author Ideenmodellierer
date Mon, 12 Jan 2026 13:51:17 +0000
parents 177f640940f2
children
line wrap: on
line diff
--- a/main.cpp	Mon Jan 12 13:49:16 2026 +0000
+++ b/main.cpp	Mon Jan 12 13:51:17 2026 +0000
@@ -46,11 +46,11 @@
 #include "Utils/Log.h"
 
 #include <QApplication>
+#include <QOperatingSystemVersion>
 #include <QSettings>
 #include <QSysInfo>
-#include <QOperatingSystemVersion>
 
-QSettings* settings = NULL;
+QSettings *settings = NULL;
 
 //////////////////////////////////////////////////////////////////////////////
 
@@ -69,20 +69,21 @@
 #if 0
 #define LOG_TRACE(msg) \
     do { \
-            if(Log::minLevel <= Log::LEVEL_TRACE) { \
-                std::ostringstream oss; \
-                oss << msg; \
-                LogAction(Log::LEVEL_TRACE, __FILE__, __LINE__, LOG_FUNCTION_) << oss.str(); \
+        if (Log::minLevel <= Log::LEVEL_TRACE) { \
+            std::ostringstream oss; \
+            oss << msg; \
+            LogAction(Log::LEVEL_TRACE, __FILE__, __LINE__, LOG_FUNCTION_) << oss.str(); \
         } \
-    } while(0)
+    } while (0)
 #endif
 #if 0
 #define LOG_TRACE(msg) \
     do { \
-            if(Log::minLevel <= Log::LEVEL_TRACE) { \
-                LogAction(Log::LEVEL_TRACE, __FILE__, __LINE__, LOG_FUNCTION_) << QString("%1").arg(msg); \
+        if (Log::minLevel <= Log::LEVEL_TRACE) { \
+            LogAction(Log::LEVEL_TRACE, __FILE__, __LINE__, LOG_FUNCTION_) \
+                << QString("%1").arg(msg); \
         } \
-    } while(0)
+    } while (0)
 #endif
 #ifdef Q_OS_WIN32
 
@@ -112,21 +113,21 @@
     }
 #endif
 #elif defined(Q_OS_MACX)
-    if( QSysInfo::macVersion() < 2 )
-        LOG_TRACE("    MacOS 9" );
+    if (QSysInfo::macVersion() < 2)
+        LOG_TRACE("    MacOS 9");
     else
-        LOG_TRACE("    MacOS 10." << int(QSysInfo::macVersion()-2));
+        LOG_TRACE("    MacOS 10." << int(QSysInfo::macVersion() - 2));
 #elif defined(Q_OS_LINUX)
     LOG_TRACE("    Linux ");
 #else
-#       error Unknown OS not yet implemented
+#error Unknown OS not yet implemented
 #endif
- //   LOG_TRACE("    Qt build " << QT_VERSION_STR << " (DLL " << qVersion() << ")");
-        LOG_TRACE(QString("    Qt build %1 (DLL %2)").arg(QT_VERSION_STR).arg(qVersion()));
+    //   LOG_TRACE("    Qt build " << QT_VERSION_STR << " (DLL " << qVersion() << ")");
+    LOG_TRACE(QString("    Qt build %1 (DLL %2)").arg(QT_VERSION_STR).arg(qVersion()));
     //---- Initialize interface ----------------------------------------------
     // Allow nice display on 4K screens:
     QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
-    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps,    true);
+    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
 
     QApplication a(argc, argv);