LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
themeimageprovider.cpp
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2014 Georg Rudoy
4  *
5  * Distributed under the Boost Software License, Version 1.0.
6  * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7  **********************************************************************/
8 
9 #include "themeimageprovider.h"
10 #include <QIcon>
12 
13 namespace LC::Util
14 {
16  : Proxy_ (proxy)
17  {
18  }
19 
20  QIcon ThemeImageProvider::GetIcon (const QStringList& list)
21  {
22  return Proxy_->GetIconThemeManager ()->GetIcon (list.value (0));
23  }
24 }
LC::Util
Definition: icoreproxy.h:33
themeimageprovider.h
LC::Util::ThemeImageProvider::GetIcon
QIcon GetIcon(const QStringList &path) override
Returns an icon from the current iconset by its ID.
Definition: themeimageprovider.cpp:26
iiconthememanager.h
ICoreProxy_ptr
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition: icoreproxy.h:181
LC::Util::ThemeImageProvider::ThemeImageProvider
ThemeImageProvider(const ICoreProxy_ptr &proxy)
Creates the ThemeImageProvider with the given proxy.
Definition: themeimageprovider.cpp:21