mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 16:44:39 +03:00
+
This commit is contained in:
parent
2059a2a164
commit
4903abc408
@ -389,6 +389,7 @@ void TextItem::setTextFont(TextPtr text, const QFont& value) const {
|
|||||||
void TextItem::adaptFontSize(TextPtr text) const{
|
void TextItem::adaptFontSize(TextPtr text) const{
|
||||||
QFont _font = transformToSceneFont(font());
|
QFont _font = transformToSceneFont(font());
|
||||||
do{
|
do{
|
||||||
|
// qApp->processEvents();
|
||||||
setTextFont(text,_font);
|
setTextFont(text,_font);
|
||||||
if (_font.pixelSize()>2)
|
if (_font.pixelSize()>2)
|
||||||
_font.setPixelSize(_font.pixelSize()-1);
|
_font.setPixelSize(_font.pixelSize()-1);
|
||||||
|
Loading…
Reference in New Issue
Block a user