summaryrefslogtreecommitdiffstats
path: root/application/handlers/IconResourceHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'application/handlers/IconResourceHandler.h')
-rw-r--r--application/handlers/IconResourceHandler.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/application/handlers/IconResourceHandler.h b/application/handlers/IconResourceHandler.h
deleted file mode 100644
index 0cc4de4f..00000000
--- a/application/handlers/IconResourceHandler.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#pragma once
-
-#include <memory>
-#include <resources/ResourceHandler.h>
-
-class IconResourceHandler : public ResourceHandler
-{
-public:
- explicit IconResourceHandler(const QString &key);
-
- /// Sets the current theme and notifies all IconResourceHandlers of the change
- static void setTheme(const QString &theme);
-
-private:
- // we need to keep track of all IconResourceHandlers so that we can update them if the theme changes
- void init(std::shared_ptr<ResourceHandler> &ptr) override;
- static QList<std::weak_ptr<IconResourceHandler>> m_iconHandlers;
-
- QString m_key;
-
- // the workhorse, returns QVariantMap (filename => size) for m_key/m_theme
- QVariant get() const;
-};