Go to the documentation of this file.
50 *
m_pixmap = QPixmap::fromImage(*((QImage *)
this));
76 LOG(VB_GENERAL, LOG_ERR,
77 "FATAL ERROR: No parent widget defined for QT Painter, bailing");
100 if (!clipRect.isEmpty())
115 const QRect src,
int alpha)
119 LOG(VB_GENERAL, LOG_ERR,
120 "FATAL ERROR: DrawImage called with no painter");
126 if (qim->NeedsRegen())
129 m_painter->setOpacity(
static_cast<qreal
>(alpha) / 255.0);
130 m_painter->drawPixmap(r.topLeft(), *(qim->GetPixmap()), src);
144 if (qim && qim->GetPixmap())
147 qim->SetPixmap(
nullptr);
void DrawImage(QRect r, MythImage *im, QRect src, int alpha) override
bool NeedsRegen(void) const
void SetChanged(bool change=true) override
MythImage * GetFormatImagePriv(void) override
Creates a reference counted image, call DecrRef() to delete.
void RegeneratePixmap(void)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
void DeleteFormatImagePriv(MythImage *im) override
~MythQtPainter() override
void Begin(QPaintDevice *parent) override
virtual void SetChanged(bool change=true)
void SetPixmap(QPixmap *p)
std::list< QPixmap * > m_imageDeleteList
MythQtImage(MythQtPainter *parent)
virtual void Teardown(void)
virtual void Begin(QPaintDevice *)
void SetClipRect(QRect clipRect) override
QPixmap * GetPixmap(void)