cc_draw: remove virtual from position setters

Origin commit data
------------------
Branch: ni/coolstream
Commit: 44b035955f
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2019-10-27 22:56:49 +01:00
committed by vanhofen
parent 088e562aa9
commit 69241ad5f0
2 changed files with 7 additions and 7 deletions

View File

@@ -176,18 +176,18 @@ class CCDraw : public COSDFader, public CComponentsSignals, public CCTypes
void clearFbData();
///set screen x-position, parameter as int
virtual void setXPos(const int& xpos);
void setXPos(const int& xpos);
///set screen y-position, parameter as int
virtual void setYPos(const int& ypos);
void setYPos(const int& ypos);
///set x and y position at once
///Note: position of bound components (items) means position related within parent form, not for screen!
///to set the real screen position, look at setRealPos()
virtual void setPos(const int& xpos, const int& ypos);
void setPos(const int& xpos, const int& ypos);
///set height of component on screen
virtual void setHeight(const int& h);
void setHeight(const int& h);
///set width of component on screen
virtual void setWidth(const int& w);
void setWidth(const int& w);
///set all positions and dimensions of component at once
void setDimensionsAll(const int& xpos, const int& ypos, const int& w, const int& h);

View File

@@ -233,14 +233,14 @@ bool CComponentsItem::isAdded()
void CComponentsItem::setXPos(const int& xpos)
{
CCDraw::setXPos(xpos);
x = xpos;
if (cc_parent)
cc_xr = cc_parent->getRealXPos() + x;
}
void CComponentsItem::setYPos(const int& ypos)
{
CCDraw::setYPos(ypos);
y = ypos;
if (cc_parent)
cc_yr = cc_parent->getRealYPos() + y;
}