summaryrefslogtreecommitdiffstats
path: root/logic/resources/IconResourceHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'logic/resources/IconResourceHandler.h')
-rw-r--r--logic/resources/IconResourceHandler.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/logic/resources/IconResourceHandler.h b/logic/resources/IconResourceHandler.h
new file mode 100644
index 00000000..dedfecb2
--- /dev/null
+++ b/logic/resources/IconResourceHandler.h
@@ -0,0 +1,22 @@
+#pragma once
+
+#include <memory>
+
+#include "ResourceHandler.h"
+
+class IconResourceHandler : public ResourceHandler
+{
+public:
+ explicit IconResourceHandler(const QString &key);
+
+ static void setTheme(const QString &theme);
+
+private:
+ void init(std::shared_ptr<ResourceHandler> &ptr) override;
+
+ QString m_key;
+ static QString m_theme;
+ static QList<std::weak_ptr<IconResourceHandler>> m_iconHandlers;
+
+ QVariant get() const;
+};