mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 01:51:49 +08:00
wip
This commit is contained in:
parent
e1743eb396
commit
dbfcf0525b
@ -4078,7 +4078,7 @@ void JKQTMathTextLabel::internalPaint()
|
||||
size=m_mathText->getSize(p);
|
||||
p.end();
|
||||
}
|
||||
buffer=QPixmap(size.width()*1.2, size.height()*1.1);
|
||||
buffer=QPixmap(qMax(32.0,size.width()*1.2), qMax(10.0,size.height()*1.1));
|
||||
buffer.fill(Qt::transparent);
|
||||
{
|
||||
//qDebug()<<"internalPaint(): "<<buffer.size()<<size;
|
||||
@ -4099,8 +4099,10 @@ void JKQTMathTextLabel::paintEvent(QPaintEvent *event)
|
||||
//QLabel::paintEvent(event);
|
||||
//return;
|
||||
internalPaint();
|
||||
//qDebug()<<"paintEvent: "<<buffer.size();
|
||||
setPixmap(buffer);
|
||||
QLabel::paintEvent(event);
|
||||
//qDebug()<<"paintEvent DONE: "<<size();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user