What about this?
Code: Select all
void TaskRichAnno::setUiPrimary()
{
...
double newSize = prefFontSize(); //like MRichTextEdit::getDefFontSizeNum
ui->teAnnoText->setFontPointSize(newSize);
...
}
same in setUIEdit
What about this?
Code: Select all
void TaskRichAnno::setUiPrimary()
{
...
double newSize = prefFontSize(); //like MRichTextEdit::getDefFontSizeNum
ui->teAnnoText->setFontPointSize(newSize);
...
}
same in setUIEdit
This doesn't compile. But with this:wandererfan wrote: ↑Thu Jan 30, 2020 9:16 pm What about this?
double newSize = prefFontSize(); //like MRichTextEdit::getDefFontSizeNum
ui->teAnnoText->setFontPointSize(newSize);
Code: Select all
MRichTextEdit mre;
ui->teAnnoText->setFontPointSize(mre.getDefFontSizeNum());
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt;">test</span></p></body></html>
https://travis-ci.org/FreeCAD/FreeCAD/b ... hub_statusuwestoehr wrote: ↑Fri Jan 31, 2020 12:08 am ...
I get what I want. I made a new PR: https://github.com/FreeCAD/FreeCAD/pull/2975
...
Seems to be a Qt4 issue.
No. You understood wrong. The next stable release 0.19 will support Python 2 and Qt4 because we are still testing for it in Travis. Once that release happens, then the Travis test for Python 2 will be removed, and we will de facto not test Python2/Qt4 compatibility any more.
Indeed. This PR should fix it: https://github.com/FreeCAD/FreeCAD/pull/2984
Awesome. Thank you for your service!uwestoehr wrote: ↑Sun Feb 02, 2020 4:19 pm Indeed. This PR should fix it: https://github.com/FreeCAD/FreeCAD/pull/2984