LeechCraft  0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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 
9 #include "settableiconprovider.h"
10 
11 namespace 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 }
LC::Util
Definition: icoreproxy.h:33
LC::Util::SettableIconProvider::ClearIcon
void ClearIcon(const QStringList &path)
Clears the icon associated with the given path.
Definition: settableiconprovider.cpp:24
settableiconprovider.h
LC::Util::SettableIconProvider::GetIcon
QIcon GetIcon(const QStringList &path) override
Returns the icon for the path previously set with SetIcon().
Definition: settableiconprovider.cpp:29
LC::Util::SettableIconProvider::SetIcon
void SetIcon(const QStringList &path, const QIcon &icon)
Sets the icon for the given path.
Definition: settableiconprovider.cpp:19