LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
settableiconprovider.h
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#pragma once
10
11#include "widthiconprovider.h"
12#include <QHash>
13#include <QIcon>
14
15namespace LC::Util
16{
28 {
29 QHash<QStringList, QIcon> Icons_;
30 public:
45 void SetIcon (const QStringList& path, const QIcon& icon);
46
54 void ClearIcon (const QStringList& path);
55
66 QIcon GetIcon (const QStringList& path) override;
67 };
68}
QML image provider with settable icons for each path.
Provides scalable icons to QML.
#define UTIL_QML_API
Definition qmlconfig.h:16