made improvements to legacy text effect

This commit is contained in:
itsmattkc
2019-03-14 20:38:28 +11:00
parent 8f923d9d92
commit a3831bbd50
12 changed files with 139 additions and 32 deletions
+20
View File
@@ -0,0 +1,20 @@
#include "richtexteffect.h"
RichTextEffect::RichTextEffect(Clip *c, const EffectMeta *em)
{
}
void RichTextEffect::redraw(double timecode)
{
QPainter p(&img);
p.setRenderHint(QPainter::Antialiasing);
int width = img.width();
int height = img.height();
img.fill(Qt::transparent);
QTextDocument td;
td.setHtml(text_val->GetStringAt(timecode));
td.drawContents(&p);
}