#include <KisSplashPreview.h>
Definition at line 7 of file KisSplashPreview.h.
◆ KisSplashPreview()
| KisSplashPreview::KisSplashPreview |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ paintEvent()
| void KisSplashPreview::paintEvent |
( |
QPaintEvent * | event | ) |
|
|
overrideprotected |
Definition at line 19 of file KisSplashPreview.cpp.
20{
21 QWidget::paintEvent(event);
22
24 qreal dpr = qMax(1.0, devicePixelRatioF());
27
30 qRound(qreal(h) * dpr),
31 Qt::KeepAspectRatio,
32 Qt::SmoothTransformation);
33 }
34
39
40 QPainter painter(this);
42 }
43}
References m_originalPixmap, and m_scaledPixmap.
◆ resizeEvent()
| void KisSplashPreview::resizeEvent |
( |
QResizeEvent * | event | ) |
|
|
overrideprotected |
◆ setPixmap()
| void KisSplashPreview::setPixmap |
( |
const QPixmap & | pixmap | ) |
|
◆ m_originalPixmap
| QPixmap KisSplashPreview::m_originalPixmap |
|
private |
◆ m_scaledPixmap
| QPixmap KisSplashPreview::m_scaledPixmap |
|
private |
The documentation for this class was generated from the following files: