[TD] set default text size for RichAnno dialog

see https://forum.freecadweb.org/viewtopic.php?f=35&t=42414&p=364965#p364965
This commit is contained in:
donovaly
2020-01-31 01:07:53 +01:00
committed by WandererFan
parent 6c59182d5d
commit 99baface06
2 changed files with 4 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ DrawRichAnno::DrawRichAnno(void)
ADD_PROPERTY_TYPE(AnnoParent,(0),group,(App::PropertyType)(App::Prop_None),
"Object to which this annontation is attached");
ADD_PROPERTY_TYPE(AnnoText, (""), group, App::Prop_None, "Anno text");
ADD_PROPERTY_TYPE(AnnoText, (""), group, App::Prop_None, "Annotation text");
ADD_PROPERTY_TYPE(ShowFrame, (true), group, App::Prop_None, "Outline rectangle on/off");
ADD_PROPERTY_TYPE(MaxWidth, (-1.0), group, App::Prop_None, "Width limit before auto wrap");
Caption.setStatus(App::Property::Hidden,true);

View File

@@ -201,6 +201,9 @@ void TaskRichAnno::setUiPrimary()
ui->dsbWidth->setValue(prefWeight());
ui->cpFrameColor->setColor(prefLineColor().asValue<QColor>());
// set a default font size, use for this the preferences setting
MRichTextEdit mre;
ui->teAnnoText->setFontPointSize(mre.getDefFontSizeNum());
}