diff options
Diffstat (limited to 'src/gui/widgets/icon.cpp')
-rw-r--r-- | src/gui/widgets/icon.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/widgets/icon.cpp b/src/gui/widgets/icon.cpp index 5becadd1..67fd8384 100644 --- a/src/gui/widgets/icon.cpp +++ b/src/gui/widgets/icon.cpp @@ -27,14 +27,17 @@ #include "resources/resourcemanager.h" Icon::Icon(const std::string &file) - : Icon(ResourceManager::getInstance()->getImage(file)) -{} + : Icon(ResourceManager::getInstance()->getImageRef(file)) +{ +} Icon::Icon(Image *image) { setImage(image); } +Icon::~Icon() = default; + void Icon::setImage(Image *image) { mImage = image; |