Browse files

Make MythUIType::SetPosition() a non-virtual, descendants should not …

…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 18, 2012
1 parent ddfb29c commit 2afae608d855d02b10d136a02e2614edecda8933
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythtv/libs/libmythui/mythuitype.h
@@ -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);

0 comments on commit 2afae60

Please sign in to comment.