LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
settableiconprovider.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
11namespace LC::Util
12{
13 void SettableIconProvider::SetIcon (const QStringList& path, const QIcon& icon)
14 {
15 Icons_ [path] = icon;
16 }
17
18 void SettableIconProvider::ClearIcon (const QStringList& path)
19 {
20 Icons_.remove (path);
21 }
22
23 QIcon SettableIconProvider::GetIcon (const QStringList& path)
24 {
25 return Icons_ [path];
26 }
27}
QIcon GetIcon(const QStringList &path) override
Returns the icon for the path previously set with SetIcon().
void ClearIcon(const QStringList &path)
Clears the icon associated with the given path.
void SetIcon(const QStringList &path, const QIcon &icon)
Sets the icon for the given path.