mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2025-01-13 01:10:33 +08:00
wip
This commit is contained in:
parent
e1743eb396
commit
dbfcf0525b
@ -4078,7 +4078,7 @@ void JKQTMathTextLabel::internalPaint()
|
|||||||
size=m_mathText->getSize(p);
|
size=m_mathText->getSize(p);
|
||||||
p.end();
|
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);
|
buffer.fill(Qt::transparent);
|
||||||
{
|
{
|
||||||
//qDebug()<<"internalPaint(): "<<buffer.size()<<size;
|
//qDebug()<<"internalPaint(): "<<buffer.size()<<size;
|
||||||
@ -4099,8 +4099,10 @@ void JKQTMathTextLabel::paintEvent(QPaintEvent *event)
|
|||||||
//QLabel::paintEvent(event);
|
//QLabel::paintEvent(event);
|
||||||
//return;
|
//return;
|
||||||
internalPaint();
|
internalPaint();
|
||||||
|
//qDebug()<<"paintEvent: "<<buffer.size();
|
||||||
setPixmap(buffer);
|
setPixmap(buffer);
|
||||||
QLabel::paintEvent(event);
|
QLabel::paintEvent(event);
|
||||||
|
//qDebug()<<"paintEvent DONE: "<<size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user