LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
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
10#include <QIcon>
12
13namespace 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}
ThemeImageProvider(const ICoreProxy_ptr &proxy)
Creates the ThemeImageProvider with the given proxy.
QIcon GetIcon(const QStringList &path) override
Returns an icon from the current iconset by its ID.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition icoreproxy.h:181