[mythtv-firehose] mythtv/master commit: e717a49cf by John Patrick Poet (jpoet)

MythTV noreply at mythtv.org
Mon Jul 11 02:17:52 UTC 2011


      Author:  John Patrick Poet <jpoet at mythtv.org>
 Change Date:  2011-07-10T19:11:56-07:00
   Push Date:  2011/07/10 19:17:45 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  e717a49cfe59266e9f91a0278d1708d7ef473926
   Changeset:  https://github.com/MythTV/mythtv/commit/e717a49cf

Log:

MythScreenType: Fix the area of a pop-up.

We use a position of (-1, -1) to indicate that a pop-up should be centered.
To center the pop-up we need to move the whole rectangle, not
just the edge.  Qt's setX and setY position the edge of the rectangle,
leaving the other edges alone.  To move the whole rectangle, we need to use
QRect's move functions, instead of the set functions.

This fixes sub-elements use of percentages, since the area is now correct.

Modified:

   mythtv/libs/libmythui/mythscreentype.cpp



More information about the mythtv-firehose mailing list