clang_format for PR files

I'm getting a rendezvous... I thought I did this already

Signed-off-by: Tayou <tayou@gmx.net>
This commit is contained in:
Tayou
2022-11-03 05:05:07 +01:00
parent e9bfd43ff7
commit c2f37716e5
4 changed files with 87 additions and 112 deletions

View File

@ -19,18 +19,20 @@
#include <QString>
#include "ui/themes/ITheme.h"
#include "ui/MainWindow.h"
#include "ui/themes/ITheme.h"
inline auto themeDebugLog() {
return qDebug() << "[Theme]";
inline auto themeDebugLog()
{
return qDebug() << "[Theme]";
}
inline auto themeWarningLog() {
return qWarning() << "[Theme]";
inline auto themeWarningLog()
{
return qWarning() << "[Theme]";
}
class ThemeManager {
public:
public:
ThemeManager(MainWindow* mainWindow);
// maybe make private? Or put in ctor?
@ -41,11 +43,10 @@ public:
void applyCurrentlySelectedTheme();
void setApplicationTheme(const QString& name, bool initial);
private:
private:
std::map<QString, std::unique_ptr<ITheme>> m_themes;
MainWindow* m_mainWindow;
QString AddTheme(std::unique_ptr<ITheme> theme);
ITheme* GetTheme(QString themeId);
};