This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "qimagewidget.h" | |
| #include <QPainter> | |
| QImageWidget::QImageWidget(QWidget *parent, Qt::Alignment alignment) | |
| : QWidget{parent}, | |
| m_alignment(alignment) | |
| {} | |
| QImage QImageWidget::image() const { return m_image; } | |
| QPixmap QImageWidget::pixmap() const { return m_pixmap; } |