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