Skip to content

Commit

Permalink
Make MythUIType::SetPosition() a non-virtual, descendants should not …
Browse files Browse the repository at this point in the history
…need to override this to change SetPostion() functionality. Overriding SetPosition(const MythPoint&) should be sufficient, and is what existing descendants do now.
  • Loading branch information
daniel-kristjansson committed May 24, 2012
1 parent ddfb29c commit 2afae60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythtv/libs/libmythui/mythuitype.h
Expand Up @@ -108,7 +108,9 @@ class MUI_PUBLIC MythUIType : public QObject, public XMLParseBase
void Draw(MythPainter *p, int xoffset, int yoffset, int alphaMod = 255,
QRect clipRegion = QRect());

virtual void SetPosition(int x, int y);
/// Convenience method, calls SetPosition(const MythPoint&)
/// Override that instead to change functionality.
void SetPosition(int x, int y);
virtual void SetPosition(const MythPoint &pos);
virtual MythPoint GetPosition(void) const;
virtual void SetSize(const QSize &size);
Expand Down

0 comments on commit 2afae60

Please sign in to comment.