cc_item_picture.h: fix build warnings

Import base class methods setWidth and setHeight to avoid
-Woverloaded-virtual warnings
This commit is contained in:
2025-03-10 19:29:36 +01:00
parent 0e643570d0
commit afe0b116c0

View File

@@ -69,6 +69,10 @@ class CCPicture : public CComponentsShapeSquare
void SetTransparent(const int &mode) {setBodyBGImageTranparencyMode(mode);}
///import base class methods for width and height to avoid -Woverloaded-virtual
using CCDraw::setWidth;
using CCDraw::setHeight;
///set width of object, keep_aspect = true keeps ratio related to height
void setWidth(const int &w, bool keep_aspect = true);
///set height of object, keep_aspect = true keeps ratio related to width
@@ -281,6 +285,10 @@ class CComponentsPicture : public CComponentsForm
*/
void SetTransparent(const int &mode);
//import base class methods for width and height to avoid -Woverloaded-virtual
using CCDraw::setWidth;
using CCDraw::setHeight;
/*!
Sets width of object, keep_aspect = true keeps ratio related to height
* @param[in] int w image width