diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-09-26 13:45:29 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-09-26 13:45:29 +0200 |
commit | 271ad9e4fdb4f003abd33b59ca9cadfb5bab9823 (patch) | |
tree | f006b597a61531345b810fb5ea28f45c850fd8a4 /logic/resources/IconResourceHandler.h | |
parent | cca670013463f0062cec950d9b9bb76f9150ed93 (diff) | |
download | PrismLauncher-271ad9e4fdb4f003abd33b59ca9cadfb5bab9823.tar.gz PrismLauncher-271ad9e4fdb4f003abd33b59ca9cadfb5bab9823.tar.bz2 PrismLauncher-271ad9e4fdb4f003abd33b59ca9cadfb5bab9823.zip |
GH-1072 split resource system to UI and logic parts
Diffstat (limited to 'logic/resources/IconResourceHandler.h')
-rw-r--r-- | logic/resources/IconResourceHandler.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/logic/resources/IconResourceHandler.h b/logic/resources/IconResourceHandler.h deleted file mode 100644 index 44fafc07..00000000 --- a/logic/resources/IconResourceHandler.h +++ /dev/null @@ -1,27 +0,0 @@ -#pragma once - -#include <memory> - -#include "ResourceHandler.h" - -#include "multimc_logic_export.h" - -class MULTIMC_LOGIC_EXPORT 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; - static QString m_theme; - - // the workhorse, returns QVariantMap (filename => size) for m_key/m_theme - QVariant get() const; -}; |