💄 style: code style

This commit is contained in:
2026-07-12 19:01:49 +02:00
parent d39e36e096
commit 2dfbd29ed1
16 changed files with 33 additions and 44 deletions
-2
View File
@@ -1,8 +1,6 @@
#ifndef WALLREEL_CONFIG_DATA_HPP #ifndef WALLREEL_CONFIG_DATA_HPP
#define WALLREEL_CONFIG_DATA_HPP #define WALLREEL_CONFIG_DATA_HPP
#include <qtmetamacros.h>
#include <QColor> #include <QColor>
#include <QHash> #include <QHash>
#include <QList> #include <QList>
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef WALLREEL_CONFIGMGR_HPP #ifndef WALLREEL_CONFIG_MANAGER_HPP
#define WALLREEL_CONFIGMGR_HPP #define WALLREEL_CONFIG_MANAGER_HPP
#include <QDir> #include <QDir>
@@ -106,4 +106,4 @@ class Manager : public QObject {
} // namespace WallReel::Core::Config } // namespace WallReel::Core::Config
#endif // WALLREEL_CONFIGMGR_HPP #endif // WALLREEL_CONFIG_MANAGER_HPP
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef WALLREEL_IMAGEDATA_HPP #ifndef WALLREEL_IMAGE_DATA_HPP
#define WALLREEL_IMAGEDATA_HPP #define WALLREEL_IMAGE_DATA_HPP
#include <QDir> #include <QDir>
#include <QFileInfo> #include <QFileInfo>
@@ -106,4 +106,4 @@ class Data {
} // namespace WallReel::Core::Image } // namespace WallReel::Core::Image
#endif // WALLREEL_IMAGEDATA_HPP #endif // WALLREEL_IMAGE_DATA_HPP
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef WALLREEL_IMAGEMANAGER_HPP #ifndef WALLREEL_IMAGE_MANAGER_HPP
#define WALLREEL_IMAGEMANAGER_HPP #define WALLREEL_IMAGE_MANAGER_HPP
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QDir> #include <QDir>
@@ -96,4 +96,4 @@ class Manager : public QObject {
} // namespace WallReel::Core::Image } // namespace WallReel::Core::Image
#endif // WALLREEL_IMAGEMANAGER_HPP #endif // WALLREEL_IMAGE_MANAGER_HPP
+5 -5
View File
@@ -1,5 +1,5 @@
#ifndef WALLREEL_IMAGEMODEL_HPP #ifndef WALLREEL_IMAGE_MODEL_HPP
#define WALLREEL_IMAGEMODEL_HPP #define WALLREEL_IMAGE_MODEL_HPP
#include <QAbstractListModel> #include <QAbstractListModel>
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
@@ -78,10 +78,10 @@ class ProxyModel : public QSortFilterProxyModel {
private: private:
QString m_searchText; QString m_searchText;
Config::SortType m_sortType; Config::SortType m_sortType = Config::SortType::Date;
bool m_sortDescending; bool m_sortDescending = true;
}; };
} // namespace WallReel::Core::Image } // namespace WallReel::Core::Image
#endif // WALLREEL_IMAGEMODEL_HPP #endif // WALLREEL_IMAGE_MODEL_HPP
-2
View File
@@ -1,8 +1,6 @@
#ifndef WALLREEL_PALETTE_DATA_HPP #ifndef WALLREEL_PALETTE_DATA_HPP
#define WALLREEL_PALETTE_DATA_HPP #define WALLREEL_PALETTE_DATA_HPP
#include <qcolor.h>
#include <QColor> #include <QColor>
#include <QList> #include <QList>
#include <QObject> #include <QObject>
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef WALLREEL_CORE_PALETTE_DOMCOLOR_HPP #ifndef WALLREEL_PALETTE_DOMCOLOR_HPP
#define WALLREEL_CORE_PALETTE_DOMCOLOR_HPP #define WALLREEL_PALETTE_DOMCOLOR_HPP
#include <QImage> #include <QImage>
@@ -15,4 +15,4 @@ QColor getDominantColor(const QImage& image);
} // namespace WallReel::Core::Palette } // namespace WallReel::Core::Palette
#endif // WALLREEL_CORE_PALETTE_DOMCOLOR_HPP #endif // WALLREEL_PALETTE_DOMCOLOR_HPP
-2
View File
@@ -1,7 +1,5 @@
#include "manager.hpp" #include "manager.hpp"
#include <qcontainerfwd.h>
#include "Palette/matchcolor.hpp" #include "Palette/matchcolor.hpp"
#include "Utils/misc.hpp" #include "Utils/misc.hpp"
#include "logger.hpp" #include "logger.hpp"
-2
View File
@@ -1,8 +1,6 @@
#ifndef WALLREEL_PALETTE_MANAGER_HPP #ifndef WALLREEL_PALETTE_MANAGER_HPP
#define WALLREEL_PALETTE_MANAGER_HPP #define WALLREEL_PALETTE_MANAGER_HPP
#include <qcolor.h>
#include "Config/data.hpp" #include "Config/data.hpp"
#include "Image/manager.hpp" #include "Image/manager.hpp"
#include "data.hpp" #include "data.hpp"
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef WALLREEL_CORE_PALETTE_MATCHCOLOR_HPP #ifndef WALLREEL_PALETTE_MATCHCOLOR_HPP
#define WALLREEL_CORE_PALETTE_MATCHCOLOR_HPP #define WALLREEL_PALETTE_MATCHCOLOR_HPP
#include "data.hpp" #include "data.hpp"
@@ -16,4 +16,4 @@ ColorItem bestMatch(const QColor& target, const QList<ColorItem>& candidates);
} // namespace WallReel::Core::Palette } // namespace WallReel::Core::Palette
#endif // WALLREEL_CORE_PALETTE_MATCHCOLOR_HPP #endif // WALLREEL_PALETTE_MATCHCOLOR_HPP
-4
View File
@@ -1,9 +1,5 @@
#include "Service/wallpaper.hpp" #include "Service/wallpaper.hpp"
#include <qprocess.h>
#include <QColor>
#include "logger.hpp" #include "logger.hpp"
WALLREEL_DECLARE_SENDER("WallpaperService") WALLREEL_DECLARE_SENDER("WallpaperService")
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef WALLREEL_WALLPAPERSERVICE_HPP #ifndef WALLREEL_SERVICE_WALLPAPER_HPP
#define WALLREEL_WALLPAPERSERVICE_HPP #define WALLREEL_SERVICE_WALLPAPER_HPP
#include <QProcess> #include <QProcess>
#include <QTimer> #include <QTimer>
@@ -38,4 +38,4 @@ class WallpaperService : public QObject {
} // namespace WallReel::Core::Service } // namespace WallReel::Core::Service
#endif // WALLREEL_WALLPAPERSERVICE_HPP #endif // WALLREEL_SERVICE_WALLPAPER_HPP
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef WALLREEL_MISC_HPP #ifndef WALLREEL_UTILS_MISC_HPP
#define WALLREEL_MISC_HPP #define WALLREEL_UTILS_MISC_HPP
#include <QDir> #include <QDir>
#include <QFileInfo> #include <QFileInfo>
@@ -199,4 +199,4 @@ inline void printPath(const QString& path, std::FILE* out = stdout) {
} // namespace WallReel::Core::Utils } // namespace WallReel::Core::Utils
#endif // WALLREEL_MISC_HPP #endif // WALLREEL_UTILS_MISC_HPP
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef TEXTTEMPLATE_HPP #ifndef WALLREEL_UTILS_TEXTTEMPLATE_HPP
#define TEXTTEMPLATE_HPP #define WALLREEL_UTILS_TEXTTEMPLATE_HPP
#include <QMap> #include <QMap>
#include <QRegularExpression> #include <QRegularExpression>
@@ -139,4 +139,4 @@ inline QStringList extractTemplateKeys(const QString& templateStr) {
} // namespace WallReel::Core::Utils } // namespace WallReel::Core::Utils
#endif // TEXTTEMPLATE_HPP #endif // WALLREEL_UTILS_TEXTTEMPLATE_HPP
+4 -1
View File
@@ -1,4 +1,5 @@
#pragma once #ifndef WALLREEL_CORE_APPOPTIONS_HPP
#define WALLREEL_CORE_APPOPTIONS_HPP
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QStringList> #include <QStringList>
@@ -36,3 +37,5 @@ class AppOptions {
}; };
} // namespace WallReel::Core } // namespace WallReel::Core
#endif // WALLREEL_CORE_APPOPTIONS_HPP
-2
View File
@@ -1,8 +1,6 @@
#ifndef WALLREEL_LOGGER_HPP #ifndef WALLREEL_LOGGER_HPP
#define WALLREEL_LOGGER_HPP #define WALLREEL_LOGGER_HPP
#include <qcontainerfwd.h>
#include <QLoggingCategory> #include <QLoggingCategory>
#include <QString> #include <QString>
#include <cstdio> #include <cstdio>