diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2020-10-13 18:52:23 -0500 |
|---|---|---|
| committer | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2020-10-13 18:52:23 -0500 |
| commit | f4cdb3954f500679bf61f0ac2815722669ec595a (patch) | |
| tree | 1861687a8b2f4e8a54f2e9270b6bd2db36657a28 /src/aoimage.cpp | |
| parent | 38d5fc758622223e28ce3d2fa36057e8a1b6dec5 (diff) | |
Fix missing #include, run clang-format
Diffstat (limited to 'src/aoimage.cpp')
| -rw-r--r-- | src/aoimage.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/aoimage.cpp b/src/aoimage.cpp index 380b5aac..3977c979 100644 --- a/src/aoimage.cpp +++ b/src/aoimage.cpp @@ -2,6 +2,8 @@ #include "aoimage.h" +#include <QBitmap> + AOImage::AOImage(QWidget *parent, AOApplication *p_ao_app) : QLabel(parent) { m_parent = parent; @@ -29,7 +31,8 @@ bool AOImage::set_image(QString p_image) } QPixmap f_pixmap(final_image_path); - f_pixmap = f_pixmap.scaled(this->width(), this->height(), Qt::IgnoreAspectRatio); + f_pixmap = + f_pixmap.scaled(this->width(), this->height(), Qt::IgnoreAspectRatio); this->setPixmap(f_pixmap); this->setMask(f_pixmap.mask()); return true; @@ -45,7 +48,8 @@ bool AOImage::set_chatbox(QString p_path) QPixmap f_pixmap(p_path); - f_pixmap = f_pixmap.scaled(this->width(), this->height(), Qt::IgnoreAspectRatio); + f_pixmap = + f_pixmap.scaled(this->width(), this->height(), Qt::IgnoreAspectRatio); this->setPixmap(f_pixmap); this->setMask(f_pixmap.mask()); return true; |
