Disabled parent font is working only in design time
Original Reporter info from Mantis: Dibo
-
Reporter name: Krzysztof Dibowski
Original Reporter info from Mantis: Dibo
- Reporter name: Krzysztof Dibowski
Description:
Hi,
I want to set bold font on TGroupBox but childs should have normal font. So in childs I'm setting ParentFont := False and Bold := False. In design mode it looks fine but when run program then all childs have bold font. I noticed this issue in TButton and TCheckBox childs but with TLabel it is ok
Steps to reproduce:
- Rebuild Lazarus IDE with Qt widget type
- Open attached demo. Look at form in design mode and in runtime mode
or
- Rebuild Lazarus IDE with Qt widget type
- Drop TGroupBox on form
- Add TButton, TCheckBox and TLabel into TGroupBox
- Set TGroupBox.Font.Style.Bold to True
- Set TButton/TCheckBox/TLabel.ParentFont to False and Font.Style.Bold to False
- Look at form in design mode and in runtime mode
Mantis conversion info:
- Mantis ID: 28437
- OS: Kubuntu
- OS Build: 14.04 64 bit
- Platform: Linux
- Version: 1.4.2
- Fixed in revision: 49730 (#cee72b71)