[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:
@@ -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);
|
||||
|
||||
@@ -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());
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user