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