From 61fbb61cdf5a5dbf20da7ceea7bd31fbb186e646 Mon Sep 17 00:00:00 2001 From: Sergey Chupligin Date: Mon, 10 Feb 2025 11:47:23 +0300 Subject: [PATCH] Fixup codestyle --- src/core/plugin.cpp | 1 - src/core/theme.cpp | 10 +++++----- src/core/theme.h | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/core/plugin.cpp b/src/core/plugin.cpp index 5f20e0f..fffa8f2 100644 --- a/src/core/plugin.cpp +++ b/src/core/plugin.cpp @@ -17,7 +17,6 @@ * Boston, MA 02110-1301, USA. */ - #include "plugin.h" #include "nemoimageprovider.h" #include "theme.h" diff --git a/src/core/theme.cpp b/src/core/theme.cpp index aea550b..3de9724 100644 --- a/src/core/theme.cpp +++ b/src/core/theme.cpp @@ -20,13 +20,13 @@ #include "theme.h" #include "logging.h" +#include #include -#include +#include #include #include +#include #include -#include -#include static Theme* themeInstance = 0; @@ -62,11 +62,11 @@ Theme::Theme(QObject* parent) } } -QObject *Theme::qmlInstance(QQmlEngine *engine, QJSEngine *scriptEngine) +QObject* Theme::qmlInstance(QQmlEngine* engine, QJSEngine* scriptEngine) { Q_UNUSED(engine); Q_UNUSED(scriptEngine); - if(!themeInstance) { + if (!themeInstance) { themeInstance = new Theme(); } return themeInstance; diff --git a/src/core/theme.h b/src/core/theme.h index d92f1fe..1e8ef7c 100644 --- a/src/core/theme.h +++ b/src/core/theme.h @@ -72,7 +72,7 @@ class Theme : public QObject { public: explicit Theme(QObject* parent = nullptr); - static QObject *qmlInstance(QQmlEngine *engine, QJSEngine *scriptEngine); + static QObject* qmlInstance(QQmlEngine* engine, QJSEngine* scriptEngine); Q_INVOKABLE bool loadTheme(const QString fileName); Q_INVOKABLE float dp(float value);