Opened 8 years ago
Closed 8 years ago
Last modified 6 years ago
#12864 closed Bug Report - General (fixed)
Screen paint problem with QT painter and certain themes
Reported by: | Peter Bennett | Owned by: | Peter Bennett |
---|---|---|---|
Priority: | minor | Milestone: | 0.28.1 |
Component: | MythTV - User Interface Library | Version: | 0.28.0 |
Severity: | medium | Keywords: | |
Cc: | jpoet@… | Ticket locked: | no |
Description
There is a strange effect with Steppes menus when using QT Theme Painter. The menu buttons are drawn outside the menu box. With OpenGL Theme Painter the menu is correct. This problem has existed for years, but I am concerned because with Raspberry Pi we have to use the QT Theme Painter. I have not seen this with other themes.
Photo of screen with messed up menu -> https://drive.google.com/open?id=0B-SLdaEBcVYkTGpzYjVPbkhVRFk
Photo of screen with correct menu -> https://drive.google.com/open?id=0B-SLdaEBcVYkVkNQOVJXZ1RNam8
I am working on a fix for this. It seems to be a bug in the way MythTV is drawing dynamic layouts, that are supposed to expand to fit the contents.
This problem is caused by incorrect calculation of the dialog size. The dialog size is being recalculated during painting, but after the dialog outline and background have already been painted. I solved it by adding a call to calculate the dialog size earlier, to fix the error for dynamic dialogs and menus. This could potentially happen with anything that uses a button list. MythDialogBox dialogs and menus are the only places I found where a button list is used in a dynamic layout.