Initial upload of HyprArch releng configuration
This commit is contained in:
32
airootfs/usr/include/libcalamares/utils/ImageRegistry.h
Normal file
32
airootfs/usr/include/libcalamares/utils/ImageRegistry.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* === This file is part of Calamares - <https://calamares.io> ===
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2012 Christian Muehlhaeuser <muesli@tomahawk-player.org>
|
||||
* SPDX-FileCopyrightText: 2019 Adriaan de Groot <groot@kde.org>
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef IMAGE_REGISTRY_H
|
||||
#define IMAGE_REGISTRY_H
|
||||
|
||||
#include <QPixmap>
|
||||
|
||||
#include "DllMacro.h"
|
||||
#include "utils/Gui.h"
|
||||
|
||||
class UIDLLEXPORT ImageRegistry
|
||||
{
|
||||
public:
|
||||
static ImageRegistry* instance();
|
||||
|
||||
explicit ImageRegistry();
|
||||
|
||||
QIcon icon( const QString& image, Calamares::ImageMode mode = Calamares::Original );
|
||||
QPixmap pixmap( const QString& image, const QSize& size, Calamares::ImageMode mode = Calamares::Original );
|
||||
|
||||
private:
|
||||
qint64 cacheKey( const QSize& size );
|
||||
void putInCache( const QString& image, const QSize& size, Calamares::ImageMode mode, const QPixmap& pixmap );
|
||||
};
|
||||
|
||||
#endif // IMAGE_REGISTRY_H
|
||||
Reference in New Issue
Block a user