RaveOS-Base/releng/airootfs/root/calamares-build/usr/include/libcalamares/widgets/FixedAspectRatioLabel.h
2025-03-19 22:24:02 +01:00

34 lines
817 B
C++

/* === This file is part of Calamares - <https://calamares.io> ===
*
* SPDX-FileCopyrightText: 2015 Teo Mrnjavac <teo@kde.org>
* SPDX-FileCopyrightText: 2017 Adriaan de Groot <groot@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#ifndef FIXEDASPECTRATIOLABEL_H
#define FIXEDASPECTRATIOLABEL_H
#include "DllMacro.h"
#include <QLabel>
#include <QPixmap>
class UIDLLEXPORT FixedAspectRatioLabel : public QLabel
{
Q_OBJECT
public:
explicit FixedAspectRatioLabel( QWidget* parent = nullptr );
~FixedAspectRatioLabel() override;
public slots:
void setPixmap( const QPixmap& pixmap );
void resizeEvent( QResizeEvent* event ) override;
private:
QPixmap m_pixmap;
};
#endif // FIXEDASPECTRATIOLABEL_H